1 1999-10-05 Tor Lillqvist <tml@iki.fi>
3 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
5 * gdk/win32/gdkcompat.c: New file, actually provide an
6 implementation for the deprecated functions. (Just temporarily.)
8 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
10 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
12 * gdk/win32/gdk.def gtk/gtk.def: Updates.
14 1999-10-05 Kjartan Maraas <kmaraas@online.no>
16 * configure.in: Added "uk" to ALL_LINGUAS.
18 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
20 * configure.in: correct checking for BeOS check
25 * gtk/gtkitemfactory.c
27 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
29 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
31 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
32 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
33 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
36 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
38 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
39 Fix a reference to window_private->destroyed.
41 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
42 (ugly) setting of an internal GdkWindow member to use
43 a _slightly_ cleaner macro.
45 * gdk/gdkprivate.h: Split GdkWindowPrivate into
46 GdkDrawablePrivate and GdkWindowPrivate.
47 Add extra macros for accessing GDK_DRAWABLE_ components.
49 * *.[ch]: Massive adjustments for the above, use the
50 new macros in a lot of places.
52 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
54 * gdk/gdktypes.h: Make GdkDrawable the base type,
57 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
59 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
61 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
63 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
65 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
67 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
68 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
70 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
72 * docs/gtk-config.1: Now autogenerated.
73 * docs/Changes-1.4.txt: started
75 1999-10-03 Tor Lillqvist <tml@iki.fi>
77 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
80 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
81 Owen did to the X11 backend.
83 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
84 ScrollWindowEx when blitting inside a window, it can't be correct
87 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
88 WM_GETMINMAXINFO is easier.
90 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
91 depth equal to the bitspixel value, not the visual's depth.
93 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
94 to 24 even if the bitspixel value is 32.
96 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
97 need to check for depth==32 when bpp==32, depth will always be 24.
99 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
101 * docs/Changes-1.4.txt: Started
103 * gtk/Makefile.am (gdk_headers): Include all the new headers.
105 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
107 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
110 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
111 header to gdkinputprivate.h.
113 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
114 unused since before 1.2.
116 1999-09-30 Tor Lillqvist <tml@iki.fi>
118 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
119 expand possible hex escapes in the font family (put there by
120 logfont_to_xlfd if the font name isn't a legal XLFD font family,
121 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
122 On Win32, add hex escapes here, too.
124 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
126 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
127 to #ifdef GDK_WINDOWING_X11.
129 [ Merges from gtk-1-2 ]
131 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
133 * configure.in: fixed "GNU Make" check to pass with new make version
136 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
138 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
139 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
140 AM_PATH_GTK() macros don't get confused by the -pre1.
142 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
144 * configure.in (REBUILD): Change check for perl5
145 to check explicitely for v >= 5.002. (5.001
146 does not work with our scripts.)
148 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
150 * configure.in: evaluate $PERL for the perl version check. added
151 --disable-rebuilds to give the user an option to completely disable
152 any source autogeneration rules.
154 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
156 * configure.in: evaluate $ac_make when checking for GNU Make.
158 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
160 * docs/Makefile.am: added generation.txt.
162 * Makefile.am: require automake 1.4, build README from README.in and
163 INSTALL from INSTALL.in in dist-hook.
166 * INSTALL.in: new files to autogenerate README and INSTALL from.
168 * configure.in: figure whether we have GNU Make
170 * docs/generation.txt: minor additions/corrections.
172 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
174 * docs/gtkfaq.sgml: FAQ Update
176 July 30, 1999 Elliot Lee <sopwith@redhat.com>
178 * configure.in: Fix autoconf warnings about cross compilation by
179 trying to provide sane defaults for AC_TRY_RUN.
181 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
184 * ltmain.sh: upgrade to libtool 1.3.3
186 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
188 * INSTALL: Indicate that the --with-glib= configure
189 time flag is unsupported.
191 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
193 * docs/generation.txt: Added a file that gives
194 documenation about the autogeneration process for
195 various autogenerated files.
197 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
199 * configure.in (LIBS): Look for libgmodule in the
202 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
204 * docs/gtk_tut.sgml: Removed references to
205 code examples in my directory on gtk.org as
206 they should all be in the tutorial now.
208 * docs/gtk_tut.sgml: Added sources for dial-test
209 and scribble-xinput programs that were previously
212 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
214 * TODO: Added entry about menu keyboard navigation, removed
217 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
219 * acinclude.m4: Standardize on func_dgettext
220 not func_gettext, so that the checks for dgettext
221 actually are paid attention to.
223 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
225 * configure.in (LIBS): Add $INTLLIBS into $LIBS
226 directly, rather than repeating the checks for
229 * INSTALL: Added information about gettext and
232 * acinclude.m4 (LIBM): Check for dgettext, not
233 just gettext. This should hopefully fix things wrt
234 systems with old versions of GNU gettext installed.
236 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
238 * configure.in (LIBS): Look for libgmodule in the
241 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
243 * autogen.sh: add --enable-maintainer-mode
245 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
247 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
249 * docs/gtk-config.1.in:
251 configure.in: gtk-config is now generated.
253 * docs/gtk-config.1: Removed, now generated.
255 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
257 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
258 handle CreateNotify itself, still put out a debuging message for
259 --gdk-debug=events. made the ReparentNotify debugging message more
261 wrap xcoords translation for ConfigureEvents into an error trap,
262 a destroy event may already be pending, and in that case, the
263 actuall coordinate values are not at all critical.
265 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
267 * gdk/gdkcc.c: Stop leaking the color_hash all over
268 the place. Simplify and improve the logic.
270 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
272 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
273 for prototypes and function implementations consistent (reported
276 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
278 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
279 send_event set in debugging output.
280 (gdk_compress_exposures): default initialize the event so we don't
281 operate on bogus values (namely send_event).
283 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
285 * gdk/gdkwindow.c: When we receive an unexpected
286 destroy notify on one of our windows, don't just
287 warn about it, also mark our windows as destroyed.
289 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
291 * gdk/gdkfont.c (gdk_font_hash_insert): Add
292 name => font and name => fontset hashes. The
293 name => fontset hash is a _big_ win since we
294 weren't previously caching fontsets at all and loading
295 fontsets is expensive. The name => font hash
296 is less of a win, but it does save us from doing
297 repeated XQueryFont calls on the same font.
299 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
300 list so we can remove font/fontset from hash.
302 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
304 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
305 and slightly confusing test. [ XInternAtom (,,TRUE)
306 will never return None ].
308 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
310 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
311 gdk/gdkwindow.c (gdk_window_set_hints):
313 Don't omit setting the properties if flags == 0 -
314 there may be an existing set of properties there
315 already. (Very old bug. Would it be better to
316 delete the property instead?)
318 * gdk/gdkselection.c (gdk_selection_property_get): Fix
319 spelling error in comment.
321 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
323 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
324 to avoid stomping over gdk_error_warnings.
326 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
327 as (bits_per_pixel + 7) / 8. This gives the same
328 result as before for multiples of 8, but actually
329 a "reasonable" value for 1bit or 4bit displays.
331 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
333 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
336 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
338 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
339 discarding configure events.
341 1999-08-18 Federico Mena Quintero <federico@redhat.com>
343 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
344 refcount is greater than zero.
346 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
348 * gdk/gdkfont.c (gdk_font_unref): Likewise.
350 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
352 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
354 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
356 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
357 that format 32 => sizeof(item) == 4. It really is
360 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
362 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
363 core dump at all on X IO errors, only core dump
364 if --enable-debug for X errors.
366 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
368 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
369 unknown window:" message. disabled ConfigureNotify discarding code,
370 because it led to events being processed out of order.
372 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
374 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
376 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
377 we export this function, supress error warnings and don't reset the
378 error code in the first half of this function.
380 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
381 code (instead of just -1) so gdk_error_trap_pop() reveals something
382 actually informative about the error that happened.
385 don't rely on gdk_error_code being -1 if an error occoured, but just
388 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
390 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
391 pointer *before* invoking the filter function, so we at least don't
392 crash if a filter is removed that is currently executed. window filters
393 *really* need to be made truely reentrant at some point.
395 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
397 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
398 PropertyNotify debug messages.
400 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
402 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
404 * gdk/gdkim.c: Fix cut-and-paste errors for
405 x/y and PreeditAttributes/StatusAttributes.
407 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
409 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
410 G_MAXINT to 2^16 to alleviate overflow problems in
411 various window managers.
413 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
415 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
418 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
420 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
421 Initialize size_hints.x and size_hints.y because kwm
422 brokenly pays attention to them.
423 (Bug #1181 - Lars Heete <hel@admin.de>)
425 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
427 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
428 return value of gdk_list_visuals().
429 (Bug #1193 - Morten Welinder <terra@diku.dk>)
431 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
433 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
434 XSetIMValues to (void *) when comparing to NULL, to workaround
435 the problem of some compilers barfing since older X headers don't
436 have the prototype for it.
438 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
440 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
441 for pseudocolor where colormap->colors was double
444 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
445 color value in the hash table with the pixel filled
446 in so when we do later hash table lookups, the color
449 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
451 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
454 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
456 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
457 pointed out by Morten Welinder <terra@diku.dk>.
459 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
461 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
462 default filter from the list
464 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
466 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
467 default filter from the list
469 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
471 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
473 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
474 g_strdup_printf instead of calcing the length separately
476 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
478 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
479 that we don't do in many other places. (Fixing duplicate
480 #include of config.h)
482 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
483 Otherwise, #ifndef XINPUT_NONE check in the latter
484 doesn't work. (Bug #546)
486 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
488 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
489 "None" case insensitive.
491 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
493 * gdk/gdkselection.c:
494 Add error traps so if the other end of the connection
497 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
499 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
500 dest_xid field into two fields - one for the window
501 to send in messages, one to indicate the last looked
502 up window for caching purposes. This is needed, so
503 that Leave messages get the correct window.
505 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
507 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
508 Fix warning created by people mucking around
509 with the gsource API.
511 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
512 Change mapping between GIOCondition and GdkInputCondition
513 to match the way the Linux kernel does it. This should
514 fix problems where closed pipes were no longer signalling
515 GDK_INPUT_READ on systems with a native poll().
517 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
519 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
520 explicitly for the string "None" - it is in the XPM
521 spec and some servers treat unknown colors in odd ways
522 (like asking the user!)
524 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
526 * gdk/gdkevents.c: made "->" into a "." of previous change so
529 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
531 * gdk/gdkevents.c (gdk_compress_exposures): Set the
532 window field of the event structure before calling
535 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
537 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
538 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
540 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
542 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
543 intermediate text property - prevents major memory
544 leak when gdk_use_mb.
545 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
547 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
549 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
550 gtk-a-higuti-990322-[0-3]
552 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
553 sizeof(wchar_t) != sizeof (GdkWChar)
555 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
556 that was causing -DX_LOCALE not to work.
558 * gtk/gtkrc.c (gtk_rc_init):
559 X_LOCALE will never have LC_MESSAGES defined
561 * gdk/gdk.c (gdk_init_check):
562 Remove --xim-preedit and --xim-status from argv properly.
564 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
565 that the client window is present on the X server
566 before we pass it to the input method.
568 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
570 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
571 if --display is specified on the command line, than
572 the drag window will not be created on that display.
574 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
576 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
577 lookups with only_if_exists == TRUE were inserting
578 bogus values into the atom cache.
580 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
582 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
583 then reset it to NULL.
587 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
588 key for g_hash_table_remove() in both functions, this prevents us
589 from accessing possibly uninitialized portions of a GdkColor structure
590 where we are only interested in its pixel value.
592 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
594 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
595 font hash table, if we have a GdkFontPrivate entry for this font
596 already, simply increment its reference count, provided by Olaf Dietsche
597 <olaf.dietsche+list.gtk@netcologne.de>.
599 1999-09-21 Tor Lillqvist <tml@iki.fi>
601 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
604 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
605 unused variables, leftovers from the X11 version.
607 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
609 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
610 downcase fields on X11.
612 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
614 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
615 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
617 1999-09-17 Tor Lillqvist <tml@iki.fi>
619 * gdk/win32/gdk.def: Add gdk_threads_mutex.
621 * gtk/makefile.msc: Correct path to libintl.
623 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
624 use of gint vs. int, and gint vs. gboolean in headers and
625 definitions. Use GtkType for the *_get_type functions. Note that
626 these changes preserve binary compatibility.
630 * gdk/gdk.h: Fix inconsistencies: gint vs int.
634 * gtk/gtkmenufactory.c
636 * gtk/gtkwidget.c: Fix inconsistencies, also gint
639 * gtk/gtkcolorsel.[ch]
641 * gtk/gtkdrawingarea.[ch]
643 * gtk/gtkhandlebox.[ch]
647 * gtk/gtkpreview.[ch]
650 * gtk/gtkstatusbar.[ch]
651 * gtk/gtktoolbar.[ch]
654 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
657 * gtk/gtkgamma.h: Fix bug, missing () in call of
658 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
660 1999-09-14 Tor Lillqvist <tml@iki.fi>
662 * gdk/gdkcolor.c (gdk_colormap_new)
663 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
664 colormap->colors was allocated twice.
666 * gdk/win32/gdk.c: Remove some unused stuff.
668 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
671 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
672 * gtk/gtklabel.h (gtk_label_get_type)
673 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
674 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
675 in a couple of places, not guint.
677 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
679 * configure.in,po/et.po: added Estonian language file
681 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
683 * configure.in,po/da.po: added Danish file
685 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
687 * docs/gtkfaq.sgml: Minor FAQ Update
689 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
691 * docs/gtkfaq.sgml: FAQ update
693 1999-08-27 Tor Lillqvist <tml@iki.fi>
695 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
696 way to get window contents continually refreshed while resizing. I
697 didn't like the effects myself, so it's not on by default.
699 * gdk/win32/gdkprivate.h: New flag variable
700 gdk_event_func_from_window_proc, FALSE by default.
702 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
703 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
704 are passed --gdk-event-func-from-window-proc.
706 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
707 and we have am event_func, call it instead of enqueing the event.
709 1999-08-23 Tor Lillqvist <tml@iki.fi>
711 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
712 Kelley: Set expose_count in GdkEventExposes correctly.
714 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
715 MULTIPLE_WINDOW_CLASSES).
717 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
718 for bug in NT, apparently NT *does* draw the end pixel, too, in
719 LineTo with a one-pixel pen, so we don't have to do it ourselves.
721 1999-08-21 Tor Lillqvist <tml@iki.fi>
723 Improvements by Hans Breuer:
725 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
727 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
728 CS_?REDRAW flags as they cause lots of (late) redraws when "show
729 window contents while dragging" is turned on. Allocate at least
730 one unique class for every GdkWindowType. If support for single
731 window-specific icons is ever needed (eg. Dialog specific), every
732 such window should get its own class.
734 1999-08-19 Tor Lillqvist <tml@iki.fi>
736 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
737 error that caused crashes.
739 1999-08-17 Tor Lillqvist <tml@iki.fi>
741 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
742 window, use ScrollWindowEx, and call UpdateWindow. This prevents
743 bugs when for instance part of the window was outside the
744 display. Thanks to Philippe Colantoni for finding and fixing this.
746 1999-08-16 Tor Lillqvist <tml@iki.fi>
748 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
749 endpoint calculations which were totally wrong. (A little RTFMing
752 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
753 from a separate directory, not from gettext, because of licensing
754 issues (we want to use the LGPL version).
756 * README.win32: Mention the intl from glibc vs from gettext issue.
758 1999-08-13 Tor Lillqvist <tml@iki.fi>
760 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
761 in the key event handling: Now AltGr chars work again. Also,
762 now Alt-digits are passed up as well as Control-digits.
763 Pass keypad plus and minus as normal plus and minus.
765 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
767 * docs/gtkfaq.sgml: FAQ Update
769 1999-07-25 Tor Lillqvist <tml@iki.fi>
772 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
775 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
776 OK, but getting closer. Guard against bogus tilt data from Wacom
777 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
778 enable easier building without Wintab.
780 * gdk/win32/gdkinput.h
781 * gdk/win32/gdkevents.c
782 * gdk/win32/gdkwindow.c: Minor changes related related to above.
784 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
785 code. As we have just one visual on Win32, no sense to have it in a
786 table, and no need for the hash table.
788 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
789 better on white background.
791 1999-07-21 Tor Lillqvist <tml@iki.fi>
793 * README.win32: Update gcc build instructions. Mention gettext is
796 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
797 supported cursor size with GetSystemMetrics.
799 * gdk/win32/gdkfont.c
800 * gtk/gtkfontsel.c: Guard against some font weight and charset
801 symbols being undefined (in mingw32 headers).
803 * gdk/win32/makefile.cygwin
804 * gtk/makefile.cygwin
805 * gtk/gtkthemes.c: No longer need to have differently named
806 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
808 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
810 * docs/gtkfaq.sgml: Long awaited FAQ update.
812 1999-07-15 Tor Lillqvist <tml@iki.fi>
814 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
815 it. Obscure bit manipulation needed.
817 * gdk/win32/gdkevents.c: Logging.
819 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
820 style (file name include compiler name) for theme engines.
822 1999-07-13 Tor Lillqvist <tml@iki.fi>
824 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
826 * gdk/win32/gdkevents.c: Fix long-standing bug in key
827 events. The key.string wasn't zero-terminated, still we strdup'ed
828 it in gdk_event_copy(). Synthesize crossing events for button
829 events before possible propagation.
831 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
833 * gdk/win32/makefile.cygwin
834 * gtk/makefile.cygwin: Use new DLL naming style for the
837 * gdk/win32/makefile.msc
838 * gtk/makefile.msc: Cosmetics mostly.
840 * gtk/gtk.def: Add missing entry points.
842 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
844 1999-07-09 Tor Lillqvist <tml@iki.fi>
846 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
847 or height is zero. Don't print a warning if Pie or Arc fails, they
848 always fail (?) for very narrow ellipses.
850 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
851 the part or the destination window corresponding to source area
852 outside of the source drawable's boundary.
854 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
855 anything if less than two points.
857 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
858 return NULL. Gtk cut-and-paste inside a single program works
859 better this way. (It always gets the clipboard contents from
860 Windows, not from its own copy, which is cleared anyway. I can't
861 say I fully understand what happens... Emulating the X selection
862 and property stuff is a bit of a mess.)
864 * gdk/win32/gdkevents.c
865 * gdk/win32/gdkproperty.c: A bit more verbose logging.
867 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
868 that never got deleted). Revamp gdk_region_shrink.
870 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
873 * gtk/gtk.def: Add some missing entry points.
875 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
878 1999-07-04 Tor Lillqvist <tml@iki.fi>
880 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
881 Control-digits specially.
883 1999-07-03 Tor Lillqvist <tml@iki.fi>
885 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
887 1999-06-28 Tor Lillqvist <tml@iki.fi>
889 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
890 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
893 1999-06-01 Jose H Mercado <jmercado@mit.edu>
895 * gtk+.spec.in: Corrected some typos in files section.
897 1999-06-15 Tor Lillqvist <tml@iki.fi>
899 * README.win32: Mention using GNU gettext.
900 * config.h.win32: Enable NLS stuff.
901 * gtk/makefile.msc: Use GNU gettext.
902 * gdk/win32/gdkdnd.c: Minor header reorg.
903 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
905 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
906 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
908 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
914 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
916 1999-05-30 Tor Lillqvist <tml@iki.fi>
918 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
919 SafeAdjustWindowRectEx. Don't override all calls to
920 AdjustWindowRectEx by it, but use it only in two places: When
921 creating a new top-level window and when moving a top-level
924 Use screen coordinate rectangle, not client rectangle, in
925 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
926 when we try to place a window so that the decoration (mainly,
927 title bar) isn't visible.
929 These changes fix the bug that showed up for instance as the
930 GIMP's saved top-level windows moving right and down (by an amount
931 equal to the window decoration) for each session. This bug showed
932 up also in testgtk's "Saved Position".
934 gdk_window_resize also redone a bit.
936 1999-05-25 Tor Lillqvist <tml@iki.fi>
938 * gtk/testgtkrc: Add (commented out) Windows-style theme
941 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
943 1999-05-18 Tor Lillqvist <tml@iki.fi>
945 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
946 gdkx.h to a gdk subdirectory, so that applications can include
947 these with <gdk/*.h> without trouble.
949 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
950 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
951 have their bitmap destroyed.
953 * gdk/win32/gdk.def: Add gdk_root_parent.
955 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
961 gtk/Makefile.am: changes to compile nicely (with xlib)
964 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
970 * ltmain.sh: upgrade to libtool 1.3
972 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
975 * gtk/gtkctree.c: merges from gtk-1-2
977 1999-04-25 Tor Lillqvist <tml@iki.fi>
979 Support added for building using a GNU toolchain on Win32,
980 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
982 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
983 * config.h.win32: Changes for gcc.
984 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
985 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
986 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
987 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
988 Protect shl stuff unavaiilable with mingw32 headers.
989 * gdk/win32/gdkevents.c: Fix typo.
990 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
991 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
992 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
993 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
995 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
996 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
997 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
998 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
999 Test for NATIVE_WIN32, not _MSC_VER.
1000 * gtk/gtkmain.c: No use warning about developer version on Win32,
1001 there aren't any non-developer versions anyhow.
1002 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
1003 * gtk/makefile.msc: Use pthread from another directory. Minor other
1006 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
1008 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
1009 default filter from the list
1011 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
1013 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
1014 when gtk_widget_grab_default() is called for a widget that
1015 is not within a GtkWindow.
1017 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
1019 * docs/gtk_tut.sgml, examples/clist.c: use a
1020 scrolled window in the clist example. Minor
1023 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
1025 * docs/gtk_tut.sgml: Style check from David King
1026 <dking@youvegotmail.net>
1028 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
1030 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
1031 compile with unknown value of GDK_WINDOWING
1033 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
1035 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
1036 after the rule is fired.
1037 (install-exec-local): Install gdkconfig.h only if the contents are
1038 different from the currently installed gdkconfig.h.
1040 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
1042 * gdk/Makefile.am (configexecincludedir): Rename from
1043 configincludedir so that gdkconfig.h will be installed
1044 as part of `make install-exec'.
1046 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
1052 * ltmain.sh: upgrade to libtool 1.2f
1054 * autogen.sh: libtool is not required to autogen gtk+
1056 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
1059 1999-03-18 Tor Lillqvist <tml@iki.fi>
1061 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
1062 declaring gdk variables exported/imported from the DLL. New image
1063 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
1064 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
1065 GDK_DRAG_PROTO_OLE2.
1067 * gdk/gdk.h: Merge in Win32 version: Two new functions,
1068 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
1069 declared only for the Win32 version, but could be in the X11
1070 version as well. (Needed for a Xlib-less gdk_imlib.)
1071 gdk_color_hash should have only one parameter. Declare
1072 gdk_threads_mutex with GDKVAR.
1074 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
1077 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
1078 per pixel, not bits.
1080 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
1081 Fetch bpp (which means bits-per-pixel here) from another place on
1082 Win32. Accept also depth==32 (which we might get on Win32) with
1085 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
1086 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
1087 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
1088 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
1089 in the backend-dependent directory, not in the common gdk
1092 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
1095 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
1097 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
1098 want to use the Gtk+ devel version (which is true, and yes - even i am
1099 currently working with the 1.2.x branch). so everyone reading this, you
1100 probably want to issue
1101 cvs checkout -r glib-1-2 glib
1103 cvs checkout -r gtk-1-2 gtk+
1104 as your next two comands.
1106 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
1108 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
1109 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
1111 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
1112 file. strongly deprecated the GTK_HAVE_* macros, we provide
1113 GTK_CHECK_VERSION() for people that need to check for certain
1116 * gtk/gtkcompat.h: removed this from CVS.
1117 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
1118 idea right from the start, it just didn't seem like that back then.
1120 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
1122 * merges from gtk-1-2:
1124 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
1126 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
1127 item factory class has been created.
1128 (gtk_item_factory_parse_rc): likewise.
1131 keep proper references for old_active_menu_item.
1132 (gtk_menu_reparent): unset the usize of the new parent,
1133 so the menu can sanely be size requested and we don't get nasty screen
1134 artefacts upon next reparentation.
1135 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
1136 enter notify. only synthesize enter notifies if the pointer really is
1137 inside the event window.
1138 (gtk_menu_popdown): use gtk_menu_shell_deselect().
1139 (gtk_menu_popup): move the background setting stuff into
1140 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
1142 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
1143 gtk_menu_shell_select_item() to select the new item.
1144 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
1145 do the right thing for deselection as well.
1147 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
1149 * gtk/gtkwidget.[hc]:
1150 (gtk_widget_accelerators_locked): return whether a widget's accelerators
1153 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
1154 existing accelerators if the widget's accelerators are locked.
1156 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
1158 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
1160 * gtk/gtkmenu.c: truely forward key press and key release events to
1161 the menu widget from the toplevel or tearoff window. we can't simply
1162 connect to that, we need to stop further processing of the events as
1165 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
1168 (gtk_menu_key_press): pass event->keyval, event->state to
1169 gtk_accelerator_valid, instead of event->keyval twice.
1170 refuse to install single letter accelerators for menus that use
1171 single letter shortcuts.
1173 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
1174 gtk_menu_ensure_uline_accel_group().
1176 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
1177 which will always return an uline accel group, made
1178 gtk_menu_get_uline_accel_group() return NULL if the group isn't
1181 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
1183 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
1185 * gtk/gtkclist.c (gtk_clist_column_title_passive):
1186 Leave button sensitive, trap button_press, button_release,
1187 motion_notify, enter_notify and leave_notify events instead.
1188 (gtk_clist_column_title_active): disconnect event handler.
1189 (gtk_clist_drag_data_get): fixed memory leak. Reported by
1190 Guillaume Laurent <glaurent@worldnet.fr>
1192 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
1194 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
1195 width/height mixups.
1197 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
1200 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
1202 * gtk/testgtk.c (create_item_factory): unref the item factory after
1203 window's destruction.
1205 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
1206 count on the menu shell around the menu item's activation, since the
1207 signal emission may cause menu shell destruction.
1209 * gtk/gtkitemfactory.c:
1210 the previous code leaked one accel group per menu. we use
1211 gtk_menu_get_uline_accel_group() now to fix that, and with that
1212 also create the underline accelerator group of the menus only if
1213 required (i.e. an underline accelerator has been specified).
1214 (gtk_item_factory_construct):
1215 (gtk_item_factory_create_item): removed code that would create an
1216 extra accel group for the menu (and leak references).
1217 (gtk_item_factory_create_item): adapted the underline accelerator
1218 installation code to properly feature gtk_menu_get_uline_accel_group().
1220 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
1221 menu->accel_group, this may return NULL if the accelerator group
1222 hasn't been set yet.
1223 added gtk_menu_get_uline_accel_group() to retrive the underline
1224 accelerator group of the menu, this will be created on demand
1225 and proper care is taken about its reference count.
1227 * gtk/gtkitemfactory.h:
1228 * gtk/gtkitemfactory.c:
1229 dumped the approach of keeping a widgets by action list on the
1230 factory since the factory<->widget destroy negotiation didn't work
1231 and would be hard to get going at all. instead we keep a list of
1232 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
1233 persistant throughout a program's life time).
1234 also, i removed the static const gchar *key_* variables, and made
1235 them inline strings (they weren't actually used anyways).
1236 (gtk_item_factory_add_item): update ifactory->items.
1237 (gtk_item_factory_destroy): destroy ifactory->items (and remove
1238 the item factory pointer from the remaining ifactory widgets).
1239 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
1240 list to find the widget.
1241 (gtk_item_factory_get_item): new function that works around
1242 gtk_item_factory_get_widget() limitations, this function will only
1243 return menu items, even for <Branch> entries.
1245 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
1247 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
1248 font hash table, if we have a GdkFontPrivate entry for this font
1249 already, simply increment its reference count, provided by Olaf Dietsche
1250 <olaf.dietsche+list.gtk@netcologne.de>.
1252 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
1253 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
1255 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
1257 * gtk/gtkcontainer.c:
1258 (gtk_container_add_with_args):
1259 (gtk_container_addv):
1260 (gtk_container_add): before adding a child to a conatiner, make sure
1261 it is (default) constructed, this is neccessary because under certain
1262 circumstances the child will get relized and mapped immediatedly, in
1263 which case it has to be constructed already.
1265 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
1267 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
1268 values > 1 as TRUE also.
1270 1999-03-16 Tor Lillqvist <tml@iki.fi>
1272 * README.win32: New file.
1274 * configure.in: Check for lstat.
1276 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
1279 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
1281 * gtk/gtk.def: Removed CRs.
1283 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
1286 * gdk/win32/makefile.msc: Correct upwards relative paths.
1288 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
1290 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
1291 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
1292 it was connecting a void function to expose_event and the int
1293 returning function to the draw signal
1295 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
1298 Use correct path to libgmodule.la when ref'ing uninstalled copy
1299 of glib. (Already in stable branch, Bug #417)
1301 1999-03-15 Tor Lillqvist <tml@iki.fi>
1303 Win32 merge and general portability stuff:
1305 * acconfig.h,configure.in: Check for <sys/time.h>.
1307 * gdk/win32: New directory (actually, been there for a while).
1309 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
1310 NATIVE_WIN32, and use these. Always case fold on Win32. No
1311 backslashed escapes on native Win32.
1313 * gtk/{gtk.def,makefile.msc}: New files.
1315 * gtk/Makefile.am: Add above new files.
1317 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
1318 instead of <strings.h>.
1320 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
1321 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
1322 <unistd.h> appropriately.
1324 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
1325 Use ABS() (from <glib.h>) instead of abs().
1327 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
1328 of gtk (and thus glib) headers, so that WIN32 will be
1329 defined. With MS C, include <direct.h> for mkdir prototype.
1331 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
1332 some casts, needed by MS C.
1334 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
1337 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
1338 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
1339 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
1341 * gtk/gtkmain.h: Mark variables for export/import on Win32.
1343 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
1344 the event is not a hint, or its window is not the slider. Needed
1347 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
1348 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
1349 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
1350 a subdirectory of the Windows directory as gtk system
1351 configuration directory.
1353 * gtk/gtkselection.c: No chunks on Win32.
1355 * gtk/gtksocket.c: Not implemented on Win32.
1357 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
1359 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
1361 * gtk/maketypes.awk: Declare variables with a macro that expands to
1362 necessary export/import magic in the case of Win32.
1364 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
1366 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
1368 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
1369 since those were meant only for gdki18n.h.
1370 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
1372 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
1374 1999-03-13 Tor Lillqvist <tml@iki.fi>
1376 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
1377 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
1379 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
1380 installed) to CFLAGS.
1382 * gdk/Makefile.am: Add rules for gdkconfig.h.
1384 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
1387 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
1388 gdkx.h anyway when compiling for X11.
1389 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
1390 general): Merge in Win32 version.
1392 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
1393 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
1394 expansion (if we don't have HAVE_PWD_H), allow for drive
1395 letters. UNC paths (\\server\share\...) are not handled yet. Also,
1396 included code from Craig Setera's port to Win32 (the one that uses
1397 X11, and the cygwin dll), even if it probably will be abandoned.
1399 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
1400 the user entered one herself. This way one can complete *.h and
1401 don't get matches on any .help files, for instance.
1403 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
1405 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
1406 font hash table, if we have a GdkFontPrivate entry for this font
1407 already, simply increment its reference count, provided by Olaf Dietsche
1408 <olaf.dietsche+list.gtk@netcologne.de>.
1410 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
1411 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
1413 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
1415 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
1416 the number of calls to gdk_draw_point() (and thus to X) by
1417 clipping the points by hand.
1419 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
1421 (gtk_handle_box_paint): Only paint the handle if the expose area
1424 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
1426 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
1428 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
1430 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
1431 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
1433 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
1435 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
1436 textmode (O_TEXT) for OS/2 version.
1438 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
1440 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
1441 GtkSpinButton, "input" and "output", to make the output more flexible.
1442 The user has to provide a mapping between adjustment->value and the
1443 output string (and vice versa, if the spin button is editable).
1444 See testgtk for examples.
1446 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
1448 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
1451 * configure.in: set gtk+ version to 1.3.0.