1 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
3 * gdk/gdkrgb.c: If possible, create only a single shm segment and
4 use multiple parts of it instead of creating a bunch of separate
5 segments, since the maximum number of segments per system is not
6 large. (This might be worth backporting to GTK+-1.2.x if we make a
9 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
10 structure in preparation for per-colormap GdkRGB.
12 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
13 to False when we get EINVAL from shmget so that the caller of
14 gdk_image_new can retry with a smaller segment size.
16 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
18 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
20 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
22 * configure.in: make the current version number 1.3.1 (binary age 0,
25 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
26 gtkcompat.h is all we want.
28 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
29 GLib primitive types. fixed g_type_register_fundamental() argument
32 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
35 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
36 object code cleanup, comment trigraph fixes, etc...
38 2000-06-23 Havoc Pennington <hp@redhat.com>
40 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
41 instead of making up a bogus name for first_para_mark
43 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
46 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
48 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
50 2000-06-21 Havoc Pennington <hp@pobox.com>
52 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
53 we didn't check window->bg_pixmap != GDK_NO_BG.
55 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
58 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
60 * docs/faq/gtk-faq.sgm: Move file to here.
61 TODO: Update Makfile.am
63 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
65 * docs/gtk-faq.sgm: Add Section 2
67 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
69 * docs/gtk-faq.sgm: New file. Start of DocBook
72 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
74 * configure.in (GDK_PIXBUF_MAJOR): Define version
75 numbers for GDK_PIXBUF_*, as they get substituted
76 into a header file. Need to consider versioning
77 for gdk-pixbuf more carefully later.
79 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
81 Work with srcdir != builddir.
82 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
83 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
84 * demos/testpixbuf.c: Likewise.
85 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
86 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
88 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
90 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
92 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
94 * TODO.xml: Change 1.4 version numbers to 2.0.
96 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
98 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
99 fixups to GTK+ standard.
101 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
103 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
106 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
109 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
110 gdk-pixbuf with GDK dependencies moved into GDK.
112 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
113 move gdk-pixbuf-loader here until GObject has signals.
115 * demos/: New directory of demos. Move demos from
118 * demos/pixbuf-init.c: Small bit of code to check for
119 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
120 set GDK_PIXBUF_MODULEDIR appropriately.
122 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
123 define which no longer makes sense.
125 2000-06-21 Havoc Pennington <hp@redhat.com>
127 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
128 gtk_get_default_language
130 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
131 new function to get the default language
133 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
134 s/gtk_text_view_style_values/gtk_text_style_values/
136 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
137 Add a "language" field to tags.
139 (gtk_text_tag_set_arg): Fix bug in setting
140 "bg_full_height_set" tag.
142 2000-06-21 Havoc Pennington <hp@redhat.com>
144 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
147 * gtk/gtktexttypes.c: Remove UTF functions, use glib
148 stuff instead when possible.
150 * gtk/gtktexttypes.h: Delete some unused constants
152 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
153 testtextbuffer.c: use glib instead of custom unicode routines
155 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
157 * docs/es/: Removed mistakenly added generated sgml
159 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
160 Remove outdated info files.
162 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
163 Moved tutorial files into subdir
165 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
168 * docs/man/gtk_button.pod: Remove. (contents will be
169 integrated into gtk-reference button page.)
171 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
172 docs/faq/Makefile.am: Adjust for new organization
174 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
176 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
179 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
181 * gtk/testgtk.c (create_text): Finish the job Elliot started
182 of removing font setting test for text widget. (Since text widget
183 and GdkFont are not deprecated, and cause portability problems.)
185 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
187 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
188 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
189 Remove use of libunicode in favor of new GLib functions.
191 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
192 nano-x, framebuffer. The X11 include is just a hack until we get
193 the necessary functions in gdkcolor.h, so there is no reason to
194 add other includes of platforms.
196 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
197 window bigger than the screen change.
199 * gtk/testgtk.c: Revert some random changes from Elliot
200 that had no particular point and were causing testgtkrc
201 not to function correctly.
203 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
204 because GdkSegment and GdkRegionBox have the same fields,
205 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
206 results in clearer code.
208 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
209 gdk_input_translate_coordinates): Fix missed GdkObjectification
211 2000-06-18 Elliot Lee <sopwith@redhat.com>
213 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
214 * gtk/gtk{plug,socket}.h: Missed commits from previous.
216 2000-06-20 Havoc Pennington <hp@redhat.com>
218 * modules/linux-fb/Makefile.am: Make this compile
219 without framebuffer enabled
221 * gdk/linux-fb/Makefile.am: Add conditional to not build
222 framebuffer unless specified in configure
224 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
225 the size of the target instead of source if -1 was passed for
228 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
229 width/height confusion.
231 2000-06-19 Havoc Pennington <hp@redhat.com>
233 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
234 GDK_DRAWABLE_XID. In the future, we probably want to make it
235 faster with G_DISABLE_CHECKS turned on.
237 2000-06-14 Havoc Pennington <hp@redhat.com>
239 * gdk/Makefile.am: add gdkpixmap.c
241 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
242 s/gdk_image_init/_gdk_windowing_image_init
244 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
247 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
249 * gdk/gdkcompat.h: remove GdkWindowType compat, since
250 GdkWindowType is now non-deprecated;
251 change gdk_window_get_type() compat to be
252 gdk_window_get_window_type().
254 * gdk/gdkdnd.h: make GdkDragContext a GObject.
256 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
257 virtual GObject. Make all functions call into the vtable.
258 Move gdk_image_put() guts in here. Remove GdkDrawableType
259 and gdk_drawable_get_type(), these are now GdkWindow-specific.
260 draw_image, get_depth, get_size, set_colormap, get_colormap,
261 get_visual added to the vtable.
263 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
264 GObject. Virtualize everything.
265 (gdk_gc_new_with_values): remove check for destroyed window,
266 because now GdkWindow::create_gc will check this.
267 (gdk_gc_set_values): New function to set GC values, this
268 was already implemented but wasn't in the header
270 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
272 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
273 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
274 remove _gdk_window_class; add _gdk_window_impl_get_type() and
275 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
276 _gdk_windowing_window_init, rename gdk_image_init to
277 _gdk_windowing_image_init.
279 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
280 (gdk_draw_layout): Remove check for destroyed window,
281 because all the drawable methods already check it.
283 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
284 Add gdkpixmap.c which contains implementation of GdkDrawable
285 virtual table (by chaining to a platform-specific implementation
288 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
289 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
290 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
291 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
294 * gdk/gdktypes.h: #include <glib-object.h>
296 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
297 Move most functionality to platform-specific implementation
298 object. GdkWindow itself now handles the backing store, then
299 chains to the platform-specific implementation.
300 (gdk_window_get_window_type): return GdkWindowType of the window.
301 (gdk_window_peek_children): New routine, returns the children of
303 (gdk_window_get_children): Was in X11-specific code and did
304 XQueryTree. Changed to simply return a copy of window->children;
305 so it can go in cross-platform code.
307 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
309 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
310 GdkColormap; just changed to use the new private data instead
311 of casting to GdkColormapPrivate.
313 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
316 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
317 (private data member in the GObject).
318 (xdnd_manager_source_filter): Function had broken
319 error handling, fix it (use gdk_error_trap_push).
321 * gdk/x11/gdkdrawable-x11.c: This file now implements
322 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
323 base class is purely for the convenience of the X port,
324 and not part of the interface to cross-platform GDK.
326 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
328 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
329 specific to X, and returned by the create_gc virtual method
330 of GdkDrawableImplX11.
331 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
332 rather than gchar, this was also changed in the GdkGC vtable.
333 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
334 mask is 0, return immediately, instead of checking every flag.
335 This is faster, and keeps us from segfaulting if values is NULL
336 and the mask contains some nonzero flags.
338 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
341 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
342 GdkWindowPrivate is gone.
344 * gdk/x11/gdkim-x11.c: rename things that got renamed.
346 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
347 remove the image_put stuff that got transferred to GdkDrawable.
349 * gdk/x11/gdkinput.c: renamings
351 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
353 * gdk/x11/gdkpixmap-x11.c: GObject conversion
355 * gdk/x11/gdkprivate-x11.h: indentation fixes
357 * gdk/x11/gdkproperty-x11.c: renamings
359 * gdk/x11/gdkselection-x11.c: renamings
361 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
362 implements the platform-specific "impl" object.
363 Moved gdk_window_get_children to gdk/gdkwindow.c
365 * gdk/x11/gdkx.h: Remove all the private structs and private datas
366 that no longer exist. Add declaration of GdkGCX11 object here.
367 Fix all the macros to still work.
369 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
370 GdkDragContext from the boxed types since they are now GObjects.
372 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
373 moved xthickness/ythickness into the instance. GtkStyleClass
374 functions are now in the standard vtable for GtkStyle, so you have
375 to create a GObject subclass to write a theme engine.
376 (gtk_style_copy): fixed a leaked PangoFontDescription
377 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
378 can be the standard GObject function.
381 s/style->klass->[xy]thickness/style->[xy]thickness
382 s/pango_layout_unref/g_object_unref/
384 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
386 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
387 accessing GDK internals.
389 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
390 accessing GDK internals.
392 2000-06-18 Elliot Lee <sopwith@redhat.com>
394 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
396 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
397 problem by calculating event position relative to the trough
398 rather than the slider.
399 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
401 * gdk/gdkgc.h: Add GDK_NOR.
403 * configure.in, Makefile.am: Add modules top level dir
404 * configure.in: Only use pangox library if building x11 target.
405 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
407 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
409 * gtk/gtkcolorsel.c: Change private class member to be named
410 private_data throughout the file.
412 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
413 private_data to avoid clashing with keyword.
415 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
417 * gdk/gdkdnd.h: Add comment to remove warning.
419 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
421 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
422 Byelorussian language; changed the Makefile and file names
425 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
427 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
428 rather than gdk_window_hide; this makes things work
429 correctly if the window is programmatically hidden while
432 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
434 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
435 cut and paste typo where wrong pixmap was being
436 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
438 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
440 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
441 Add helper function to compute format / bytes
442 relationship. Use in a couple places to fix up
443 errors which assume 8 * format.
445 * gtk/gtkselection.c (gtk_selection_request): Use 32
446 rather than 8 * sizeof (GdkAtom), to work correctly
449 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
451 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
453 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
456 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
457 checking macros return NULL since the function has a return value.
459 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
461 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
462 GTK+ from building at all.
464 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
466 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
468 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
469 gtk/Makefile.am: make it possible to configure gtk for different
470 targets on the same platform. The library name is now
471 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
472 flag. Only the x11 target compiles right now.
473 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
474 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
475 * gdk/nanox/gdk*generic*: delete generic region code.
476 * gdk/linux-fb/gdk*generic*: delete generic region code.
477 * README.nanox: update information.
479 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
481 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
482 prepend not append. (Pointed out by Brett Hall.)
484 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
486 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
488 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
490 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
491 need this later, and this makes sure that the atexit for
492 glib gets called after that for GDK, so atexits are
493 properly ordered for object leak checking.
495 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
497 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
498 pango_x_shutdown_display()
500 * gtk/simple.c (main): Close window on destroy.
502 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
504 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
505 to treat initial creation different from setting with
506 regards to the graphics-exposures parameter, so add a parameter
507 indicating whether this is initial or not.
509 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
511 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
512 to sort of work by adding an extra return_exposes arg
513 to gdk_event_translate() - it might be better to simply
514 deprecate the function altogether and force people to rewrite
515 without it. gdk_window_scroll() handles most of it, and where
516 gdk_window_scroll() doesn't work, simply redrawing more does.
518 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
521 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
523 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
524 bunch of pretty much useless /* Print debugging info */ comments
525 which had drifted away from the code they were commenting.
527 2000-06-02 Havoc Pennington <hp@pobox.com>
529 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
532 * gtk/testtext.c: Change to reflect anonymous mark API
534 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
536 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
537 field, which was unused.
539 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
542 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
544 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
545 flag on the insertion point and selection bound
547 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
548 make mark-manipulation functions take a GtkTextMark* instead of a
551 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
552 GtkTextMarkBody; will be used to detect attempts to delete
553 the permanent marks (insert and selection bound)
555 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
557 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
559 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
562 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
563 Honor DOUBLE_BUFFRED_FLAG
565 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
566 function to set the DOUBLE_BUFFERED flag.
568 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
569 or not exposes done on the widget should be double-buffered.
571 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
572 to be what would be expected. (Fixes problem with a
573 g_return_if_fail() validating a TextDirection enumeration)
575 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
577 * gtk/gtkwidget.c: Remove all references to
578 offscreen flag which was no longer used.
580 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
582 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
583 for non-null label_widget->parent.
585 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
586 which no longer was used.
588 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
590 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
593 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
594 check for destroyed windows.
596 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
598 * gtk/gtkimmulticontext.c: Add a finalize method and unref
599 the slave context there.
601 * gtk/gtkinvisible.[ch]: Make reference counting behavior
602 identical to GtkWindow.
604 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
606 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
607 pangox to here, so we can write them independent of rendering
608 system, using GDK primitives.
610 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
611 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
612 since we have a rendering-system independent implementation in
613 terms of draw_glyphs().
615 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
616 function to render a single line.
618 * gdk/x11/gdkpango.c: Move the guts of this file mostly
619 into ../gdkpango.c, which simplifies things, since we
620 don't have to deal with raw X gc's.
622 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
624 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
625 get the logical attributes for a given GtkTextLine.
627 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
629 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
630 g_locale_get_codeset() to g_get_codeset() change.
632 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
634 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
637 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
640 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
641 redoing (vastly simplifying) for Pango. Still needs quite
642 a bit of work. (Size selection is currently poor. List of
643 predefined sizes is not a good idea, since all of these
644 sizes won't necessarily be distinct.)
646 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
648 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
649 CODESET results for LANG=C.
651 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
653 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
654 which takes a stringized pango font description;
655 ignore the older 'font' and 'fontset' declarations.
657 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
658 field with a GdkFont derived via gdk_font_from_description(),
659 for compatibility. (Should we just remove it entirely?
660 Probably too much compatibility breakage, but people
661 should be migrating to the new Pango stuff as quickly
664 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
666 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
668 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
670 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
671 redoing; there are some bugs in size allocation right
672 now, the semi-existant distinction between header / day
673 fonts was removed, but, with Pango, could actually
674 be made functional in a nice way.
676 * gtk/testcalender: Move calender from examples into this
677 directory as a test program. (We really need to restrcture
678 testgtk into a whole directory full of tests for every
679 widget or functionality group, separated into multiple .c
682 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
684 * gtk/testgtk.c (file_exists): Fix stupid typo that
685 was keeping RC file from being loaded.
687 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
690 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
692 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
693 Add function to load a GdkFont from a PangoFontDescription.
695 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
697 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
698 to have any widget for the label, use a GtkLabel widget
699 to display the text. (Based partially on a patch from
702 (Quite a bit of code reorganization - strip 90% of the
703 guts out of gtkaspectframe and add a single virtual
704 func to GtkFrameClass - compute_child_allocation.)
706 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
708 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
709 (Removed clist->row_center_offset field because caching
710 it wasn't saving time or code, added private function
711 _gtk_clist_create_cell_layout()).
713 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
715 * gtk/gtkaccellabel.c: Pangoized.
717 * gtk/[hv]ruler.c: Pangoized
719 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
721 * gtk/gtkfilesel.c (gtk_file_selection_init):
722 Use gtk_clist_set_column_auto_resize() to remove need
723 need for manual column width computations.
725 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
727 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
728 ensuring Pango correctness, and considerably simplifying the
731 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
733 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
734 getting of numbers of lines.
736 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
737 to the actual requested width of the lable, not to the wrap
740 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
742 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
743 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
745 * gtk/gtktextview.c: Fix structure inheritance.
747 * gtk/gtkprogressbar.c: Pangoize.
749 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
751 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
754 * gtk/gtktextlayout.c (find_display_line_above): Fixed
755 bug with computing line tops.
757 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
759 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
761 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
762 and y_offset coordinates to do what we need now. (The offset between
763 buffer and layout coordinates has been reintroduced, but is a
764 bit different than before.)
766 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
767 handle the adjustments ourselves, and scroll as necessary using
768 the new gdk_window_scroll().
770 The advantage of this is that when we are incrementally revalidating,
771 we are essentially rearranging things around the visible portion
772 of the screen. With the old setup, the visible portion of the
773 screen was moved around in the layout, so scrolling and redrawing
774 to track that caused jumping of the display. Since we now
775 control the scrolling ourselves, we can suppress this and
776 only redraw when things actually change.
778 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
780 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
781 the region not just redisplay it after-all, since we store the
782 cursors in the LineDisplay. (Ugly interactions here between
783 GtkLayout and GtkTextBTree here.)
785 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
787 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
789 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
790 Added function to scroll contents of a window while keeping the
791 window constant. Works by XCopyArea or guffaw-scrolling depending
792 on the details of how the window is set up. (guffaw-scrolling
793 still needs to be filled in.)
795 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
797 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
798 move the debugging that was tied to a global variable
801 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
803 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
804 validated flag, in line data instead of setting height/width to
805 -1. This allows us to perform operations with partially invalid
806 buffer (using the old size for invalid lines) and thus to do
807 incremental vaidation. Keep height/width aggregates up to date
808 when deleting text and rebalancing the tree.
810 * gtk/gtktextbtree.[ch]: Add functions validate a line
811 (gtk_text_btree_validate_line), and to validate up
812 to a number of pixels (gtk_text_btree_validate).
814 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
815 that indicates that something is changed and a revalidation
816 pass is needed. Change ::need_repaint to ::changed, and
817 make it take old and new yranges instead of a rectangle.
819 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
820 the line_data_destroy() function from
821 gtk_text_btree_add_view() to a virtual function in
824 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
825 since we are handling partial repaints in a different fashion
828 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
829 of the selection instead of queueing a repaint on the
832 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
833 get_selection_bounds() down to btree, make the function
834 in buffer a wrapper around the btree function.
836 * gtk/gtktextlayout.[ch]: Add functions to check if the
837 layout is valid and to recompute either a range of pixels
838 aroudn a line or a certain total number of pixels.
840 * gtk/gtktextlayout.[ch]: Cache a single line display;
841 now that we only redraw the needed portions, the hit rate
842 for this cache is quite high.
844 * gtk/gtktextview.[ch]: Keep track of the first paragraph
845 on the screen so that when re-laying-out the buffer, we can
846 keep the same place. This requires connecting to ::value_changed
849 * gtk/gtktextview.[ch]: Add idle functions to revalidate
850 the buffer after we receive an ::invalidated signal.
852 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
854 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
855 to max of allocation and layout size, not just to the
858 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
859 Invalidate window so it gets redrawn properly.
861 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
862 to mean the entire window.
864 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
867 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
869 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
870 to get the name of a mark.
872 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
873 to find the paragraph from a y position.
875 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
877 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
878 nodes have width/height >= 0, not > 0.
880 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
882 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
883 Add a size_only flag, so when we only need the size, we don't create
884 useless appearance attributes.
886 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
887 duplicate setting of font description.
889 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
891 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
893 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
894 EXTRA_DIST. It does not work well when the file that
895 everything depends on is not in the tarball.
897 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
899 * gtk/testgtk.c: Some hacks and fixes so that it basically
900 works when not sitting in the GTK+ build tree.
902 2000-05-03 Havoc Pennington <hp@redhat.com>
904 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
905 Properly determine the ordering of the tag root and the current
906 line within the tree. Previous algorithm only worked if the tag
907 root's immediate parent was the common root of both the current
908 line and the tag root.
910 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
912 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
915 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
916 the widget text directional dynamically.
918 * gtk/gtktextview.[ch]: Added functions to get and set default
921 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
923 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
924 in cursor location computation.
926 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
928 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
929 vadjusment values properly when layout gets smaller.
931 * gtk/gtktextview.c (need_repaint_handler): Areas being
932 passed in are far completely inaccurate, and sometimes
933 too small, so, for now, just queue a redraw on the
934 whole visible region.
936 2000-04-25 Havoc Pennington <hp@redhat.com>
938 * gtk/gtktextbtree.c (summary_destroy): new function to
939 destroy tag summary nodes
940 (gtk_text_line_next_could_contain_tag): this function was
941 totally broken if the line passed in wasn't below the tag
943 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
944 "wildcard" case, we have to do a linear scan. Blah.
945 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
946 we have to do the linear scan
947 (tag_removed_cb): When a tag is removed from the tag table,
948 remove the GtkTextTagInfo node from the btree.
949 (gtk_text_btree_spew): Implement the spew function, for
950 our debugging pleasure.
952 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
954 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
955 a problem with referring to the wrong buffer.
957 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
959 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
960 font description to gtk_style_new() - otherwise things
961 don't work without a .gtkrc file.
963 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
964 tags table if we create it ourself, too.
966 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
967 it was conflicting with XKB modifiers.
969 * gtk/gtktextview.[ch]: Add simple support for
972 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
974 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
975 with deletion from last commit.
977 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
979 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
980 in the context from the current locale.
982 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
983 context, not hardcoded value.
985 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
988 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
990 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
991 attributes - that doesn't handle partial-glyph selection
992 properly. Instead use new pango_layout_line_get_x_ranges()
993 functionality to draw the selection.
995 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
996 now properly handles out-of-range coordinates.
998 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
1000 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
1003 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
1004 for paragraphs opposite to the base direction of the widget.
1006 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
1008 * gtk/gtktextlayout.c: Don't split segments on marks, since that
1009 causes Arabic words to reshape as you cursor through.
1011 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
1012 cursor position when moving vertically with the arrow keys and
1013 scrolling with page-up/page-down. (Arrow keys save only the X,
1014 scrolling saves both X and Y.)
1016 This means you can line-up / line-down or page-up / page-down
1017 without losing your place, and also that moving vertically
1018 with the cursor keys keeps the same X position, not the same
1021 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
1022 arrow keys move by display lines, not paragraphs.
1024 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
1026 * gtk/gtklayout.c: Make sure that the bin window is at least
1027 as big as the allocation. (Should we also make sure that the
1028 bin window is big enough to completely cover widget->window?)
1030 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
1031 function to get the onscreen rectangle.
1033 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
1034 for offsets in window coordinates.
1036 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
1038 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
1041 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
1042 from the widget direction.
1044 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
1045 Add a "direction" attribute.
1047 * gtk/gtktextview.c: global s/tkxt/text_view/.
1049 * gtk/testtext.c: Added long block of text in Arabic, to test out
1050 the direction attributes. (Some problems with the shaping system
1051 for arabic become obvious - like the fact the cursor splits words
1052 into unjoined pieces.)
1054 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
1056 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
1058 * gtk/gtktextlayout.c: Fix up alignment.
1060 * gtk/testtext.c: Add some tests for centering, wrapping.
1062 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
1064 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
1065 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
1066 If we wrote GTK+-specific layout-render function this could just replace
1067 the draw_layout() operation in the vtable.
1069 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
1070 pango_layout_get_cursor_pos() and use that function.
1072 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
1073 is a non-static symbol.
1075 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
1076 with gtk_text_btree_find_line_by_y()
1078 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
1079 renderer that handles GtkTextAppearance attributes.
1081 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
1083 - Move the values in the style that don't affect geometry into a
1084 GtkTextAppearance structure.
1085 - Change underline to take a PangoUnderline and "font" a string
1086 representation of a font description
1087 - Add a "font_desc" attribute which takes a FontDescription structure.
1089 * gtk/gtktextlayout.[ch]:
1091 - Get rid of the display-line list per each line. Instead, we
1092 generate, on demand, a GtkTextLineDisplay structure which]
1093 contains a PangoLayout * and other necesary information
1094 (offsets, cursor locations) for displaying a paragraph.
1095 - Get rid of the code to wrap lines, create display chunks,
1096 etc. Instead, we just go through a paragraph and convert
1097 it into the necessary inputs to a PangoLayout.
1098 - Implement a new attribute type, GtkTextAttrAppearance. This
1099 holds a GtkTextAppearance, and is used to pass colors,
1100 stipple, etc, through from the layout to the display without
1101 having to use lots and lots of individual attributes.
1102 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
1103 in terms of PangoLayout functions.
1105 * gtk/gtktextview.c:
1107 - Handle passing the necessary PangoContext to the layout
1108 - Some fixups in painting to deal with the automatic backing store
1109 and offsetting of GTK+-1.4
1110 - Add a style_set handler so that the default style reacts
1111 properly to theme changes.
1113 * gtk/gtktext?*.[ch]: Random code-style fixes.
1115 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
1117 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
1119 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
1120 in original form preparatory to Pango-ization and gdkimcontext-ization.
1122 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
1124 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
1125 so that we can derive from gtkimcontext in language bindings properly.
1127 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
1129 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
1130 Add a compose table including (almost) all the compose combinations
1131 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
1132 data in the XIM implementation.
1134 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
1135 Moved functions to convert keyvalues from and to unicode here from
1136 the win32 port and made them public.
1138 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
1140 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
1142 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
1144 * gtk/gtkimcontext.[ch]: Base class for new input context system
1146 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
1147 the real input context implementation to be loaded from modules
1148 and switched on the fly.
1150 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
1151 context that just does direct keysymbol => unicode translation.
1153 * gtk/gtkentry.[ch]: Start switching editing over to using
1154 GtkInputContext. (No handling of preedit yet.)
1156 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
1158 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
1159 many substitutions. (klass should not be subsituted.)
1161 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
1163 * configure.in: Add checks for Pango
1165 * configure.in docs/Makefile.am: Add test for sgml2html
1166 and allow 'make dist' without building html, but print out
1167 warnings in that case. (For making snapshots)
1169 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
1170 Add Pango libraries and C flags
1172 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
1173 Add function (gdk_draw_layout) to draw a pango layout.
1175 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
1176 for getting Pango contexts for GDK.
1178 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
1180 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
1183 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
1184 keysym => unicode translations. More languages can be added
1185 here, but real input-method support is needed.
1187 * docs/Changes-1.4.txt: Added note about entry behavior.
1189 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
1190 to set the reading direction for a widget and the global direction.
1191 Add test which allows toggling the global direction. Two private
1192 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
1194 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
1195 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
1197 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
1199 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
1200 underlining now handled by Pango.
1202 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
1203 to RCStyle and Style. (Having both this and the old font name and GdkFont
1206 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
1207 convenience functions for creating contexts and layouts for widgets.
1209 * gtk/testgtk.c: Enhance label tests with multilingual labels.
1211 2000-05-29 Jonathan Blandford <jrb@redhat.com>
1213 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
1214 titles to be active, even if they aren't visible.
1215 (gtk_clist_column_titles_passive): Ditto.
1217 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
1221 * gtktypeutils.h: Spelling/grammar fixes in comments.
1223 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
1225 * gdk/nanox/*.h: add missing header files.
1227 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
1229 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
1231 (gtk_drawing_area_size): queue a resize.
1233 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
1235 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
1236 the handlers, also invalidate them. bug nailed down by Karl Nelson
1237 <kenelson@ece.ucdavis.edu>.
1239 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
1241 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
1242 "(nil)" foundries, patch from Grigorios Magklis.
1244 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
1245 on non-available fonts, based on a patch by Grigorios Magklis
1246 <maglis@cs.rochester.edu>.
1248 2000-05-18 Elliot Lee <sopwith@redhat.com>
1250 * gdk/x11/gdkregion-generic.c: If a region does not have any
1251 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
1252 instead of GDK_OVERLAP_RECTANGLE_IN.
1254 2000-05-17 Jonathan Blandford <jrb@redhat.com>
1256 * gtk/gtklayout.c (gtk_layout_map): Remove references to
1257 OFFSCREEN, as it is no longer necessary.
1259 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
1261 * gtk/gtkcolorsel.c: Patch from David Santiago
1262 <mrcooger@cyberverse.com> to change things so that the
1263 indicator of the active palette entry is done independently,
1264 not via the focus, since it should always be visible.
1266 2000-05-17 Tor Lillqvist <tml@iki.fi>
1268 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
1269 refcount leaks as in the X11 backend.
1271 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
1274 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
1275 backend. Add _gdk_windowing_window_destroy().
1277 * gtk/gtkcolorsel.c: Include correct backend-specific header.
1278 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
1279 either, but these probably do exist on nanox?)
1281 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
1282 which isn't necessarily defined by <math.h>.
1284 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
1285 ancestry past GtkObject.
1287 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
1290 * gtk/gtk.def: Update corresponding to recent changes.
1292 * gtk/makefile.{cygwin,msc}: Updates.
1294 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
1296 * docs/Changes-1.4.txt: A bit of editing.
1298 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
1299 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
1300 to clear the update area for the window, and clear it
1301 when hiding a window.
1303 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
1304 if window destroyed.
1306 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
1308 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
1309 gdk_window_destroy() to the generic code, since there was a lot of
1310 window-system-independent logic it in. Add a function:
1312 _gdk_window_destroy()
1314 to the internal API to destroy a window without unreferencing it.
1317 _gdk_windowing_window_destroy()
1319 That does the windowing-system-dependent part of destroying
1322 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
1324 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
1326 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
1328 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
1329 Make gtk_widget_shape_combine_mask() keep a reference count on
1330 the pixmap since it keeps it around.
1332 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
1334 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
1337 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
1338 leak with event filters.
1340 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
1342 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
1343 signal handlers with the right data arguments. (Fixes
1344 some warnings when a widget was repeatedly set as a drag
1347 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
1348 window so we can avoid avoid setting the DND properties on the
1349 toplevel window repeatedly.
1351 2000-05-13 Tor Lillqvist <tml@iki.fi>
1353 * gdk/win32/gdkwin32.h: Define more message types missing from
1356 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
1357 call gdk_window_destroy_notify(). It was never called. This
1358 probably meant that the GdkWindow was never freed. Thanks Owen for
1361 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
1362 window as destroyed before calling DestroyWindow(). DestroyWindow()
1363 causes a call to the window procedure (gdk_WindowProc), which
1364 calls gdk_event_translate(), which calls
1365 gdk_window_destroy_notify(), which gets confused unless the window
1366 is set as destroyed.
1368 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
1369 this function to indicate it's win32 only. Put inside #ifdef
1372 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
1373 debugging function. (gdk_event_translate:) Add a default branch
1374 that uses the above function to print debug messages with all
1375 Windows messages symbolically.
1377 * gdk/win32/gdkprivate-win32.h: Declare it, and
1378 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
1380 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
1382 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
1385 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
1387 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
1389 * gtk/gtktext.c: made the adjustments no-construct args, simply
1390 provide default adjustments.
1391 (gtk_text_destroy): release adjustments.
1393 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
1394 adjustment argument non-construct.
1396 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
1397 instead of in finalize.
1398 (gtk_progress_get_text_from_value):
1399 (gtk_progress_get_current_text):
1400 (gtk_progress_set_value):
1401 (gtk_progress_get_percentage_from_value):
1402 (gtk_progress_get_current_percentage):
1403 (gtk_progress_set_percentage):
1404 (gtk_progress_configure): ensure an adjustment is present.
1406 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
1408 * gtk/gtkcolorsel.[hc]:
1409 * gtk/gtkcolorseldialog.[hc]:
1410 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
1411 their parent implementation, use bit fields for boolean values, don't
1412 create unused widgets, usage of glib types, braces go on their own
1413 lines, function argument alignment, #include directives etc. etc. etc..
1415 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
1417 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
1419 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
1421 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
1424 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
1426 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
1428 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
1429 to NULL when the toplevel is getting destroyed.
1430 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
1432 (gtk_menu_init): store the information of whether we have to
1433 readd the initial child ref_count during destruction in a new
1434 GtkMenu field needs_destruction_ref_count.
1436 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
1437 here, those reading: learn from my mistake! ;)
1438 in order for set_?adjustment to support a default adjustemnt if
1439 invoked with an adjustment pointer of NULL, the code read (pseudo):
1440 if (v->adjustment) unref (v->adjustment);
1441 if (!adjustment) adjustment = adjustment_new ();
1442 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
1443 now imagine the first unref to actually free the old adjustment and
1444 adjustment_new() creating a new adjustment from the very same memory
1445 portion. here, the latter comparision will unintendedly fail, and
1446 all hell breaks loose.
1447 (gtk_viewport_set_hadjustment):
1448 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
1449 after unreferencing it.
1451 * gtk/gtkcontainer.[hc]: removed toplevel registration
1452 functions: gtk_container_register_toplevel(),
1453 gtk_container_unregister_toplevel() and
1454 gtk_container_get_toplevels() which had wrong semantics
1455 anyways: it didn't reference and copy the list.
1457 * gtk/gtkwindow.c: we take over the container toplevel registration
1458 bussiness now. windows are registered across multiple destructions,
1459 untill they are finalized. the initial implicit reference count
1460 users are holding on windows is removed with the first destruction
1462 (gtk_window_init): ref & sink and set has_user_ref_count, got
1463 rid of gtk_container_register_toplevel() call. add window to
1465 (gtk_window_destroy): unref the window if has_user_ref_count
1466 is still set, got rid of call to
1467 gtk_container_unregister_toplevel().
1468 (gtk_window_finalize): remove window from toplevel list.
1469 (gtk_window_list_toplevels): new function to return a newly
1470 created list with referenced toplevels.
1471 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
1473 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
1474 adjustment a non-construct arg.
1475 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
1476 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
1477 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
1479 * gtk/gtkrange.c: added some realized checks.
1480 (gtk_range_destroy): get rid of the h/v adjustments in the
1481 destroy handler instead of finalize. remove timer.
1482 (gtk_range_get_adjustment): demand create adjustment.
1484 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
1485 we simply create them on demand now and get rid of them in
1486 the destroy handler.
1487 (gtk_viewport_destroy): get rid of the h/v adjustments in the
1488 destroy handler instead of finalize.
1489 (gtk_viewport_get_hadjustment):
1490 (gtk_viewport_get_vadjustment):
1491 (gtk_viewport_size_allocate): demand create h/v adjustment
1494 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
1495 gtk_widget_real_destroy () functionality.
1496 (gtk_widget_real_destroy): reinitialize with a new style, instead
1497 of setting widget->style to NULL.
1499 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
1501 * gtk/gtkcalendar.c:
1502 * gtk/gtkbutton.c: ported _get_type() implementation over to
1503 GType, either to preserve memchunks allocation facilities,
1504 or because Gtk+ 1.0 GtkTypeInfo was still being used.
1506 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
1507 over. prepare for ::destroy to be emitted multiple times.
1508 removed reference tracer magic. chain into GObjectClass.shutdown()
1509 to emit ::destroy signal.
1511 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
1514 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
1521 * gtk/gtkargcollector.c:
1522 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
1523 not being a fundamental anymore, and to work with the new
1524 type system (nuked fundamental type varargs clutter).
1526 * gtk/*.c: install finalize handlers in the GObjectClass
1527 part of the class structure.
1528 changed direct GTK_OBJECT()->klass accesses to
1530 changed direct object_class->type accesses to GTK_CLASS_TYPE().
1532 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
1533 GType. made most of the GTK_*() type macros and Gtk* typedefs
1534 simple wrappers around macros and types provided by GType.
1535 most notably, a significant portion of the old API vanished:
1538 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
1539 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
1542 GTK_TYPE_C_CALLBACK,
1546 gtk_type_set_varargs_type(),
1547 gtk_type_get_varargs_type(),
1548 gtk_type_check_object_cast(),
1549 gtk_type_check_class_cast(),
1550 gtk_type_describe_tree(),
1551 gtk_type_describe_heritage(),
1553 gtk_type_children_types(),
1554 gtk_type_set_chunk_alloc(),
1555 gtk_type_register_enum(),
1556 gtk_type_register_flags(),
1557 gtk_type_parent_class().
1558 replacements, where available are described in ../docs/Changes-1.4.txt.
1559 implemented compatibility functions for the remaining API.
1561 * configure.in: depend on glib 1.3.1, use gobject module.
1563 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
1565 * TODO.xml: Various updates to current status.
1567 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
1569 * gtk.m4: Print out version when test succeeds.
1571 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
1573 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
1574 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
1576 (Original triangle color selector from Simon Budig
1577 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
1578 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
1579 Santiago <mrcooger@cyberverse.com>)
1581 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
1582 out into a separate widget.
1584 * gtk/testgtk.c: Add some checkbuttons for toggling palette
1585 and opacity controls.
1587 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
1589 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
1590 snuck in prematurely.
1592 2000-05-07 Tor Lillqvist <tml@iki.fi>
1594 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
1595 had deleted a ! operator by mistake, which caused
1596 GDK_SELECTION_CLEAR events never to be generated, which caused
1597 only the first copy to the clipboard from an gtkeditable to
1598 actually cause a copy to the Windows clipboard.
1600 2000-05-06 Tor Lillqvist <tml@iki.fi>
1602 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
1603 compilation, too. Current mingw gcc distributions include the
1604 necessary headers. Also the necessary IIDs are now in mingw
1605 headers/libraries, and own definitions unnecessary.
1607 More hacking on OLE2 DND, still doesn't work though, and thus
1610 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
1613 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
1615 * gdk/nanox/*: nano-X port work in progress.
1616 * gdk/simple.c: simple test for Gdk.
1617 * README.nanox: notes about the port: read this first!
1618 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
1621 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
1623 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
1624 gdk_window_clear() into common code, implement in terms of
1625 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
1626 not redirected to the backing rectangle.
1628 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
1630 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
1631 EXTRA_DIST. It does not work well when the file that
1632 everything depends on is not in the tarball.
1634 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
1636 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
1637 with recursion where process_updates() is called from
1638 an expose handler. (GtkTextView is highly broken in
1639 doing this, but it should work, so it is a nice test
1642 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
1644 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
1645 handle the case where updates are queued during processing of
1648 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
1650 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
1651 window is on gdk_display - use that instead of segfaulting.
1653 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
1655 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
1656 broken and require an empty arg, give it to them.
1658 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
1660 * gtk/gtklabel.h: indentation fixes.
1662 2000-05-02 Tor Lillqvist <tml@iki.fi>
1664 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
1665 draw too narrow or too low arcs, they seem to fail, at least with
1666 some display drivers.
1668 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
1670 Large changes to the Win32 backend, partially made necessary by
1671 the changes to the backend-independent internal
1672 structures. Attempts to implement similar backing store stuff as
1673 on X11. The current (CVS) version of the Win32 backend is *not* as
1674 stable as it was before the no-flicker branch was merged. A
1675 zipfile with that version is available from
1676 http://www.gimp.org/win32/. That should be use by "production"
1677 code until this CVS version is usable. (But note, the Win32
1678 backend has never been claimed to be "production quality".)
1680 * README.win32: Add the above comment about versions.
1682 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
1684 * gdk/gdk.def: Update.
1686 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
1687 presumably be replaced by some more better mechanism as 1.4 gets
1688 closer to release shape.
1690 * gdk/makefile.{cygwin,msc}: Update.
1692 * gdk/win32/*.c: Correct inclusions of the backend-specific and
1693 internal headers. Change code according to changes in these. Use
1694 gdk_drawable_*, not gdk_window_* where necessary.
1696 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
1699 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
1700 to interpret single characters as UTF-8. Thanks to Hans Breuer.
1701 Use correct function name in warning messages.
1703 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
1704 GSourceFuncs gdk_event_prepare and gdk_event_check.
1705 (gdk_event_get_graphics_expose): Do implement, use
1706 PeekMessage. Thanks to Hans Breuer.
1707 (event_mask_string): Debugging function to print an GdkEventMask.
1708 (gdk_pointer_grab): Use it.
1710 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
1711 (old) book I used claimed was Hangul actually is CJK Unified
1712 Ideographs Extension A. Also, Hangul Syllables were missing.
1715 * gdk/win32/gdkgc-win32.c: Largish changes.
1717 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
1718 g_win32_getlocale() from GLib, and not setlocale() to get current
1721 * gdk/win32/gdkprivate-win32.h
1722 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
1723 gdkwin32.h, similarily as in the X11 backend.
1725 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
1726 assignment was used instead of equals in if test. Thanks to Hans
1729 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
1732 * gdk/win32/makefile.{cygwin,msc}
1733 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
1734 path to the Win32 headers that works also with the mingw compiler.
1736 * gtk/gtkstyle.c: Include <string.h>.
1738 2000-04-26 Havoc Pennington <hp@redhat.com>
1740 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
1741 replacing the broken gtk_label_get ()
1743 2000-04-15 Havoc Pennington <hp@pobox.com>
1745 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
1746 this keeps scanner scripts from getting confused.
1748 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
1749 data, rather than void
1751 2000-04-15 Tor Lillqvist <tml@iki.fi>
1753 * gtk/gtkclist.c (gtk_clist_motion)
1754 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
1755 with is_hint FALSE, get x and y from the event. They used to be
1756 used uninitialised. The Win32 backend never sends motion events
1757 marked as hints. This for instance fixes the annoying file and
1758 font selector behaviour in the Win32 version.
1760 2000-04-14 Tor Lillqvist <tml@iki.fi>
1762 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
1763 gtk_private_n_signals variables, they are used by some software,
1766 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
1767 installation directory from the Registry, where the installer
1770 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
1772 * gdk/x11/Makefile.am: Fix problem with installation directory for
1775 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
1776 <mrcooger@cyberverse.com> so that when selecting menus with the
1777 mouse, the first item will not be selected, but when selecting
1778 with an accelerator, or navigating left-right on a menubar with
1779 the menus popped up, the first item will be selected.
1781 2000-04-05 Dan Damian <dand@dnttm.ro>
1783 * configure.in: Added "ro" to ALL_LINGUAS.
1785 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
1787 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
1790 * Makefile.am (EXTRA_DIST): Fix typo.
1792 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
1793 to catch gdkconfig.h
1795 * gtk/gtkitemfactory.c: Added FIXME.
1797 2000-03-30 Jonathan Blandford <jrb@redhat.com>
1799 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
1800 s/return_if_fail/return_val_if_fail/g and add a return value.
1802 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
1804 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
1807 * gdk/gdkinput.h: Fix missing line from merge.
1809 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
1811 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
1812 instead of gdkprivate.h.
1814 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
1816 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
1817 parent class to correctly be GtkDialogClass.
1819 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
1821 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
1822 toplevel windows and their immediate children by their parents,
1823 since the size of toplevel windows is out of our immediate
1824 control and we don't get any real benefit from trying to track
1825 this size for clipping.
1827 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
1828 for input_only windows.
1830 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
1831 to fix some hacks and make sure that we don't try to set the
1832 background of input only windows.
1834 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
1836 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
1837 the _really_ internal stuff, and leave gdkprivate.h for the fake private
1838 stuff that we've traditionally exposed.
1840 * gdk/**.c: Use gdkinternals.h where appropriate.
1842 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
1843 not include gdkprivate-x11.h, move all stuff of conceivable public
1844 interest into gdkx.h; keep all really private stuff in
1845 uninstalled header gdkprivate-x11.h.
1847 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
1848 image->image_put on windows through a new function _gdk_window_draw_image()
1849 to allow us to do backing store for images. (Sort of ugly)
1851 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
1852 contexts locally so that we can offset them properly when drawing
1853 onto backing pixmaps.
1855 * gdk/gdkinput.h: Reindented
1857 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
1858 pixmap or color for the window, so we can properly initialize
1859 our double-buffer pixmaps, and also so that we temporarily set
1860 a background of None while scrolling.
1862 * gdk/gdkregion.h: Revise region boolean operators to have an
1863 interface that is actually convenient - switch from creating new
1864 regions on every op, to "methods" that modify existing regions
1865 (A = A OP B). 3 argument forms which allow dest == src, would also
1866 be possible, but the current interfaces seem to map nicely
1867 onto what needs to be done. (There is quite a lot of region
1870 * gdk/gdkregion.h: Add constructor from rectangle and a copy
1873 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
1874 gdkpoly-generic.h: Copy region code from Xlib, switch it over
1875 to 32 bit coordinates, modify it to be mostly GTK+ style
1876 and to have interfaces that match gdkregion.h.
1878 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
1879 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
1880 create a backing pixmap and redirect all drawing to
1881 that backing pixmap until a matching gdk_window_end_paint().
1883 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
1884 Create a special drawable class for GtkWindow's that
1885 redirects the drawing to the backing pixmap as necessary
1886 and then calls the real operations in _gdk_windowing_window_class.
1888 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
1889 Store invalid region for each window. Generate expose events for invalid
1890 region in an idle. This replaces both the expose compression
1891 and the redrawing queuing in GTK+. It is both more efficient and
1892 simpler than either one individually and far more so then the
1895 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
1896 Emulate 32 bit coordinates for windows with 16 bit coordinates
1897 by offsetting drawing, guffaw scrolling techniques and
1898 mapping/unmapping child windows as necessary.
1900 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
1901 where, when invalid regions are processed, the region is stored,
1902 and if expose events come in that are detectably duplicate
1903 the processed exposes (by comparison of event serial numbers),
1904 the stored region is subtracted out of those exposes.
1906 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
1907 regions newly exposed when scrolling or resizing windows.
1908 This, combined with forcing processesing of queued invalidated
1909 regions, gives nice flicker-free scrolling.
1911 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
1912 invalidated regions after every scroll.
1914 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
1915 emulation in GDK. Its, for all practical purposes just a
1916 GtkViewport/GtkFixed hybrid now.
1918 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
1919 (16-bit) structures as necessary instead of just casting.
1921 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
1922 in terms of the structures from gdkregion-generic.c, using appropriate
1923 offsets from GDK to X11 coordinates. Cache clip mask and
1924 origin and ts origin locally and only flush to the server
1925 when drawing, to avoid constantly setting and resetting these
1926 values when offsetting GC's for scrolling and backing pixmaps.
1928 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
1930 * gtk/gtkcontainer.c: Call process_all_updates at end
1931 of resizing to reduce flicker. (Avoids having redraw
1932 lag arbitrarily behind resize under some circumstances)
1934 * gtk/gtkentry.c: Remove old backing store code, and simply take
1935 advantage of the new backing store capabilities of GDK.
1937 * gtk/gtkmain.c: Simple implementation of widget backing
1938 store - simply push a paint while handling each expose.
1939 (Should really be configurable widget for widget.)
1941 * gtk/gtkwidget.c: Remove all the old complicated redraw
1942 code, and simply invalidate the GDK windows from
1943 gdk_window_queue_clear(), etc. (Sigh, so much carefully
1944 debugged complexity ... gone to the winds.)
1946 Remove all the code for suppressing expose events while
1947 resizes are pending; this isn't needed since the invalid
1948 areas won't be processed until after the resizes are
1949 processed, since they are in a lower priority idle.
1951 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
1953 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
1954 and height of dest rectangle for non-intersecting rectangles.
1956 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
1958 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
1961 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
1963 * gdk/gdk{events,image,private,types,window}.h
1964 gdk/x11/gdkinputprivate.h: Change all coordinates
1965 from int16 to int. Also, Change width and height from
1966 unsigned to signed to avoid all the stupid C
1969 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
1971 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
1972 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
1973 Add some more detailed checking.
1975 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
1976 New function to retrieve the depth of a drawable.
1978 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
1979 field, reorder fields to save memory.
1981 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
1983 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
1984 of the background image instead of scaling the background down to
1987 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
1988 which temporarily set slider to wrong size.
1990 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
1993 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
1995 2000-03-23 Jonathan Blandford <jrb@redhat.com>
1997 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
1999 2000-03-17 Tor Lillqvist <tml@iki.fi>
2001 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
2002 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
2004 * gdk/win32/gdkfont-win32.c
2005 * gdk/win32/gdkproperty-win32.c
2006 * gdk/win32/gdkselection-win32.c
2007 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
2010 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
2012 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
2014 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
2016 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
2017 is called without trapping X errors.
2019 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
2021 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
2022 way into the fontset lists.
2024 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
2026 * gtk/gtkthemes.h: add extern "C" scope.
2028 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
2030 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
2031 to make appends to the list constant. (gtk-guy-990901-0.patch)
2033 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
2035 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
2036 for the typename hash table.
2038 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
2040 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
2041 to make sure we never divide by zero.
2042 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
2044 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
2046 * gtk/gtkfontsel.c: Apply patch from
2047 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
2048 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
2050 Also, some cleanups in atom handling.
2052 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
2054 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
2057 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
2059 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
2060 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
2061 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
2062 more guint wrap-around bugs before going to bed.
2064 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
2066 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
2067 guint wrap arounds in allocation.width.
2069 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
2070 process untill we fit the allocation given.
2072 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
2075 (gtk_widget_unrealize): guard widget access with ref/unref
2076 around signal emission.
2077 (gtk_widget_hide): same here, but also check its destroyed
2078 state before queueing a resize.
2080 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
2082 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
2083 of gtk_default_insensitive_bg as insensitive base color.
2085 * gtk/gtktext.c (gtk_text_style_set): set the background color according
2086 to the widget's state.
2087 (gtk_text_realize): same here.
2088 (gtk_text_state_changed): same here.
2089 (draw_bg_rect): compare background color against base[] from
2090 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
2092 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
2094 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
2095 grabs are active, unless a delete event is send to the toplevel
2096 of the currently grab holding widget.
2098 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
2100 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
2101 debugging g_print's.
2103 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
2105 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
2106 ever make the scrolled-window requisition ever depend on the
2107 visibility state of the scrollbars for the AUTOMATIC policy.
2108 This breaks the GTK+ requisition model, and causes loops.
2110 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
2112 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
2113 the default font to avoid problems with XFree86-4.0 where the
2114 default charset is iso10646-1, not iso8859-1.
2116 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
2122 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
2124 * gtk/Makefile.am: minor cosmetic consistency tweak
2126 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
2128 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
2129 the activate_time to 0, so that we handle a quick
2130 press/release press/release properly and don't suppress
2131 the second release. (Red Hat bug #7545)
2133 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
2135 * gtk/gtkctree.c (row_delete):
2136 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
2137 bugs with destruction notifier, *always* update internal
2138 structures *before* calling user code.
2140 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
2142 A few more fixes for bug #5487, #2051, #2677.
2144 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
2145 not GDK_BUTTON_PRESS.
2146 (resync_selection): resync only if selection_mode is
2147 GTK_SELECTION_EXTENDED
2148 * gtk/gtkctree.c (resync_selection): same here
2150 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
2152 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
2153 gdk_drag_get_selection() and gtk_menu_detach().
2155 [ From Jeroen Ruigrok/Asmodai ]
2157 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
2159 * gtk/gtknotebook.c (gtk_notebook_size_request):
2160 page->tab_label can be NULL.
2162 2000-01-25 Havoc Pennington <hp@pobox.com>
2164 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
2167 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
2169 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
2171 * gdk/gdkproperty.c (gdk_property_get): return boolean
2173 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
2175 * gdk/gdkim.c (gdk_im_ready): return boolean
2177 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
2179 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
2180 glib clash, should fix glib)
2182 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
2183 (gdk_get_show_events): return gboolean, and canonicalize
2186 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
2188 (gdk_colors_alloc): gboolean whether to be contiguous
2189 (gdk_color_equal): return gboolean since we are a predicate
2190 and not a qsort() (this looks semi-wrong due to glib breakage,
2191 IMO glib should be fixed)
2193 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
2194 (gdk_get_use_xshm): return gboolean
2195 (gdk_pointer_is_grabbed): return gboolean
2197 * gdk/gdk.h: Change prototypes to match all the above changes,
2198 and re-run egtk-format-protos as required.
2200 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
2202 * gtk/gtkctree.c (resync_selection):
2203 * gtk/gtkclist.c (resync_selection):
2205 Return immediately if clist->drag_pos < 0. This is a workaround
2206 for the corrupt state that the clist gets into when a
2207 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
2209 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
2211 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
2212 variable from recent commit.
2214 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
2216 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
2218 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
2220 * gtk/Makefile.am: prefix all autogenerated source that get build in
2221 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
2222 in builddir. since we subsequently cd into srcdir for autogeneration,
2223 the paths have to be stripped from the target file names, thusly we
2224 use $(@F) as target names now.
2225 put a comment about configure.in's --disable-rebuilds option,
2226 which can be used for non-writable source directories, for development
2227 setups though, srcdir has to be *writable*.
2229 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
2231 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
2232 Finish the job of allowing event to be NULL.
2233 (Fixes bug #4283, reported by Chris Blizzard)
2235 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
2236 things so that the cursor appears on screen, properly
2237 take into account INNER_BORDER.
2238 (Fixes bug #4754, reported by Antonio Campos)
2240 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
2242 * gtk/gtknotebook.c (gtk_notebook_map): Don't
2243 show the tab_label unless it itself is visible.
2245 gtk/gtknotebook.c (gtk_notebook_size_request):
2246 Do a better job of making sure that the visibility
2247 of the tab label corresponds to whether it should
2250 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
2252 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
2253 Use the requisition, not the allocation, since the
2254 allocation has not necessarily been computed yet.
2255 (Pointed out by Eugene Osintsev)
2257 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
2259 * gtk/gtkstyle.c (gtk_style_new): Dont' set
2260 style/base[GTK_STATE_INSENSITIVE] both to
2261 gtk_default_insensitive_bg!
2262 (Bug #2187, reported by Jonathan Blandford)
2264 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
2265 Add Alt_L, Alt_R to list of invalid accelerators.
2266 (Bug #3736, reported by Vlad Harchev)
2268 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
2270 * gtk/gtkfilesel.c (open_ref_dir): Fix several
2271 bugs which occured after an attempt to open
2272 invalid home directory left cmpl_state->reference_dir == NULL.
2274 - completion on files in home directory didn't work
2275 - completion on an empty string caused segfault
2277 (Bug #3768, reported by Steve Ratcliffe)
2279 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
2280 cut and paste error that was causing scales to
2281 be incorrectly positioned.
2283 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
2285 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
2287 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
2288 when checking for dcgettext, if we've found we needed
2291 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
2293 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
2294 queue_clear on NO_WINDOW widgets during a reparent,
2295 since at that point the window and widget heirarchies
2296 are out of sync. This stops crashing in some cases
2297 (the scrolled window reparent test, for instance), and
2298 _probably_ won't cause drawing errors.
2300 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
2301 test do what it was supposed to do and be robust against
2302 window closings, etc. (Bug #2443)
2304 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
2306 * gtk/gtkentry.c: Fix return values on mouse events.
2307 (Bug #2686, Sky <seb_sky@yahoo.com>)
2309 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
2310 (pointed out by George Lebl)
2312 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
2313 (From Ettore Perazzoli <ettore@helixcode.com>)
2315 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
2317 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
2318 clicks between rows or outside calender area correctly.
2319 (Patch from Damon Chaplin)
2321 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
2322 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
2323 Call destroy function when overwriting existing data.
2324 (Pointed out by Damon Chaplin)
2326 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
2328 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
2329 which was causing problems on various systems with Xmu.
2330 This hasn't been needed for a very long time.
2333 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
2335 * gdk/gdki18n.h: Include <ctype.h> when defining
2336 gdk_isw* in terms of is* as a fallback.
2337 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
2339 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
2341 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
2342 realize the widget when it is size allocated!
2345 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
2346 Removed unused call to gdk_window_get_size() that
2347 showed up when the above was fixed.
2349 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
2351 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
2352 fix up widget->window when the widget is a
2353 NO_WINDOW container widget.
2355 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
2357 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
2358 to account for the fact that feof() does _not_
2359 return TRUE on errors, and thus avoid infinite loops
2360 when trying to use gdk_pixmap_create_from_xpm()
2361 on unreadable values.
2363 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
2365 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
2367 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
2369 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
2370 gdk_gc_set_dashes to take gint8 instead of gchar to
2371 make it clearer that it is _not_ a NULL terminated string.
2373 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
2374 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
2375 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
2378 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
2380 * gtk/gtkvscale.c (gtk_vscale_pos_background):
2381 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
2382 background size relative to our allocation, guard against small
2383 allocations, we may have not yet been size allocated.
2385 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
2387 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
2388 not just version == 3. We implement all 3 + most of 4 -
2389 (we don't support matching text/plain;charset=iso-8859-1
2390 to a dest that expects text/plain). We'll still advertise
2391 3 to be safe, but any client implementing version >= 3
2392 must interoperate with 3.
2394 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
2396 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
2397 background and gc members, add a warning in gtk_tooltips_set_color()
2398 indicating that this function is deprecated.
2400 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
2402 * docs/gtkfaq.sgml: FAQ Update:
2403 - Minor cleanups (Emmanuel, me)
2405 I need to add a new signal to a GTK+ widget. Any idea? (timj)
2406 How can I retrieve the text from a GtkMenuItem? (timj)
2407 How do I validate/limit/filter the input to a GtkEntry? (me)
2408 Memory does not seem to be released when I free the list
2409 nodes I've allocated (timj)
2411 2000-03-07 Tor Lillqvist <tml@iki.fi>
2413 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
2414 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
2415 for which it is no use to call GetLastError onWin9x.
2416 (gdk_other_api_failed) New function, for general error
2417 reporting without calling GetLastError.
2418 (gdk_win32_api_failed) OTOH, this function always calls
2419 GetLastError. (gdk_win32_last_error_string) Remove this function,
2420 GLib has the equivalent now.
2422 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
2423 call them with function name, file name and line number in the
2426 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
2429 * gtk/gtk.def: Add some missing entry points.
2431 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
2432 gtk_paned_set_gutter_size, which don't exist any longer, as void.
2434 Fixes by Hans Breuer:
2436 * gdk/makefile.msc: Update for debugging.
2438 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
2439 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
2440 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
2443 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
2446 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
2448 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
2450 2000-03-04 Tor Lillqvist <tml@iki.fi>
2452 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
2453 just pixel value of background colour.
2455 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
2456 containing code snippet previously duplicated in a couple of
2459 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
2462 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
2463 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
2464 events for autorepeated Shift, Control and Alt keys. Use
2467 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
2468 pointer is inside the window the cursor of which we are setting,
2469 call SetCursor immediately.
2471 * gdk/win32/makefile.cygwin
2472 * gtk/makefile.cygwin: If we don't have the build number stamp
2475 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
2476 gtk_paned_set_gutter_size as empty.
2478 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
2480 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
2482 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
2483 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
2484 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
2485 docs/gtk_tut.sgml docs/gtk.texi TODO:
2487 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
2489 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
2491 * gtk/gtkcalendar.c: Implement num_marked_dates,
2492 and don't emit mutiple day_selected signals on
2495 2000-02-25 Jonathan Blandford <jrb@redhat.com>
2497 * docs/make-todo (lineno): let title and logo be configurable so
2498 that GNOME can use this script too.
2500 * TODO.xml: added logourl and a title
2502 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
2504 * TODO.xml: Added some UI items, and an explanatory
2505 comment at the top of the file.
2507 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
2509 * TODO.xml: some updates, added abunch of new entries.
2510 a note for those fiddeling with this file, when done
2512 $ ./docs/make-todo TODO.xml >/dev/null
2513 and correct output errors before comitting changes.
2515 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
2517 * TODO.xml: Added XML-structured TODO file.
2518 * docs/make-todo: python script to turn TODO.xml into
2521 2000-02-23 Jonathan Blandford <jrb@redhat.com>
2523 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
2524 the function to let it draw the seven dots, instead of the old,
2525 much maligned, method.
2526 (draw_dot): New function to draw a dot.
2528 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
2529 to draw the handle inside the border width as opposed to outside.
2530 Use paint function instead of gdk_draw_point.
2532 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
2533 to draw the handle inside the border width as opposed to outside.
2534 Use paint function instead of gdk_draw_point.
2536 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
2537 Change indenting to be more GTK like.
2539 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
2541 * docs/gtk_tut.sgml: New section on GtkCalendar
2542 * examples/calendar: Update example code
2544 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
2546 * docs/gtkfaq.sgml: FAQ Update
2548 2000-02-19 Anders Carlsson <andersca@gnu.org>
2550 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
2551 to prevent the scroll event to be propagated upwards.
2553 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
2555 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
2556 OwnerGrabButtonMask from button entries for
2557 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
2559 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
2560 to the event mask (which will result in button/press release
2561 being added to the event mask on Unix) so scrolling works
2562 for layouts in scroll windows.
2564 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
2566 Patch from Anders Carlsson <andersca@gnu.org> to add
2569 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
2570 scrolling to the "Test Scrolling" part of testgtk.
2572 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
2574 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
2575 it against GDK_SCROLL.
2577 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
2578 way of mouse wheel scrolling.
2580 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
2582 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
2584 * gtk/gtkmain.c: Removed previous mouse wheel hack.
2586 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
2587 gdk_event_mask_table.
2589 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
2590 GdkEventScroll handler.
2592 * gdk/gdkevents.h: Added GdkEventScroll structure.
2594 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
2596 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
2597 and Anders Carlsson to change the Paned widgets so that they
2598 can be dragged from anywhere along the length. Also change
2599 the way that this is drawn to make this apparent.
2601 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
2602 from George Lebl to check that option_menu->menu is present
2603 before getting history.
2605 2000-02-14 Tor Lillqvist <tml@iki.fi>
2607 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
2608 before the assertion for non-NULL segment list.
2610 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
2611 Seems that pattern brushes *must* be 8x8 pixels! At least on my
2612 machine, but it might be display driver dependent. Sigh, so make
2613 sure the stipple is that size. Does Windows suck or what?
2615 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
2618 2000-02-13 Havoc Pennington <hp@pobox.com>
2620 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
2622 (gdk_cursor_new): init refcount to 1
2624 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
2626 2000-02-13 Tor Lillqvist <tml@iki.fi>
2628 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
2629 so that we don't have to do unnecessary settings to the HDC.
2631 * gdk/win32/gdkdrawable-win32.c
2632 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
2635 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
2636 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
2637 GDI paths, call WidenPath to get the outline of the stroken path,
2638 and then fill the outline (with the brush that was built from the
2641 * gdk/win32/gdkgc-win32.c: Factor out common code from
2642 _gdk_win32_gc_new and gdk_win32_gc_set_values into
2643 gdk_win32_gc_values_to_win32values. Use correct colour for
2644 SetBkColor() (Until now the code actually used a random colour in
2645 the call to SetBkColor()... but that didn't show up as not many
2646 GDI APIs use the background colour. Pattern (opaque stippled)
2649 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
2650 gdk_win32_api_failed): New functions for error logging.
2652 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
2653 WIN32_API_FAILED to call them, passing function or file name and
2656 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
2658 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
2659 GdkColor for foreground and background in GdkGCWin32Data.
2661 * gdk/makefile.cygwin: Link in the resource object separately.
2663 * gdk/win32/rc/gdk.rc
2664 * gtk/gtk.rc (New file)
2665 * gdk/win32/makefile.cygwin
2666 * gtk/makefile.cygwin: Update build number in DLLs automatically,
2669 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
2671 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
2672 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
2673 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
2674 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
2675 parameters given and cursor->ref_count. coding style fixups.
2677 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
2680 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
2681 fix up widget macros and add _GET_CLASS() variant.
2683 * gtk/*.c: some GtkType fixups.
2685 2000-02-09 Tor Lillqvist <tml@iki.fi>
2687 * gdk/win32/gdkproperty-win32.c
2688 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
2691 2000-02-04 Tor Lillqvist <tml@iki.fi>
2693 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
2694 g_filename_to_utf8 to convert the font names Windows gives us from
2695 whatever is the default codepage to UTF-8.
2696 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
2697 in the other direction.
2699 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
2700 error in debugging output.
2702 2000-02-02 Tor Lillqvist <tml@iki.fi>
2704 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
2705 and height parameters to gdk_window_clear_area(). Not minus one.
2707 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
2709 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
2710 checks if the widget passed to gtk_drag_get_data() was not the
2713 2000-02-01 Tor Lillqvist <tml@iki.fi>
2715 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
2716 g_filename_from_utf8 functions (which were added a moment ago to
2717 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
2720 gtk_file_selection_get_filename returns the filename in the C
2721 runtime encoding. It calls g_filename_from_utf8, but copies the
2722 returned string to a static buffer, which is returned. I think
2723 this is better than returning the result from g_filename_from_utf8
2724 directly, which would mean all apps that use it would have to free
2725 the return value. Or should this function care about this issue at
2726 all? Maybe a new function with clearly defined semantics.
2728 * gtk/gtkfilesel.h: Add comment about
2729 gtk_file_selection_get_filename returning the filename in the C
2734 * gdk/makefile.{cygwin,msc}
2735 * gtk/gtk.def: Updates.
2737 * gdk/gdkcursor-win32.c: Initialise refcount.
2739 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
2741 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
2743 2000-01-30 Havoc Pennington <hp@pobox.com>
2745 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
2748 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
2750 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
2751 implemented in platform-specific code
2753 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
2755 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
2758 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
2759 put an underscore in front
2761 * gdk/gdkcursor.c: new file, implements
2762 gdk_cursor_ref/gdk_cursor_unref
2764 * gdk/gdkcursor.h: Refcount GdkCursor
2766 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
2768 2000-01-29 Tor Lillqvist <tml@iki.fi>
2771 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
2773 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
2775 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
2776 structures to properly inherit from GtkWidget not GtkBin.
2778 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
2780 * gtk+.spec.in: Added lib/gtk+/include/* to %files
2781 (bug #5178 - Peter Wainright)
2783 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
2784 so that it will be installed.
2785 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
2787 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
2789 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
2790 for the GtkStyleClass vtable const.
2792 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
2793 take a const string argument like GtkTranslateFunc. This will
2794 require changes in use code.
2796 2000-01-19 Tor Lillqvist <tml@iki.fi>
2798 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
2799 semantics (to mimic the X11 backend, which just calls XClearArea)
2800 is to check for zero width (and height), and in that case use the
2801 window's width minus x (height minus y). This fixes for instance
2802 some redraw problems with gtkclist, which were easily noticeable
2803 in the gtk file selection widget.
2805 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
2808 2000-01-13 Tor Lillqvist <tml@iki.fi>
2812 * gdk/x11/Makefile.am
2813 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
2815 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
2818 2000-01-09 Tor Lillqvist <tml@iki.fi>
2820 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
2821 WM_MOVE for iconified or invisible windows. This fixes various
2822 problems when minimising windows. Thanks to Bernd Herd.
2824 2000-01-05 Tor Lillqvist <tml@iki.fi>
2826 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
2827 backend's draw_lines method, not draw_points.
2829 2000-01-02 Tor Lillqvist <tml@iki.fi>
2831 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
2832 before Owen's reorganisation: Don't have queued_events and
2833 queued_tail statics in this file, but use gdk_queued_events and
2834 gdk_queued_tail. This makes exposure event compression work again.
2836 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
2839 1999-12-30 Tor Lillqvist <tml@iki.fi>
2841 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
2842 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
2843 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
2844 doesn't do anything.
2846 * gdk/gdk.def: Add gdk_xid_table_insert.
2848 * gdk/win32/gdkprivate-win32.h
2849 * gdk/win32/gdkevents-win32.c
2850 * gdk/win32/gdkinput-win32.c
2852 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
2853 extension_events field in the GdkWindowWin32Data struct. Use only
2854 the extension_events field in GdkWindowPrivate. Previously one was
2855 set, and the other one tested, which broke tablet
2856 functionality. Thanks to Keishi Suenaga for pointing this out.
2858 1999-12-18 Tor Lillqvist <tml@iki.fi>
2860 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
2861 When handling a single character (text length == 1), don't handle
2862 it as if it was UTF-8.
2864 1999-12-11 Tor Lillqvist <tml@iki.fi>
2866 * Makefile.am: Distribute README.win32.
2869 * gdk/win32/Makefile.am: Distribute Win32 files.
2871 * gdk/makefile.msc: New file.
2873 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
2876 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
2877 gdk_error_code as GDKVAR, as they are referred outside GDK.
2879 * gdk/win32/makefile.msc: Update.
2881 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
2882 tweaks. Check only if at least one of those Unicode subrange bits
2883 we care for is set. If no code page bits are set, guess (wildly)
2884 based on the charset.
2886 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
2888 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
2894 * gtk/gtkselection.c
2896 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
2897 appropriate. There must be a cleaner way to handle this?
2899 * gtk/gtkrc.c: Must include windows.h on Win32.
2901 * gtk/testgtk.c: No need to include gdkx.h.
2903 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
2905 1999-12-07 Tor Lillqvist <tml@iki.fi>
2907 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
2908 the rbearing is set to the same as the width, but this should be
2911 1999-12-06 Tor Lillqvist <tml@iki.fi>
2913 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
2914 function. If Windows doesn't tell us what Unicode subranges a font
2915 covers, guesstimate based on the codepages it covers. This will
2916 hopefully help those Windows versions or fonts that don't give us
2917 any useful Unicode subrange information with GetTextCharsetInfo.
2918 Call this function in gdk_font_load_internal.
2920 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
2923 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
2925 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
2926 New function, long needed.
2928 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
2930 * gdk/gdkproperty.h x11/gdkproperty.c: Change
2931 only_if_exists argument of gdk_atom_intern to
2934 1999-11-25 Tor Lillqvist <tml@iki.fi>
2936 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
2937 Fix two copy&paste errors.
2939 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
2942 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
2943 GdkWin32SingleFont struct.
2945 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
2946 subranges of loaded fonts. Clear font signature first, in case
2947 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
2948 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
2950 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
2951 Unoffset clip region.
2953 1999-11-23 Tor Lillqvist <tml@iki.fi>
2955 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
2956 event->any.window before calling filter functions.
2958 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
2960 * gtk/gtkgamma.h: Adapt cast macros to standard.
2964 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
2966 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
2967 If translation does not include a '/', use entire
2968 translation instead of crashing.
2970 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
2972 * docs/gtk_tut.sgml:
2973 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
2975 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
2977 * gtk/gtkselection.c (gtk_target_list_remove): Use
2978 g_list_remove_link, not g_list_remove.
2980 [ From Geert Bevin <gbevin@thunderstorms.org> ]
2982 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
2984 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
2985 statement upon unselection (how the heck did that slip in?).
2987 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
2989 * gtk/gtktext.c (gtk_text_freeze):
2990 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
2991 in frozen state (and aparently crashes). patch provided by Anders
2992 Melchiorsen <and@kampsax.dtu.dk>.
2994 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
2996 * fix insensitive default/focus widget activation,
2997 reported by Matt Goodall <mgg@isotek.co.uk>.
2999 * gtk/gtkwindow.c (gtk_window_key_press_event):
3000 (gtk_window_activate_default):
3001 (gtk_window_activate_focus):
3002 return handled=FALSE for actiavtion of insensitive default
3003 widgets. return handled=TRUE for activation of insensitive
3004 focus widgets. don't activate in either case.
3006 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
3008 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
3009 and $glib_cflags to match library order and in the
3010 theory that an old version of GLib is more likely to
3011 be in the include directory for X then vice-versa.
3014 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
3016 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
3017 to determine the locale for fontsets, not LC_MESSAGES;
3018 the user may want English messages with a handling
3019 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
3020 will still be broken) (Bug #2891)
3022 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
3024 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
3026 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
3028 * gtk/gtkrc.ko: Changed the Korean default fontset.
3030 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
3032 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
3033 where when scrolling to the left or top double exposes
3034 were done, causing major slowdowns.
3036 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
3038 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
3039 names to lowercase and alphanumeric, before looking
3042 * gtk/Makefile.am: Install codeset variant gtkrc files
3043 with normalized names.
3045 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
3047 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
3048 popup menus when the menu is already visible, but its parent
3049 is still hidden, (happens after tornoff window got hidden).
3051 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
3053 * gtk/Makefile.am (install-data-local): Fix
3054 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
3055 deleted, causing error messages on install.
3057 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
3059 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
3060 the handle as well, since we now sometimes ignore
3061 exposes on the handle while resizing.
3063 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
3065 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
3066 extra g_free introduced in one of the last one or two
3069 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
3071 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
3072 consistent, put each style that a gtkrc.* file creates
3073 in a unique namespace, remove old files before installing.
3075 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
3077 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
3078 gtk_rc_init is called multiple times. (Yes, people who
3079 do that have bugs in their code.)
3081 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
3083 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
3084 Remove it since it's generated by the Makefile anyway
3086 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
3088 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
3089 device->info.axes for core pointer.
3091 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
3093 * gtk/testgtk.c (destroy_idle_test): Rename idle to
3094 idle_id, to deal with obsolete, broken C libraries.
3096 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
3098 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
3099 allocation->x/y twice!
3101 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
3102 consistent with gtk_vscale_pos_trough().
3104 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
3106 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
3107 be queueing a resize on a toplevel container between
3108 the time we show it and when we map it. So, we need
3109 to test GTK_WIDGET_VISIBLE() for toplevels, and only
3110 use GTK_WIDGET_DRAWABLE() for child windows.
3112 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
3114 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
3117 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
3119 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
3120 container DRAWABLE (instead of VISIBLE), so we don't queue
3121 resizes on non-toplevel containers.
3123 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
3125 * gtk/gtkselection.[ch]: Make the data argument
3128 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
3130 * gtk/gtkwindow.c: Try to behave sensibly if
3131 the focus widget is the window itself. (Should
3132 we allow this at all?)
3134 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
3136 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
3137 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
3138 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
3139 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
3140 in prototypes and implementations consistent (Tomas Ogren).
3142 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
3143 before the widget is unparented (reported by damon).
3145 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
3146 since we provide unsigned data anyways.
3148 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
3150 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
3151 the call to gtk_tooltips_layout_text() until later.
3153 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
3154 Call gtk_widget_ensure_style() before using the style.
3156 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
3158 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
3159 for old widgets that don't propagate draws to all
3160 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
3162 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
3164 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
3165 for a redraw but just the widget that requested the resize.
3167 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
3169 * gtk/gtkcontainer.c: added new widget level method
3170 gtk_container_set_reallocate_redraws() and a GtkContainer flag
3171 reallocate_redraws : 1 to reflect the setting, exported this through
3172 the argument system as a boolean ::reallocate_redraws.
3174 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
3175 on the widget because the allocation changes, do so as well for
3176 widget->parent if the parent has reallocate_redraws set to TRUE.
3177 with that containers requesting reallocation redraws get automatically
3178 redrawn if their children changed allocation (this unfortunately
3179 affects also other children that didn't change allocation, but we
3180 cannot work around that before 1.3).
3182 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
3184 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
3185 _and_ height are >0 (not _or_).
3187 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
3188 instead of gtk_container_queue_resize(), which is a core gtk internal
3189 function (must have been on crack when i queued that).
3191 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
3192 we can check more reliably if we want to discard expose events.
3193 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
3196 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
3197 we simply trust these events. for deciding whether to discard exposes,
3198 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
3200 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
3202 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
3203 queues of areas that are completely off screen.
3205 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
3206 logic for handleboxes.
3208 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
3209 check on width/height.
3211 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
3213 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
3214 we are fine with using $@ the way we do (if we actually encounter
3215 brokeness with $@ in VPATH builds because of additional path prefixes,
3216 we need to use $(@F) actually).
3218 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
3220 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
3221 short lived bugs, that would allow language bindings to do surgeries
3224 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
3226 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
3227 where comparison was being done against an uninitialized
3228 value causing intermittant results depending on
3229 compiler flags. Also make it clearer that we aren't
3230 ever initializing the child as 0x0 (though this will
3231 be caught in gtk_widget_size_allocate())
3233 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
3235 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
3236 gtk_window_unset_transient_for() call after we do checks
3237 involving the old transient parent.
3238 [ From Lance Capser <lmc@cyberhighway.net> ]
3240 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
3242 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
3245 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
3247 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
3248 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
3250 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
3252 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
3253 `$@' is valid only in the build dir, not after we've done
3254 `cd $srcdir'. Also use `test -f' instead of less portable
3257 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
3259 * gtk/gtktext.c (correct_cache_insert): Rewrite
3260 for simplicity, and hopefully correctness.
3261 (Fixes bug #1322, which was a segfault when
3262 on some insertions with the properties around
3263 the insertion set up just wrong.)
3265 * gtk/gtktext.c (gtk_text_adjustment): When we receive
3266 a "changed" signal, clamp the new value to the adjustment
3267 bounds to avoid segfaulting if someone tries to change
3268 the adjustment to a bogus value. (Bug #1795)
3270 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
3272 * gtk/gtkmain.c: Ignore unexpected destroy notifies
3273 for children, for toplevel windows handle them
3276 * gtk/gtkplug.c: Add an unrealize handler so that
3277 we unref plug->socket_window when we are done
3280 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
3282 * gtk/gtktext.c (clear_area): Fix stupid signedness
3283 problem that was causing background to sometimes
3286 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
3288 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
3290 * gtk/gtkmenu.c (gtk_menu_position): Make
3291 sure we never position menus with negative x, y,
3292 since gtk_widget_set_uposition() can't handle that.
3294 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
3295 Modify the positioning code a bit so that we always
3296 put the top-left corner onscreen. (This is for
3297 UI reasons, gtk_menu_position() now takes care of
3298 gtk_widet_set_uposition() brokeness.)
3300 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
3302 * gtk/Makefile.am: fixed up things for -jx, x > 1.
3304 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
3306 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
3307 RC style that is passed in. The lack of the ref
3308 before was a bug. If people worked around this
3309 bug, this will introduce a slight memory leak
3310 in their code. The code should typically look like:
3312 rc_style = gtk_rc_style_new ();
3314 gtk_widget_modify_style (widget, rc_style);
3315 gtk_rc_style_unref (rc_style);
3317 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
3318 the style if it was already set.
3320 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
3321 style if it was set before.
3323 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
3325 * gtk/testgtk.c (main): Add a check to see if we
3326 are being run from the correct directory and
3327 to quit nicely if we are not.
3329 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
3332 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
3334 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
3337 queue resizes unconditionally (gtk_widget_queue_resize will figure
3338 what to do if the window is not realized).
3339 (gtk_window_move_resize): only recenter the window
3340 for GTK_WIN_POS_CENTER_ALWAYS.
3341 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
3342 the same way as GTK_WIN_POS_CENTER.
3344 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
3346 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
3347 with (!(info->last_flags & GDK_HINT_POS)) instead of
3348 (!info->last_flags & GDK_HINT_POS).
3350 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
3351 new_height unconditionally, because we use these values even if
3352 !default_size_changed && !hints_changed.
3353 comented the (default_size_changed || hints_changed) case with
3354 respect to resize rejects from the window manager.
3356 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
3357 in the zvt condition hack, since this includes the window hints, set
3358 the hints after the handling_resize case.
3360 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
3361 window is initially shown with to the geometry.
3363 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
3365 * gtk/gtkwindow.c (gtk_window_move_resize):
3366 s/size_changed/default_size_changed/g so i know what's
3367 really going on (frying brain on smaller flame now).
3369 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
3371 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
3372 we have size_changed upon handling_resize. this is a gross
3373 workaround for the broken zvt widget and should be removed in
3374 1.3 again (search for FIXME).
3375 Owen provided an accurate comment for this:
3377 /* We could be here for two reasons
3378 * 1) We coincidentally got a resize while handling
3380 * 2) Our computation of size_changed was completely
3381 * screwed up, probably because one of our children
3382 * is broken. It's probably a zvt widget.
3384 * For 1), we could just go ahead and ask for the
3385 * new size right now, but doing that for 2)
3386 * might well be fighting the user (and can even
3387 * trigger a loop). Since we really don't want to
3388 * do that, we requeue a resize in hopes that
3389 * by the time it gets handled, the child has seen
3390 * the light and is willing to go along with the
3391 * new size. (this happens for the zvt widget, since
3392 * the size_allocate() above will have stored the
3393 * requisition corresponding to the new size in the
3396 * This doesn't buy us anything for 1), but it shouldn't
3397 * hurt us too badly, since it is what would have
3398 * happened if we had gotten the configure event before
3399 * the new size had been set.
3402 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
3404 * gtk/gtkrc.c: deal properly with the fact that RC
3405 style lists may include rc styles more than once.
3407 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
3408 unused static function.
3410 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
3411 stack of directories of RC files currently being
3412 parsed and implicitely add them to pixmap path.
3414 This fixes a bug where the directory would get
3415 appended then overwritten by pixmap_path declarations.
3417 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
3419 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
3420 theme's exit function. (Patch from Peter Wainwright,
3423 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
3424 Add a destroy() handler to take care of removing
3425 group for menu item. (Fixes bug #1197)
3427 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
3430 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
3432 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
3433 roundtrip to figure window's width and height, since we know that
3434 anyways from widget->allocation.
3436 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
3438 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
3439 the hints after we request the new size.
3441 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
3443 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
3444 GTK_WIDGET_REALIZED() assertion - we can compute the
3445 hints before we are realized.
3447 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
3448 hint changing so that we have a value of hints_changed
3449 when we decide whether to constrain the window size.
3451 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
3453 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
3454 change back to G_MAXINT.
3456 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
3458 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
3459 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
3460 contain uncluttered values.
3461 (gtk_window_compute_hints): simply assert that window is realized
3462 and that geometry_info is valid, since we rely on this anyways.
3463 (gtk_window_constrain_size): major cleanups to the code.
3464 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
3465 for the base size, instead of the minimums. use 32767 as max width
3466 and height (like in gtkwindow.c) instead of G_MAXINT.
3468 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
3470 * cleaned up the GtkContainer.need_resize flag handling mess, we
3471 only need to force resize requests when we were prematurely
3472 realized, or our widget tree was modified when we were temporarily
3473 hidden. handling these cases directly upon showing the window (i.e.
3474 while the GdkWindow is still unmapped) avoids the need to wait for
3475 a configure event response and therefore makes the GUI more snappier
3476 and avoids blank windows during the roundtrip.
3480 (gtk_widget_show): don't queue resizes on toplevels, they know how
3481 to deal with matters.
3483 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
3484 flag directly for not visible resize containers and spare us unecessary
3488 (gtk_window_realize): if we need to enforce premature size allocation,
3489 queue a container resize so we are correctly resized later on.
3491 (gtk_window_size_request):
3492 don't freak around with the ->need_resize flag,
3493 gtk_container_queue_resize() will care about that.
3495 handle initial resizing issues here, we can handle matters better in
3496 this place, especially since we know that our GdkWindow is still
3498 (gtk_window_move_resize):
3499 don't care about ->need_resize at all.
3500 handle size changes properly that occoured while we waited for a
3503 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
3505 * gtk/gtkwidget.c (gtk_widget_set_uposition):
3506 * gtk/gtkwindow.[hc] (gtk_window_reposition):
3507 Move the hint setting code from gtk_widget_set_uposition
3508 to here; set the hints so that we respect any previously
3511 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
3512 change the window hints here or move the window here,
3513 let that happen in gtk_window_move_resize().
3515 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
3517 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
3518 to already queued resizes (and therefore redraws) on a widget, check
3519 its anchestry as well.
3521 * gtk/gtkcontainer.c:
3522 (gtk_container_queue_resize): clear resize widgets for resize
3523 containers before aborting prematurely. this is especially important
3524 for toplevels which may need imemdiate processing or their resize
3525 handler to be queued.
3526 (gtk_container_dequeue_resize_handler): added new internal function for
3529 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
3530 configure event, take possible changes in window position into account
3532 if we request a new window size, queue up a resize handler that will
3533 last until the configure event response arrives.
3534 combined the ->need_resize case (initial show) with the general size
3535 (hints) changed case and added even more comments.
3536 if !auto_shrink, only revert to the old allocation if the new size
3537 is smaller than the current allocation.
3539 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
3541 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
3542 gtk_window_set_geometry_hints
3543 gtk_window_set_default_size):
3544 When hints are set, queue a resize so that the hints will
3545 be eventually reset on the toplevel.
3547 * gtk/gtkwindow.c (gtk_window_show): Use
3548 gtk_window_compute_default_size(). Clear the need_resize flag
3549 on the initail map so that we don't unnecessarily trigger the
3552 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
3553 into separate functions. Compare the hints we are setting
3554 with what we set last time so that we can accurately
3555 tell when we need to reset the hints.
3557 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
3558 function to figure out the size from requisition
3561 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
3562 from fvwm to constrain a size to the geometry hints.
3564 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
3565 to compare two sets of geometry hints.
3567 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
3568 from gtk_window_set_hints(), just compute the hints,
3571 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
3572 code from gtk_window_move_resize() to separate function,
3575 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
3577 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
3578 structure into a new private structure.
3580 * gtkrc.c: Split GtkRcStyle into public/private.
3581 In the private part, add a list of pointers to the
3582 RcStyle lists this RcStyle participates in.
3584 * gtkrc.c: When a RcStyle is free, remove all
3585 lists referencing it from the
3586 realized_style_ht hash, and free those lists.
3588 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
3589 gtk_rc_init(), since that adds the default styles
3590 to the list of parsed RC files again.
3592 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
3594 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
3596 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
3597 checks that ensure that a widget's allocation is at least 1 in width
3598 and height. (GNOME note: this doesn't affect old panel code anymore,
3599 because GtkSocket will request width and height of at least 1 since
3602 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
3603 allocated yet (happens if the user realizes the window prematurely),
3604 size request and allocate it.
3605 (gtk_window_size_allocate): guard against guint underflows.
3607 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
3609 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
3610 in gtk_built_sources, so gtk.defs gets built prior to all other
3613 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
3616 invoke indent on gtkmarshal.*.
3617 rewrote source generation rules, use COPYING as oldest source tag for
3618 a piggyback rule to generate all sources from (don't touch it ;).
3619 major cleanups, strip spaces on build rules for GNU Make.
3621 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
3622 source and target files from commandline arguments. don't invoke indent.
3624 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
3626 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
3627 notebook after switch to avoid drawing problems.
3628 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
3630 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
3632 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
3634 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
3636 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
3637 notebook after switch to avoid drawing problems.
3638 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
3640 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
3642 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
3644 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
3647 we use window->need_resize from configure_event now, to indicate that
3648 the gtkwindow should keep its allocation (e.g. because the user resized
3649 the window through window manager handles). resize_count is now reliably
3650 used to figure whether we got the allocation we requested from the
3652 configure events get queued as resizes now, the real stuff (size
3653 computation and allocation) now only goes on in gtk_window_move_resize().
3654 GtkWindow's requisition now contains its *real* requisition (like all
3655 other widgets), *not* taking usize into account.
3656 geometry_info->last_{width|height} is now updated from set_hints() only
3657 so it always contains the last hints we set for the window manager.
3658 made some event handlers return TRUE instead of FALSE.
3659 the overall code should be much more straight forward now, and the
3660 significant code portions are accompanied by comments now.
3661 (gtk_window_set_hints):
3662 removed requisition argument and made it
3663 fetch the requisition through gtk_widget_get_child_requisition.
3664 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
3667 ensure that the widget is realized before calling
3668 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
3669 ensure that we got properly size requested and allocated before
3671 (gtk_window_configure_event):
3672 ignore plain window moves, or reallocate the widget tree through the
3673 resize queue otherwise.
3674 (gtk_window_move_resize):
3675 mostly rewrote this function to figure window manager hints more
3676 reliably, coalesce window moves and resizes to reduce configure events
3677 and do actuall size allocations.
3679 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
3681 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
3682 that have a resize pending, because a redraw is already queued for them.
3684 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
3685 hack to clear resize_widgets.
3687 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
3688 for resize containers prior to size allocation. (this is also a bit
3689 ugly, but avoids side effects for stopped emissions and is thus more
3691 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
3693 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
3694 function from gtk_tooltips_expose, as we connect to ::expose_event
3697 1999-08-18 Federico Mena Quintero <federico@redhat.com>
3699 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
3701 (gtk_target_list_unref): Likewise.
3703 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
3705 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
3707 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
3708 guard against division by zero. (Fixes bug #1339)
3710 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
3712 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
3713 Prevent the trivial leak of information of allowing
3714 word motion when the entry is not visible.
3716 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
3718 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
3719 modality to error dialog as well as confirmation dialogs.
3720 (Bug #1803, reported by Rosanna Wing Sze Yuen)
3722 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
3724 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
3726 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
3728 * gtk/Makefile.am (install-data-local): Solaris apparently
3729 has various troubles with ln -f; use rm first instead.
3730 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
3732 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
3734 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
3735 use `cp' followed by `rm' (the `rm' was already there).
3737 July 30, 1999 Elliot Lee <sopwith@redhat.com>
3739 * configure.in: Fix autoconf warnings about cross compilation by
3740 trying to provide sane defaults for AC_TRY_RUN.
3741 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
3742 put them into $(srcdir) when generated. Also add a dependency of
3743 gtksignal.h on gtkmarshal.h for -j builds.
3744 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
3746 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
3748 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
3749 GDK_THREADS_{LEAVE,ENTER} pair.
3750 (From Paul Fisher <pnfisher@redhat.com>)
3752 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
3754 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
3755 width and height are always >0 (owen).
3757 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
3759 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
3760 change that assured that a widget's allocated with and height are
3761 always >1, since this breaks *buggy* panel code. unfortunately this
3762 back-breaks the gimp's color selector.
3764 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
3765 allocation is always >0 in width and height, before sending the
3766 configure event; this is a *gross* hack to get the gimp back to work.
3768 * marked both cases with TODO-1.3
3770 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
3772 * gtk/gtktext.c: Don't display wrap indicators when
3773 text is not editable and word wrap is on.
3775 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
3777 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
3778 option menus here as they are not derived from menu shell, assure that
3779 the option menu has a menu we can add items to.
3781 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
3783 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
3784 width/height to (gint) before calculations and check against < 0 to
3785 avoid guint wraparounds.
3787 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
3789 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
3790 width and height is never zero. sanity check both dimensions against
3791 32767 and issue a warning if the allocation is greater than that.
3793 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
3795 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
3796 to g_main_pending() as well.
3798 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
3800 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
3801 call to g_main_iteration() - since that will regrab
3802 GTK+ lock to process events.
3804 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
3807 - Regularize with the rest of GTK+ by making widget->requisition
3808 not reflect the set_usize()
3809 - Always recompute geometry hints, then check if they
3810 changed before sending them to the X server. The
3811 previous checks for changes would fail in a number
3814 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
3816 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
3818 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
3822 - Instantaneously update on modifier key presses
3823 - Allow cancellation of the drag with Escape.
3825 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
3827 * gtk/testgtk.c (create_handle_box): Set the policy
3828 to auto_shrink - otherwise the appearance is rather
3829 strange when flipping between horizontal and vertical.
3831 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
3833 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
3834 (gtk_window_set_default_size): don't change a value if it's < 0.
3837 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
3839 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
3841 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
3843 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
3844 add an extra "/" when concating "/" + filename.
3845 (From Matt Grossman <mattg@oz.net>)
3847 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
3849 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
3850 for fg_gc if we set it for drawing pixmap.
3852 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
3854 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
3856 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
3857 already set, call old engine's destroy function and
3858 unref the old engine.
3860 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
3862 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
3864 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
3866 * gtk/gtkaccelgroup.h: mark certain functions as internal.
3868 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
3870 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
3871 expand behaviour changed.
3873 * gtk/gtklabel.c (gtk_label_set_pattern):
3874 (gtk_label_set_justify):
3875 (gtk_label_set_line_wrap):
3876 don't bother invoking queue_clear, the reallocation does
3877 that for us, always free_words so the upcoming resize will
3878 relayout the label's contents.
3880 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
3882 * applied argument implementation patches from Elena Devdariani
3885 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
3886 ::space_style, ::relief
3887 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
3888 * gtk/gtkpreview.c: ::expand
3889 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
3890 * gtk/gtknotebook.c: ::homogeneous
3891 * gtk/gtklabel.c: ::wrap
3892 * gtk/gtklist.c: ::selection_mode
3893 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
3894 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
3895 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
3896 * gtk/gtkclist.c: ::sort_type
3897 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
3898 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
3900 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
3902 * gtk/gtkstyle.c: Removed ill-thought-out part of last
3905 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
3907 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
3908 counting right when we have to attach a new style
3909 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
3911 * gtk/gtkstyle.c: Documented the refcounting
3912 peculularities of gtk_style_attach.
3914 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
3916 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
3919 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
3920 of GTK_TOPLEVEL for creating the window.
3922 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
3924 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
3925 the last argument (reported by Per Winkvist).
3927 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
3929 Fixes for invisible XOR lines (Frank Loemker
3930 <floemker@TechFak.Uni-Bielefeld.DE>)
3932 * gtk/gtkclist.c (gtk_clist_realize): Always use
3933 a non-zero pixel for GDK_XOR.
3935 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
3936 Use GDK_INVERT instead of GDK_XOR.
3938 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
3940 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
3941 signals if h/voffsets differ from adjustment values.
3942 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
3944 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
3946 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
3947 ::selection-done emissions up to the topmost menu shell.
3949 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
3951 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
3952 the user data on the window before destroying it.
3954 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
3955 unrealize handler to take care of destroying
3956 notebook->panel properly.
3957 (Bug #1198 - Morten Welinder <terra@diku.dk>)
3959 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
3960 of g_new and g_realloc to stop memory leak. (Actually,
3961 we could just use g_realloc(), but I'm not 100% sure
3963 (Bug #1196 - Morten Welinder <terra@diku.dk>)
3965 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
3967 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
3969 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
3972 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
3973 with bin/button confusion.
3975 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
3977 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
3978 and show how preselection of radio items is done.
3980 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
3982 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
3983 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
3984 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
3985 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
3986 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
3987 * gtk/gtktable.c (gtk_table_attach):
3988 * gtk/gtklist.c (gtk_list_insert_items):
3989 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
3990 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
3991 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
3992 * gtk/gtkbin.c (gtk_bin_add):
3993 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
3994 * gtk/gtkfixed.c (gtk_fixed_put):
3995 * gtk/gtklayout.c (gtk_layout_put):
3996 general fixups to container_add logic. always realize child if
3997 child->parent is realized, only map the child and queue a resize
3998 if child and child->parent are both visible.
4000 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
4002 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
4003 instead of gtk_container_foreach to walk and unrealize children, so
4004 composite children get also unrealized.
4005 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
4006 (gtk_widget_map): assert that the widget is visible (basic constrain).
4007 (gtk_widget_real_map): assert that the widget is realized (basic
4010 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
4012 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
4014 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
4016 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
4017 file for iso-8859-2 locales.
4019 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
4021 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
4023 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
4024 (Pointed out by andy@rz.uni-karlsruhe.de and others).
4025 Remove some suspicious and useless lines.
4027 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
4029 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
4030 width,height = 0, 0 to mean - here to edge of window,
4031 instead of -1, -1, since the former is all we support.
4033 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
4035 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
4036 when removing from quit_functions list.
4038 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
4040 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
4042 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
4044 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
4045 When redrawing characters on non-visible entry, use appropriate
4046 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
4048 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
4050 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
4051 from drag coordinates.
4052 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
4055 * gtk/gtktree (drag_dest_cell)
4056 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
4059 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
4061 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
4063 (gtk_item_factory_finalize): invoke translate_notify independant from
4065 (gtk_item_factory_set_translate_func): likewise.
4066 (gtk_item_factory_destroy): only remove ifactory pointer from those
4067 widgets that belong to us (stupid me).
4069 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
4071 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
4072 rc_style list when lookup succeeeds.
4074 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
4076 * gtk/gtkctree.c (resync_selection):
4077 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
4078 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
4081 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
4083 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
4084 Add some missing GDK_THREADS_ENTER()/LEAVE around
4085 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
4087 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
4089 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
4090 rather than emit_by_name.
4092 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
4093 on the widget across multiple signal emissions.
4094 (gtk_editable_delete_text): same here.
4095 (gtk_editable_class_init): set widget_class->activate_signal after
4096 editable_signals[ACTIVATE] has been created.
4098 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
4100 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
4101 position here prematurely -- we might not have the
4102 right ->min_position and ->max_position yet.
4104 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
4106 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
4107 Add error traps so if the other end of the connection
4110 * gtk/gtkselection.c (gtk_selection_notify): Clean
4111 up properly when selection property retrieval fails.
4113 * gtk/gtkselection.c (gtk_selection_request): Correctly
4114 reject SelectionRequest notifies where the handler
4117 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
4119 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
4120 when we've previously highlighted.
4122 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
4123 emit two "drag_leave" signals for Motif drops.
4125 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
4126 back the correct status messages when dropping from
4127 Motif onto a proxy window that is rejecting the
4130 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
4132 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
4133 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
4134 to compare two argument values. added gtk_arg_to_valueloc() to set a
4135 variable from an arg through its location (pointer).
4137 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
4138 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
4139 as gfloat*, uchars are collected as guchar*, ints are collected as
4142 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
4144 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
4145 Include <string.h> instead of <strings.h>.
4147 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
4148 (actually, a lot more duplicate includes occur if
4149 you trace through the sequence of #include's)
4150 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
4152 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
4154 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
4155 gtk-a-higuti-990322-[0-3]
4157 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
4158 that was causing -DX_LOCALE not to work.
4160 * gtk/gtkrc.c (gtk_rc_init):
4161 X_LOCALE will never have LC_MESSAGES defined
4163 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
4165 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
4166 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
4168 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
4169 left/right as well (gtk-michael-980726-0.patch.gz).
4171 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
4172 for pointer values, use gchar instead of char. fixed uline allocation
4173 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
4174 chunks instead of G_ALLOC_ONLY.
4175 (gtk_label_size_request): always alter requisition as passed and leave
4176 widget->requisition alone.
4177 (gtk_label_set_text): allow NULL strings.
4178 (gtk_label_new): likewise.
4180 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
4182 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
4184 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
4186 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
4187 *and* mapped (i.e. drawable).
4188 (gtk_bin_expose): only send exposes to drawable children.
4190 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
4191 (gtk_box_expose): only send exposes to drawable children.
4193 * gtk/gtkhscale.c (gtk_hscale_draw):
4194 * gtk/gtkvscale.c (gtk_vscale_draw):
4195 hm, this is an ugly one. we first compute the size of our trough area
4196 here (window relative) and then check intersection with the draw_area
4197 which is parent relative because we're a NO_WINDOW widget, so we need
4198 to offset the trough area by allocation.x and allocation.y before the
4199 check. (this must not be done for the background area though, since
4200 that's already computed parent relative).
4202 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
4204 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
4205 unrealize title buttons.
4207 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
4209 * gtk/gtkclist.c (gtk_clist_column_title_passive)
4210 (gtk_clist_column_title_active):
4211 only connect/disconnect to GtkWidgetClass::event to block mouse events.
4213 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
4214 zero initialize event, removed superfluous gdk_window_get_pointer call
4216 * gtk/gtklist.c (gtk_list_vertical_timeout)
4217 (gtk_list_horizontal_timeout): removed superfluous
4218 gdk_window_get_pointer call
4220 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
4222 * plugging problems reported by "Bruce Mitchener, Jr."
4223 <bruce@puremagic.com> due to a purify session.
4227 (gtk_style_unref): assert ref_count to be > 0.
4229 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
4231 (gtk_clist_set_shift): likewise.
4233 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
4236 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
4237 event before sending it and set send_event to TRUE (which needs to
4238 be done for *all* synthesized events).
4239 (gtk_list_vertical_timeout): likewise.
4241 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
4244 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
4245 to TRUE when synthesizing events.
4247 [ *** end of merges from 1.2 *** ]
4249 1999-11-21 Tor Lillqvist <tml@iki.fi>
4251 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
4252 (or copied from gdkconfig.h.win32 on Win32, sigh).
4254 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
4256 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
4258 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
4260 * gdk/gdkconfig.h.win32: New file.
4262 * gdk/win32/makefile.cygwin: Build just a static archive here.
4264 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
4265 for the DLL from the static archive built above.
4267 * gdk/gdk.def: Moved here from the win32 subdirectory.
4269 * gdk/win32/*: Adapt for the changed private struct organisation.
4271 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
4273 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
4275 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
4276 for wheel mice (buttons 4 and 5).
4278 1999-11-18 Tor Lillqvist <tml@iki.fi>
4280 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
4281 drawables use just the pixel field in the foreground and
4282 background GdkColor of the GdkGC.
4284 gdk_gc_set_{fore,back}ground() are called in the GIMP with
4285 GdkColors containing uninitialized (red,green,blue) fields, and
4286 just the pixel field filled in, and furthermore in the
4287 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
4288 It thus turns out that we really don't need to have the full
4289 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
4290 it later to have just the pixel values.
4292 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
4294 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
4296 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
4298 * docs/gtkfaq.sgml: threads example from Erik Mouw.
4299 New question on GtkLabel background colors.
4301 * docs/gtk_tut.sgml:
4302 - Correct the example code callback
4303 function definitions.
4304 - Update the gtkdial example code, from Frans van Schaik.
4305 - Update setselection.c to current API.
4307 * examples/Makefile examples/*/*.c: Update to code
4310 1999-11-10 Tor Lillqvist <tml@iki.fi>
4312 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
4313 subrange table (from the "Developing International Software for
4314 WIndows 95 and Windows NT" book) was missing the Hangul syllable
4315 block... Get the loaded font's charset correctly.
4317 (Note that this, and the other *-win32.c files, still really are
4318 the old ones, the win32 subdirectory is not ready for compilation
4319 yet after the reorg.)
4321 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
4323 * gtk/gtkclist.c: Fix off-by-one bug in parameter
4326 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
4328 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
4329 on results of XQueryDeviceState().
4331 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
4333 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
4334 we need to accesss only ->children. We need an accessor
4337 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
4338 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
4339 to get rid of gdkx.h include.
4341 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
4342 and random references to 'None'.
4344 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
4345 Get rid of unused #include <gdk/gdkx.h>
4347 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
4348 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
4351 1999-11-08 Tor Lillqvist <tml@iki.fi>
4353 * gdk/win32/gdkdraw.c
4354 * gdk/win32/gdkfont.c
4355 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
4356 following yesterday's changes. (Unrelated to Owen's reorg.)
4358 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
4360 * gdk/x11/gdkinput-gxi.c: Add missing include,
4361 fix GdkWindowPrivate => GdkDrawablePrivate.
4363 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
4365 * gdk/x11/Makefile.am (xinput_sources): Add missing
4366 backslash to fix building with --with-xinput=none
4368 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
4370 Move all X specific code into the x11/ directory.
4371 Aside from shuffling things around, did the following:
4373 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
4374 gdk_arg_context_* - a simple argument parsing system
4375 in the style of popt.
4377 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
4378 gdk/x11/gdkprivate-x11.h:
4379 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
4380 add ->klass and ->klass_data fields. The klass_data
4381 field points to an auxilliary structure that is
4382 windowing system dependent.
4384 * gdk/gdkfont.c: Make most of the measurement functions
4385 simply wrappers around gdk_text_extents().
4387 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
4388 _gdk_font_strlen() function that hides the weird
4389 behavior in gtk+-1.[02] where a string is interpreted
4390 differently for 8-bit and 16-bit fonts.
4392 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
4393 to store common code for synthesizing double/triple
4396 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
4397 Make all the function that modify an existing GC
4398 simply wrappers around gdk_gc_set_values().
4400 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
4401 for throwing out later.
4403 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
4404 GdkImagePrivate and GdkColormapPrivate to have a
4405 windowing system dependent part (GdkFontPrivateX etc.)
4406 that "derives" from the system-independent part.
4408 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
4409 Got rid of the included-source-files for XInput in
4410 favor of automake conditionals. (Which didn't exist
4411 when XInput support was originally added.)
4413 * gdk/gdkrgb.c: Remove the visual id from the debugging
4414 statements since that is X11 specific; print out
4415 type/depth info instead.
4418 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
4420 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
4421 loading duplicates of hashed fonts.
4423 * gdk/gdk.c (gdk_keysym_convert_case): rename
4424 gdk_XConvertCase to gdk_keysym_convert_case, allow
4425 results to be NULL in the GTK+ style.
4427 * gdk/gdkcompat.h: Started compatibility header
4430 1999-11-07 Tor Lillqvist <tml@iki.fi>
4432 * gdk/win32/gdkprivate.h: New font private structures, related to
4435 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
4436 gdk_font_list_free(). On X11, will just be wrappers to
4437 XListFonts() and XFreeFontNames(). On Win32, the code previously
4438 in gtkfontsel.c is now here.
4440 New function gdk_font_xlfd_create(). On X11 will get the FONT
4441 property of the font (for GDK_FONT_FONTs), or call
4442 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
4443 builds a XLFD style name from the font information in the LOGFONT
4446 New function gdk_font_xlfd_free(), which correspondingly frees the
4447 string returned by gdk_font_xlfd_create().
4449 Implement fontsets on Win32. Add a function that iterates over a
4450 wide char string and calls a callback function for each substring
4451 of wide chars from the same Unicode subrange (and thus probably
4452 available in the same real font).
4454 Improve the XLFD emulation a bit.
4456 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
4458 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
4459 Beta3, WM_IME_CHAR messages don't seem to contain the composed
4460 multi-byte char as with the Active IMM on Win9x. Oh well, handle
4461 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
4462 ImmGetCompositionStringW() to get the composed Unicode chars.
4465 * gdk/win32/gdkdraw.c: Changes needed because of the font private
4468 * gdk/win32/gdk.def: Add the new functions.
4470 1999-11-04 Tor Lillqvist <tml@iki.fi>
4472 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
4473 get the Platform SDK to get <dimm.h>.
4475 * gdk/win32/gdkevents.c: More event handling fixes and
4476 simplification. Never generate motion events with is_hint true. We
4477 used to do that on bogus grounds earlier. Windows sends
4478 WM_MOUSEMOVE messages on button events even if the mouse hasn't
4479 moved, ignore these.
4481 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
4483 * gdk/win32/gdkglobals.c
4484 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
4485 the TrackMouseEvent function, and use it.
4487 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
4488 char before calling WideCharToMultiByte in order to get a string
4489 for the window title.
4491 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
4493 * gdk/win32/gdk.def: Remove obsolete functions.
4495 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
4496 /nodefaultlib and /defaultlib switches.
4498 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
4500 1999-10-31 Tor Lillqvist <tml@iki.fi>
4502 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
4505 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
4506 same type as GdkWChar, especially on Win32.
4508 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
4510 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
4511 before passing to Windows GDI for drawing etc. Convert to the
4512 system default codepage before passing to Windows as window
4515 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
4516 support changing input locale on the fly.
4518 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
4519 on-the-fly changes. Convert incoming characters from the current
4520 codepage to Unicode (and then to a UTF-8 multi-byte string) based
4521 on the current input language. Use keysym<->Unicode mapping tables
4522 and functions borrowed from xterm sources.
4524 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
4525 editions of Win9x, use the ActiveX-based Active IMM (Input Method
4526 Manager) if available. IMEs and the Active IMM are available under
4527 the disguise of Chinese, Korean and Japanese support for IE and
4528 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
4529 support is present in all editions (as long as you install it).
4531 Call DispatchMessage from gdk_events_queue() (and thus
4532 gdk_WindowProc()), instead of duplicating the code in
4535 Reworked the grab handling and propagation code, factored out
4536 duplicated code snippets into separate functions. Other cleanups,
4539 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
4540 the <dimm.h> header describing the Active IMM.
4542 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
4543 just do the same as for "single" fonts.
4545 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
4546 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
4547 the new keysyms from gdkkeysyms.h.
4549 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
4550 fontset, so that gtkentry uses wide characters.
4552 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
4553 GTk+'s system directory "gtk+", not "gtk".
4555 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
4557 * docs/gtkfaq.sgml: FAQ update
4559 1999-10-21 Tor Lillqvist <tml@iki.fi>
4561 * gdk/win32/gdkprivate.h: Add more font private data.
4563 * gdk/win32/gdkfont.c
4564 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
4565 fonts and strings. Now works much better. You still have to
4566 have a correct font selected, though. No fontset emulation yet.
4568 1999-10-19 Tor Lillqvist <tml@iki.fi>
4570 * gtk/maketypes.awk: Use G_OS_WIN32.
4572 * gtk/gtk.def: Add some missing entry points. Also some non-public
4573 ones, but PyGTK porter claims to need them.
4575 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
4576 built-in type generation.
4578 1999-10-14 Tor Lillqvist <tml@iki.fi>
4580 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
4581 GDK_FONT_FONT fonts (which is all we have for now, we don't
4582 emulate fontsets). The X11 version uses plain XDrawString in that
4583 case, too. The string passed to gdk_draw_text_wc seems to be in
4584 fact (at least, when used by gtkentry and gtktext) either in a
4585 single-byte charset, or a DBCS. Not Unicode.
4587 This fixes the problem in gtkfontsel, where even if you had
4588 selected a font with a non-Latin1 charset (windows-greek, for
4589 instance), the preview still used Latin-1 glyphs.
4591 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
4592 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
4593 (gdk_font_load): Recognize the demibold etc weights, even if we
4594 don't have the corresponding constants in the headers.
4595 (gdk_font_hash_insert): Use same hash mechanism as in the X11
4596 version. Should save font resources a bit, when we don't have
4597 multiple HFONTs for the same font.
4599 * gdk/win32/gdkprivate.h: Add the names field as in the X11
4602 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
4604 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
4607 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
4609 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
4610 layout support (as mentioned on
4611 http://www.jcinteractive.com/gnome-ui/software/widgets/)
4613 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
4616 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
4618 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
4620 * configure.in (ALL_LINGUAS): Added Galician (gl)
4622 1999-10-05 Tor Lillqvist <tml@iki.fi>
4624 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
4626 * gdk/win32/gdkcompat.c: New file, actually provide an
4627 implementation for the deprecated functions. (Just temporarily.)
4629 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
4631 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
4633 * gdk/win32/gdk.def gtk/gtk.def: Updates.
4635 1999-10-05 Kjartan Maraas <kmaraas@online.no>
4637 * configure.in: Added "uk" to ALL_LINGUAS.
4639 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
4641 * configure.in: correct checking for BeOS check
4646 * gtk/gtkitemfactory.c
4648 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
4650 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
4652 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
4653 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
4654 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
4657 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
4659 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
4660 Fix a reference to window_private->destroyed.
4662 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
4663 (ugly) setting of an internal GdkWindow member to use
4664 a _slightly_ cleaner macro.
4666 * gdk/gdkprivate.h: Split GdkWindowPrivate into
4667 GdkDrawablePrivate and GdkWindowPrivate.
4668 Add extra macros for accessing GDK_DRAWABLE_ components.
4670 * *.[ch]: Massive adjustments for the above, use the
4671 new macros in a lot of places.
4673 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
4675 * gdk/gdktypes.h: Make GdkDrawable the base type,
4678 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
4680 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
4682 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
4684 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
4686 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
4688 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
4689 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
4691 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
4693 * docs/gtk-config.1: Now autogenerated.
4694 * docs/Changes-1.4.txt: started
4696 1999-10-03 Tor Lillqvist <tml@iki.fi>
4698 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
4699 to #ifdef also here.
4701 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
4702 Owen did to the X11 backend.
4704 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
4705 ScrollWindowEx when blitting inside a window, it can't be correct
4706 in the general case.
4708 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
4709 WM_GETMINMAXINFO is easier.
4711 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
4712 depth equal to the bitspixel value, not the visual's depth.
4714 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
4715 to 24 even if the bitspixel value is 32.
4717 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
4718 need to check for depth==32 when bpp==32, depth will always be 24.
4720 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
4722 * docs/Changes-1.4.txt: Started
4724 * gtk/Makefile.am (gdk_headers): Include all the new headers.
4726 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
4728 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
4731 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
4732 header to gdkinputprivate.h.
4734 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
4735 unused since before 1.2.
4737 1999-09-30 Tor Lillqvist <tml@iki.fi>
4739 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
4740 expand possible hex escapes in the font family (put there by
4741 logfont_to_xlfd if the font name isn't a legal XLFD font family,
4742 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
4743 On Win32, add hex escapes here, too.
4745 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
4747 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
4748 to #ifdef GDK_WINDOWING_X11.
4750 [ Merges from gtk-1-2 ]
4752 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
4754 * configure.in: fixed "GNU Make" check to pass with new make version
4757 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
4759 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
4760 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
4761 AM_PATH_GTK() macros don't get confused by the -pre1.
4763 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
4765 * configure.in (REBUILD): Change check for perl5
4766 to check explicitely for v >= 5.002. (5.001
4767 does not work with our scripts.)
4769 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
4771 * configure.in: evaluate $PERL for the perl version check. added
4772 --disable-rebuilds to give the user an option to completely disable
4773 any source autogeneration rules.
4775 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
4777 * configure.in: evaluate $ac_make when checking for GNU Make.
4779 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
4781 * docs/Makefile.am: added generation.txt.
4783 * Makefile.am: require automake 1.4, build README from README.in and
4784 INSTALL from INSTALL.in in dist-hook.
4787 * INSTALL.in: new files to autogenerate README and INSTALL from.
4789 * configure.in: figure whether we have GNU Make
4791 * docs/generation.txt: minor additions/corrections.
4793 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
4795 * docs/gtkfaq.sgml: FAQ Update
4797 July 30, 1999 Elliot Lee <sopwith@redhat.com>
4799 * configure.in: Fix autoconf warnings about cross compilation by
4800 trying to provide sane defaults for AC_TRY_RUN.
4802 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
4805 * ltmain.sh: upgrade to libtool 1.3.3
4807 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
4809 * INSTALL: Indicate that the --with-glib= configure
4810 time flag is unsupported.
4812 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
4814 * docs/generation.txt: Added a file that gives
4815 documenation about the autogeneration process for
4816 various autogenerated files.
4818 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
4820 * configure.in (LIBS): Look for libgmodule in the
4823 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
4825 * docs/gtk_tut.sgml: Removed references to
4826 code examples in my directory on gtk.org as
4827 they should all be in the tutorial now.
4829 * docs/gtk_tut.sgml: Added sources for dial-test
4830 and scribble-xinput programs that were previously
4833 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
4835 * TODO: Added entry about menu keyboard navigation, removed
4836 some finished items.
4838 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
4840 * acinclude.m4: Standardize on func_dgettext
4841 not func_gettext, so that the checks for dgettext
4842 actually are paid attention to.
4844 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
4846 * configure.in (LIBS): Add $INTLLIBS into $LIBS
4847 directly, rather than repeating the checks for
4850 * INSTALL: Added information about gettext and
4853 * acinclude.m4 (LIBM): Check for dgettext, not
4854 just gettext. This should hopefully fix things wrt
4855 systems with old versions of GNU gettext installed.
4857 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
4859 * configure.in (LIBS): Look for libgmodule in the
4862 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
4864 * autogen.sh: add --enable-maintainer-mode
4866 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4868 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
4870 * docs/gtk-config.1.in:
4872 configure.in: gtk-config is now generated.
4874 * docs/gtk-config.1: Removed, now generated.
4876 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
4878 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
4879 handle CreateNotify itself, still put out a debuging message for
4880 --gdk-debug=events. made the ReparentNotify debugging message more
4882 wrap xcoords translation for ConfigureEvents into an error trap,
4883 a destroy event may already be pending, and in that case, the
4884 actuall coordinate values are not at all critical.
4886 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
4888 * gdk/gdkcc.c: Stop leaking the color_hash all over
4889 the place. Simplify and improve the logic.
4891 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
4893 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
4894 for prototypes and function implementations consistent (reported
4897 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
4899 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
4900 send_event set in debugging output.
4901 (gdk_compress_exposures): default initialize the event so we don't
4902 operate on bogus values (namely send_event).
4904 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
4906 * gdk/gdkwindow.c: When we receive an unexpected
4907 destroy notify on one of our windows, don't just
4908 warn about it, also mark our windows as destroyed.
4910 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
4912 * gdk/gdkfont.c (gdk_font_hash_insert): Add
4913 name => font and name => fontset hashes. The
4914 name => fontset hash is a _big_ win since we
4915 weren't previously caching fontsets at all and loading
4916 fontsets is expensive. The name => font hash
4917 is less of a win, but it does save us from doing
4918 repeated XQueryFont calls on the same font.
4920 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
4921 list so we can remove font/fontset from hash.
4923 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
4925 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
4926 and slightly confusing test. [ XInternAtom (,,TRUE)
4927 will never return None ].
4929 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
4931 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
4932 gdk/gdkwindow.c (gdk_window_set_hints):
4934 Don't omit setting the properties if flags == 0 -
4935 there may be an existing set of properties there
4936 already. (Very old bug. Would it be better to
4937 delete the property instead?)
4939 * gdk/gdkselection.c (gdk_selection_property_get): Fix
4940 spelling error in comment.
4942 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
4944 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
4945 to avoid stomping over gdk_error_warnings.
4947 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
4948 as (bits_per_pixel + 7) / 8. This gives the same
4949 result as before for multiples of 8, but actually
4950 a "reasonable" value for 1bit or 4bit displays.
4952 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
4954 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
4957 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
4959 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
4960 discarding configure events.
4962 1999-08-18 Federico Mena Quintero <federico@redhat.com>
4964 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
4965 refcount is greater than zero.
4967 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
4969 * gdk/gdkfont.c (gdk_font_unref): Likewise.
4971 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
4973 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
4975 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
4977 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
4978 that format 32 => sizeof(item) == 4. It really is
4981 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
4983 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
4984 core dump at all on X IO errors, only core dump
4985 if --enable-debug for X errors.
4987 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
4989 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
4990 unknown window:" message. disabled ConfigureNotify discarding code,
4991 because it led to events being processed out of order.
4993 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
4995 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
4997 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
4998 we export this function, supress error warnings and don't reset the
4999 error code in the first half of this function.
5001 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
5002 code (instead of just -1) so gdk_error_trap_pop() reveals something
5003 actually informative about the error that happened.
5006 don't rely on gdk_error_code being -1 if an error occoured, but just
5007 gdk_error_code != 0.
5009 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
5011 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
5012 pointer *before* invoking the filter function, so we at least don't
5013 crash if a filter is removed that is currently executed. window filters
5014 *really* need to be made truely reentrant at some point.
5016 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
5018 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
5019 PropertyNotify debug messages.
5021 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
5023 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
5025 * gdk/gdkim.c: Fix cut-and-paste errors for
5026 x/y and PreeditAttributes/StatusAttributes.
5028 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
5030 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
5031 G_MAXINT to 2^16 to alleviate overflow problems in
5032 various window managers.
5034 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
5036 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
5039 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
5041 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
5042 Initialize size_hints.x and size_hints.y because kwm
5043 brokenly pays attention to them.
5044 (Bug #1181 - Lars Heete <hel@admin.de>)
5046 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
5048 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
5049 return value of gdk_list_visuals().
5050 (Bug #1193 - Morten Welinder <terra@diku.dk>)
5052 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
5054 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
5055 XSetIMValues to (void *) when comparing to NULL, to workaround
5056 the problem of some compilers barfing since older X headers don't
5057 have the prototype for it.
5059 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
5061 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
5062 for pseudocolor where colormap->colors was double
5065 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
5066 color value in the hash table with the pixel filled
5067 in so when we do later hash table lookups, the color
5070 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
5072 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
5075 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
5077 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
5078 pointed out by Morten Welinder <terra@diku.dk>.
5080 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
5082 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
5083 default filter from the list
5085 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
5087 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
5088 default filter from the list
5090 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
5092 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
5094 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
5095 g_strdup_printf instead of calcing the length separately
5097 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
5099 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
5100 that we don't do in many other places. (Fixing duplicate
5101 #include of config.h)
5103 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
5104 Otherwise, #ifndef XINPUT_NONE check in the latter
5105 doesn't work. (Bug #546)
5107 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
5109 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
5110 "None" case insensitive.
5112 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
5114 * gdk/gdkselection.c:
5115 Add error traps so if the other end of the connection
5118 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
5120 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
5121 dest_xid field into two fields - one for the window
5122 to send in messages, one to indicate the last looked
5123 up window for caching purposes. This is needed, so
5124 that Leave messages get the correct window.
5126 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
5128 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
5129 Fix warning created by people mucking around
5130 with the gsource API.
5132 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
5133 Change mapping between GIOCondition and GdkInputCondition
5134 to match the way the Linux kernel does it. This should
5135 fix problems where closed pipes were no longer signalling
5136 GDK_INPUT_READ on systems with a native poll().
5138 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
5140 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
5141 explicitly for the string "None" - it is in the XPM
5142 spec and some servers treat unknown colors in odd ways
5143 (like asking the user!)
5145 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
5147 * gdk/gdkevents.c: made "->" into a "." of previous change so
5150 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
5152 * gdk/gdkevents.c (gdk_compress_exposures): Set the
5153 window field of the event structure before calling
5156 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
5158 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
5159 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
5161 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
5163 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
5164 intermediate text property - prevents major memory
5165 leak when gdk_use_mb.
5166 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
5168 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
5170 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
5171 gtk-a-higuti-990322-[0-3]
5173 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
5174 sizeof(wchar_t) != sizeof (GdkWChar)
5176 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
5177 that was causing -DX_LOCALE not to work.
5179 * gtk/gtkrc.c (gtk_rc_init):
5180 X_LOCALE will never have LC_MESSAGES defined
5182 * gdk/gdk.c (gdk_init_check):
5183 Remove --xim-preedit and --xim-status from argv properly.
5185 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
5186 that the client window is present on the X server
5187 before we pass it to the input method.
5189 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
5191 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
5192 if --display is specified on the command line, than
5193 the drag window will not be created on that display.
5195 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
5197 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
5198 lookups with only_if_exists == TRUE were inserting
5199 bogus values into the atom cache.
5201 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
5203 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
5204 then reset it to NULL.
5208 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
5209 key for g_hash_table_remove() in both functions, this prevents us
5210 from accessing possibly uninitialized portions of a GdkColor structure
5211 where we are only interested in its pixel value.
5213 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
5215 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
5216 font hash table, if we have a GdkFontPrivate entry for this font
5217 already, simply increment its reference count, provided by Olaf Dietsche
5218 <olaf.dietsche+list.gtk@netcologne.de>.
5220 1999-09-21 Tor Lillqvist <tml@iki.fi>
5222 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
5225 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
5226 unused variables, leftovers from the X11 version.
5228 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
5230 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
5231 downcase fields on X11.
5233 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
5235 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
5236 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
5238 1999-09-17 Tor Lillqvist <tml@iki.fi>
5240 * gdk/win32/gdk.def: Add gdk_threads_mutex.
5242 * gtk/makefile.msc: Correct path to libintl.
5244 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
5245 use of gint vs. int, and gint vs. gboolean in headers and
5246 definitions. Use GtkType for the *_get_type functions. Note that
5247 these changes preserve binary compatibility.
5251 * gdk/gdk.h: Fix inconsistencies: gint vs int.
5255 * gtk/gtkmenufactory.c
5257 * gtk/gtkwidget.c: Fix inconsistencies, also gint
5260 * gtk/gtkcolorsel.[ch]
5262 * gtk/gtkdrawingarea.[ch]
5264 * gtk/gtkhandlebox.[ch]
5265 * gtk/gtkhpaned.[ch]
5266 * gtk/gtkhruler.[ch]
5268 * gtk/gtkpreview.[ch]
5270 * gtk/gtksocket.[ch]
5271 * gtk/gtkstatusbar.[ch]
5272 * gtk/gtktoolbar.[ch]
5274 * gtk/gtkvpaned.[ch]
5275 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
5278 * gtk/gtkgamma.h: Fix bug, missing () in call of
5279 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
5281 1999-09-14 Tor Lillqvist <tml@iki.fi>
5283 * gdk/gdkcolor.c (gdk_colormap_new)
5284 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
5285 colormap->colors was allocated twice.
5287 * gdk/win32/gdk.c: Remove some unused stuff.
5289 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
5292 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
5293 * gtk/gtklabel.h (gtk_label_get_type)
5294 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
5295 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
5296 in a couple of places, not guint.
5298 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
5300 * configure.in,po/et.po: added Estonian language file
5302 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
5304 * configure.in,po/da.po: added Danish file
5306 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
5308 * docs/gtkfaq.sgml: Minor FAQ Update
5310 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
5312 * docs/gtkfaq.sgml: FAQ update
5314 1999-08-27 Tor Lillqvist <tml@iki.fi>
5316 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
5317 way to get window contents continually refreshed while resizing. I
5318 didn't like the effects myself, so it's not on by default.
5320 * gdk/win32/gdkprivate.h: New flag variable
5321 gdk_event_func_from_window_proc, FALSE by default.
5323 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
5324 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
5325 are passed --gdk-event-func-from-window-proc.
5327 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
5328 and we have am event_func, call it instead of enqueing the event.
5330 1999-08-23 Tor Lillqvist <tml@iki.fi>
5332 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
5333 Kelley: Set expose_count in GdkEventExposes correctly.
5335 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
5336 MULTIPLE_WINDOW_CLASSES).
5338 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
5339 for bug in NT, apparently NT *does* draw the end pixel, too, in
5340 LineTo with a one-pixel pen, so we don't have to do it ourselves.
5342 1999-08-21 Tor Lillqvist <tml@iki.fi>
5344 Improvements by Hans Breuer:
5346 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
5348 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
5349 CS_?REDRAW flags as they cause lots of (late) redraws when "show
5350 window contents while dragging" is turned on. Allocate at least
5351 one unique class for every GdkWindowType. If support for single
5352 window-specific icons is ever needed (eg. Dialog specific), every
5353 such window should get its own class.
5355 1999-08-19 Tor Lillqvist <tml@iki.fi>
5357 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
5358 error that caused crashes.
5360 1999-08-17 Tor Lillqvist <tml@iki.fi>
5362 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
5363 window, use ScrollWindowEx, and call UpdateWindow. This prevents
5364 bugs when for instance part of the window was outside the
5365 display. Thanks to Philippe Colantoni for finding and fixing this.
5367 1999-08-16 Tor Lillqvist <tml@iki.fi>
5369 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
5370 endpoint calculations which were totally wrong. (A little RTFMing
5373 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
5374 from a separate directory, not from gettext, because of licensing
5375 issues (we want to use the LGPL version).
5377 * README.win32: Mention the intl from glibc vs from gettext issue.
5379 1999-08-13 Tor Lillqvist <tml@iki.fi>
5381 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
5382 in the key event handling: Now AltGr chars work again. Also,
5383 now Alt-digits are passed up as well as Control-digits.
5384 Pass keypad plus and minus as normal plus and minus.
5386 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
5388 * docs/gtkfaq.sgml: FAQ Update
5390 1999-07-25 Tor Lillqvist <tml@iki.fi>
5393 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
5396 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
5397 OK, but getting closer. Guard against bogus tilt data from Wacom
5398 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
5399 enable easier building without Wintab.
5401 * gdk/win32/gdkinput.h
5402 * gdk/win32/gdkevents.c
5403 * gdk/win32/gdkwindow.c: Minor changes related related to above.
5405 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
5406 code. As we have just one visual on Win32, no sense to have it in a
5407 table, and no need for the hash table.
5409 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
5410 better on white background.
5412 1999-07-21 Tor Lillqvist <tml@iki.fi>
5414 * README.win32: Update gcc build instructions. Mention gettext is
5417 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
5418 supported cursor size with GetSystemMetrics.
5420 * gdk/win32/gdkfont.c
5421 * gtk/gtkfontsel.c: Guard against some font weight and charset
5422 symbols being undefined (in mingw32 headers).
5424 * gdk/win32/makefile.cygwin
5425 * gtk/makefile.cygwin
5426 * gtk/gtkthemes.c: No longer need to have differently named
5427 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
5429 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
5431 * docs/gtkfaq.sgml: Long awaited FAQ update.
5433 1999-07-15 Tor Lillqvist <tml@iki.fi>
5435 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
5436 it. Obscure bit manipulation needed.
5438 * gdk/win32/gdkevents.c: Logging.
5440 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
5441 style (file name include compiler name) for theme engines.
5443 1999-07-13 Tor Lillqvist <tml@iki.fi>
5445 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
5447 * gdk/win32/gdkevents.c: Fix long-standing bug in key
5448 events. The key.string wasn't zero-terminated, still we strdup'ed
5449 it in gdk_event_copy(). Synthesize crossing events for button
5450 events before possible propagation.
5452 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
5454 * gdk/win32/makefile.cygwin
5455 * gtk/makefile.cygwin: Use new DLL naming style for the
5458 * gdk/win32/makefile.msc
5459 * gtk/makefile.msc: Cosmetics mostly.
5461 * gtk/gtk.def: Add missing entry points.
5463 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
5465 1999-07-09 Tor Lillqvist <tml@iki.fi>
5467 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
5468 or height is zero. Don't print a warning if Pie or Arc fails, they
5469 always fail (?) for very narrow ellipses.
5471 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
5472 the part or the destination window corresponding to source area
5473 outside of the source drawable's boundary.
5475 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
5476 anything if less than two points.
5478 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
5479 return NULL. Gtk cut-and-paste inside a single program works
5480 better this way. (It always gets the clipboard contents from
5481 Windows, not from its own copy, which is cleared anyway. I can't
5482 say I fully understand what happens... Emulating the X selection
5483 and property stuff is a bit of a mess.)
5485 * gdk/win32/gdkevents.c
5486 * gdk/win32/gdkproperty.c: A bit more verbose logging.
5488 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
5489 that never got deleted). Revamp gdk_region_shrink.
5491 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
5494 * gtk/gtk.def: Add some missing entry points.
5496 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
5499 1999-07-04 Tor Lillqvist <tml@iki.fi>
5501 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
5502 Control-digits specially.
5504 1999-07-03 Tor Lillqvist <tml@iki.fi>
5506 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
5508 1999-06-28 Tor Lillqvist <tml@iki.fi>
5510 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
5511 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
5514 1999-06-01 Jose H Mercado <jmercado@mit.edu>
5516 * gtk+.spec.in: Corrected some typos in files section.
5518 1999-06-15 Tor Lillqvist <tml@iki.fi>
5520 * README.win32: Mention using GNU gettext.
5521 * config.h.win32: Enable NLS stuff.
5522 * gtk/makefile.msc: Use GNU gettext.
5523 * gdk/win32/gdkdnd.c: Minor header reorg.
5524 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
5526 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
5527 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
5529 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
5535 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
5537 1999-05-30 Tor Lillqvist <tml@iki.fi>
5539 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
5540 SafeAdjustWindowRectEx. Don't override all calls to
5541 AdjustWindowRectEx by it, but use it only in two places: When
5542 creating a new top-level window and when moving a top-level
5545 Use screen coordinate rectangle, not client rectangle, in
5546 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
5547 when we try to place a window so that the decoration (mainly,
5548 title bar) isn't visible.
5550 These changes fix the bug that showed up for instance as the
5551 GIMP's saved top-level windows moving right and down (by an amount
5552 equal to the window decoration) for each session. This bug showed
5553 up also in testgtk's "Saved Position".
5555 gdk_window_resize also redone a bit.
5557 1999-05-25 Tor Lillqvist <tml@iki.fi>
5559 * gtk/testgtkrc: Add (commented out) Windows-style theme
5562 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
5564 1999-05-18 Tor Lillqvist <tml@iki.fi>
5566 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
5567 gdkx.h to a gdk subdirectory, so that applications can include
5568 these with <gdk/*.h> without trouble.
5570 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
5571 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
5572 have their bitmap destroyed.
5574 * gdk/win32/gdk.def: Add gdk_root_parent.
5576 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
5582 gtk/Makefile.am: changes to compile nicely (with xlib)
5585 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
5591 * ltmain.sh: upgrade to libtool 1.3
5593 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
5596 * gtk/gtkctree.c: merges from gtk-1-2
5598 1999-04-25 Tor Lillqvist <tml@iki.fi>
5600 Support added for building using a GNU toolchain on Win32,
5601 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
5603 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
5604 * config.h.win32: Changes for gcc.
5605 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
5606 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
5607 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
5608 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
5609 Protect shl stuff unavaiilable with mingw32 headers.
5610 * gdk/win32/gdkevents.c: Fix typo.
5611 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
5612 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
5613 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
5614 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
5615 the mingw32 headers.
5616 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
5617 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
5618 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
5619 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
5620 Test for NATIVE_WIN32, not _MSC_VER.
5621 * gtk/gtkmain.c: No use warning about developer version on Win32,
5622 there aren't any non-developer versions anyhow.
5623 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
5624 * gtk/makefile.msc: Use pthread from another directory. Minor other
5627 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
5629 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
5630 default filter from the list
5632 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
5634 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
5635 when gtk_widget_grab_default() is called for a widget that
5636 is not within a GtkWindow.
5638 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
5640 * docs/gtk_tut.sgml, examples/clist.c: use a
5641 scrolled window in the clist example. Minor
5644 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
5646 * docs/gtk_tut.sgml: Style check from David King
5647 <dking@youvegotmail.net>
5649 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
5651 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
5652 compile with unknown value of GDK_WINDOWING
5654 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
5656 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
5657 after the rule is fired.
5658 (install-exec-local): Install gdkconfig.h only if the contents are
5659 different from the currently installed gdkconfig.h.
5661 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
5663 * gdk/Makefile.am (configexecincludedir): Rename from
5664 configincludedir so that gdkconfig.h will be installed
5665 as part of `make install-exec'.
5667 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
5673 * ltmain.sh: upgrade to libtool 1.2f
5675 * autogen.sh: libtool is not required to autogen gtk+
5677 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
5680 1999-03-18 Tor Lillqvist <tml@iki.fi>
5682 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
5683 declaring gdk variables exported/imported from the DLL. New image
5684 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
5685 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
5686 GDK_DRAG_PROTO_OLE2.
5688 * gdk/gdk.h: Merge in Win32 version: Two new functions,
5689 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
5690 declared only for the Win32 version, but could be in the X11
5691 version as well. (Needed for a Xlib-less gdk_imlib.)
5692 gdk_color_hash should have only one parameter. Declare
5693 gdk_threads_mutex with GDKVAR.
5695 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
5698 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
5699 per pixel, not bits.
5701 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
5702 Fetch bpp (which means bits-per-pixel here) from another place on
5703 Win32. Accept also depth==32 (which we might get on Win32) with
5706 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
5707 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
5708 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
5709 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
5710 in the backend-dependent directory, not in the common gdk
5713 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
5716 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
5718 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
5719 want to use the Gtk+ devel version (which is true, and yes - even i am
5720 currently working with the 1.2.x branch). so everyone reading this, you
5721 probably want to issue
5722 cvs checkout -r glib-1-2 glib
5724 cvs checkout -r gtk-1-2 gtk+
5725 as your next two comands.
5727 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
5729 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
5730 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
5732 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
5733 file. strongly deprecated the GTK_HAVE_* macros, we provide
5734 GTK_CHECK_VERSION() for people that need to check for certain
5737 * gtk/gtkcompat.h: removed this from CVS.
5738 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
5739 idea right from the start, it just didn't seem like that back then.
5741 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
5743 * merges from gtk-1-2:
5745 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
5747 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
5748 item factory class has been created.
5749 (gtk_item_factory_parse_rc): likewise.
5752 keep proper references for old_active_menu_item.
5753 (gtk_menu_reparent): unset the usize of the new parent,
5754 so the menu can sanely be size requested and we don't get nasty screen
5755 artefacts upon next reparentation.
5756 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
5757 enter notify. only synthesize enter notifies if the pointer really is
5758 inside the event window.
5759 (gtk_menu_popdown): use gtk_menu_shell_deselect().
5760 (gtk_menu_popup): move the background setting stuff into
5761 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
5763 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
5764 gtk_menu_shell_select_item() to select the new item.
5765 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
5766 do the right thing for deselection as well.
5768 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
5770 * gtk/gtkwidget.[hc]:
5771 (gtk_widget_accelerators_locked): return whether a widget's accelerators
5774 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
5775 existing accelerators if the widget's accelerators are locked.
5777 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
5779 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
5781 * gtk/gtkmenu.c: truely forward key press and key release events to
5782 the menu widget from the toplevel or tearoff window. we can't simply
5783 connect to that, we need to stop further processing of the events as
5786 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
5789 (gtk_menu_key_press): pass event->keyval, event->state to
5790 gtk_accelerator_valid, instead of event->keyval twice.
5791 refuse to install single letter accelerators for menus that use
5792 single letter shortcuts.
5794 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
5795 gtk_menu_ensure_uline_accel_group().
5797 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
5798 which will always return an uline accel group, made
5799 gtk_menu_get_uline_accel_group() return NULL if the group isn't
5802 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
5804 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
5806 * gtk/gtkclist.c (gtk_clist_column_title_passive):
5807 Leave button sensitive, trap button_press, button_release,
5808 motion_notify, enter_notify and leave_notify events instead.
5809 (gtk_clist_column_title_active): disconnect event handler.
5810 (gtk_clist_drag_data_get): fixed memory leak. Reported by
5811 Guillaume Laurent <glaurent@worldnet.fr>
5813 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
5815 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
5816 width/height mixups.
5818 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
5821 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
5823 * gtk/testgtk.c (create_item_factory): unref the item factory after
5824 window's destruction.
5826 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
5827 count on the menu shell around the menu item's activation, since the
5828 signal emission may cause menu shell destruction.
5830 * gtk/gtkitemfactory.c:
5831 the previous code leaked one accel group per menu. we use
5832 gtk_menu_get_uline_accel_group() now to fix that, and with that
5833 also create the underline accelerator group of the menus only if
5834 required (i.e. an underline accelerator has been specified).
5835 (gtk_item_factory_construct):
5836 (gtk_item_factory_create_item): removed code that would create an
5837 extra accel group for the menu (and leak references).
5838 (gtk_item_factory_create_item): adapted the underline accelerator
5839 installation code to properly feature gtk_menu_get_uline_accel_group().
5841 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
5842 menu->accel_group, this may return NULL if the accelerator group
5843 hasn't been set yet.
5844 added gtk_menu_get_uline_accel_group() to retrive the underline
5845 accelerator group of the menu, this will be created on demand
5846 and proper care is taken about its reference count.
5848 * gtk/gtkitemfactory.h:
5849 * gtk/gtkitemfactory.c:
5850 dumped the approach of keeping a widgets by action list on the
5851 factory since the factory<->widget destroy negotiation didn't work
5852 and would be hard to get going at all. instead we keep a list of
5853 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
5854 persistant throughout a program's life time).
5855 also, i removed the static const gchar *key_* variables, and made
5856 them inline strings (they weren't actually used anyways).
5857 (gtk_item_factory_add_item): update ifactory->items.
5858 (gtk_item_factory_destroy): destroy ifactory->items (and remove
5859 the item factory pointer from the remaining ifactory widgets).
5860 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
5861 list to find the widget.
5862 (gtk_item_factory_get_item): new function that works around
5863 gtk_item_factory_get_widget() limitations, this function will only
5864 return menu items, even for <Branch> entries.
5866 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
5868 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
5869 font hash table, if we have a GdkFontPrivate entry for this font
5870 already, simply increment its reference count, provided by Olaf Dietsche
5871 <olaf.dietsche+list.gtk@netcologne.de>.
5873 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
5874 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
5876 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
5878 * gtk/gtkcontainer.c:
5879 (gtk_container_add_with_args):
5880 (gtk_container_addv):
5881 (gtk_container_add): before adding a child to a conatiner, make sure
5882 it is (default) constructed, this is neccessary because under certain
5883 circumstances the child will get relized and mapped immediatedly, in
5884 which case it has to be constructed already.
5886 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
5888 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
5889 values > 1 as TRUE also.
5891 1999-03-16 Tor Lillqvist <tml@iki.fi>
5893 * README.win32: New file.
5895 * configure.in: Check for lstat.
5897 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
5900 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
5902 * gtk/gtk.def: Removed CRs.
5904 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
5907 * gdk/win32/makefile.msc: Correct upwards relative paths.
5909 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
5911 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
5912 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
5913 it was connecting a void function to expose_event and the int
5914 returning function to the draw signal
5916 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
5919 Use correct path to libgmodule.la when ref'ing uninstalled copy
5920 of glib. (Already in stable branch, Bug #417)
5922 1999-03-15 Tor Lillqvist <tml@iki.fi>
5924 Win32 merge and general portability stuff:
5926 * acconfig.h,configure.in: Check for <sys/time.h>.
5928 * gdk/win32: New directory (actually, been there for a while).
5930 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
5931 NATIVE_WIN32, and use these. Always case fold on Win32. No
5932 backslashed escapes on native Win32.
5934 * gtk/{gtk.def,makefile.msc}: New files.
5936 * gtk/Makefile.am: Add above new files.
5938 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
5939 instead of <strings.h>.
5941 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
5942 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
5943 <unistd.h> appropriately.
5945 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
5946 Use ABS() (from <glib.h>) instead of abs().
5948 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
5949 of gtk (and thus glib) headers, so that WIN32 will be
5950 defined. With MS C, include <direct.h> for mkdir prototype.
5952 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
5953 some casts, needed by MS C.
5955 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
5958 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
5959 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
5960 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
5962 * gtk/gtkmain.h: Mark variables for export/import on Win32.
5964 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
5965 the event is not a hint, or its window is not the slider. Needed
5968 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
5969 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
5970 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
5971 a subdirectory of the Windows directory as gtk system
5972 configuration directory.
5974 * gtk/gtkselection.c: No chunks on Win32.
5976 * gtk/gtksocket.c: Not implemented on Win32.
5978 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
5980 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
5982 * gtk/maketypes.awk: Declare variables with a macro that expands to
5983 necessary export/import magic in the case of Win32.
5985 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
5987 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
5989 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
5990 since those were meant only for gdki18n.h.
5991 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
5993 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
5995 1999-03-13 Tor Lillqvist <tml@iki.fi>
5997 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
5998 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
6000 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
6001 installed) to CFLAGS.
6003 * gdk/Makefile.am: Add rules for gdkconfig.h.
6005 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
6008 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
6009 gdkx.h anyway when compiling for X11.
6010 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
6011 general): Merge in Win32 version.
6013 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
6014 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
6015 expansion (if we don't have HAVE_PWD_H), allow for drive
6016 letters. UNC paths (\\server\share\...) are not handled yet. Also,
6017 included code from Craig Setera's port to Win32 (the one that uses
6018 X11, and the cygwin dll), even if it probably will be abandoned.
6020 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
6021 the user entered one herself. This way one can complete *.h and
6022 don't get matches on any .help files, for instance.
6024 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
6026 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
6027 font hash table, if we have a GdkFontPrivate entry for this font
6028 already, simply increment its reference count, provided by Olaf Dietsche
6029 <olaf.dietsche+list.gtk@netcologne.de>.
6031 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
6032 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
6034 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
6036 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
6037 the number of calls to gdk_draw_point() (and thus to X) by
6038 clipping the points by hand.
6040 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
6042 (gtk_handle_box_paint): Only paint the handle if the expose area
6045 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
6047 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
6049 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
6051 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
6052 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
6054 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
6056 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
6057 textmode (O_TEXT) for OS/2 version.
6059 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
6061 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
6062 GtkSpinButton, "input" and "output", to make the output more flexible.
6063 The user has to provide a mapping between adjustment->value and the
6064 output string (and vice versa, if the spin button is editable).
6065 See testgtk for examples.
6067 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
6069 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
6072 * configure.in: set gtk+ version to 1.3.0.