]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-10
gdk/gdkcolor.c (gdk_colormap_new) Fix memory leak: colormap->colors was
[~andy/gtk] / ChangeLog.pre-2-10
1 1999-09-14  Tor Lillqvist  <tml@iki.fi>
2
3         * gdk/gdkcolor.c (gdk_colormap_new)
4         * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
5         colormap->colors was allocated twice.
6
7         * gdk/win32/gdk.c: Remove some unused stuff.
8
9         * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
10         colormap.
11
12         * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
13         * gtk/gtklabel.h (gtk_label_get_type)
14         * gtk/gtktipsquery.c (gtk_tips_query_get_type)
15         * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
16         in a couple of places, not guint.
17
18 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
19
20         * configure.in,po/et.po: added Estonian language file
21
22 Wed Sep  1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
23
24         * configure.in,po/da.po: added Danish file
25
26 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
27
28         * docs/gtkfaq.sgml: Minor FAQ Update
29
30 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
31
32         * docs/gtkfaq.sgml: FAQ update
33
34 1999-08-27  Tor Lillqvist  <tml@iki.fi>
35
36         Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
37         way to get window contents continually refreshed while resizing. I
38         didn't like the effects myself, so it's not on by default.
39
40         * gdk/win32/gdkprivate.h: New flag variable
41         gdk_event_func_from_window_proc, FALSE by default.
42
43         * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
44         environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
45         are passed --gdk-event-func-from-window-proc.
46
47         * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
48         and we have am event_func, call it instead of enqueing the event.
49
50 1999-08-23  Tor Lillqvist  <tml@iki.fi>
51
52         * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
53         Kelley: Set expose_count in GdkEventExposes correctly.
54
55         * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
56         MULTIPLE_WINDOW_CLASSES).
57
58         * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
59         for bug in NT, apparently NT *does* draw the end pixel, too, in
60         LineTo with a one-pixel pen, so we don't have to do it ourselves.
61
62 1999-08-21  Tor Lillqvist  <tml@iki.fi>
63
64         Improvements by Hans Breuer: 
65
66         * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
67
68         * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
69         CS_?REDRAW flags as they cause lots of (late) redraws when "show
70         window contents while dragging" is turned on. Allocate at least
71         one unique class for every GdkWindowType. If support for single
72         window-specific icons is ever needed (eg. Dialog specific), every
73         such window should get its own class.
74
75 1999-08-19  Tor Lillqvist  <tml@iki.fi>
76
77         * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
78         error that caused crashes.
79
80 1999-08-17  Tor Lillqvist  <tml@iki.fi>
81
82         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
83         window, use ScrollWindowEx, and call UpdateWindow. This prevents
84         bugs when for instance part of the window was outside the
85         display. Thanks to Philippe Colantoni for finding and fixing this.
86
87 1999-08-16  Tor Lillqvist  <tml@iki.fi>
88
89         * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
90         endpoint calculations which were totally wrong. (A little RTFMing
91         helps a lot ;-)
92
93         * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
94         from a separate directory, not from gettext, because of licensing
95         issues (we want to use the LGPL version).
96
97         * README.win32: Mention the intl from glibc vs from gettext issue.
98
99 1999-08-13  Tor Lillqvist  <tml@iki.fi>
100
101         * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
102         in the key event handling: Now AltGr chars work again. Also,
103         now Alt-digits are passed up as well as Control-digits.
104         Pass keypad plus and minus as normal plus and minus.
105
106 Wed Aug 11 13:38:26 BST 1999 Tony Gale  <gale@gtk.org>
107
108         * docs/gtkfaq.sgml: FAQ Update
109
110 1999-07-25  Tor Lillqvist  <tml@iki.fi>
111
112         * README.win32
113         * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
114         the Wintab SDK.
115
116         * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
117         OK, but getting closer. Guard against bogus tilt data from Wacom
118         ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
119         enable easier building without Wintab.
120
121         * gdk/win32/gdkinput.h
122         * gdk/win32/gdkevents.c 
123         * gdk/win32/gdkwindow.c: Minor changes related related to above.
124         
125         * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
126         code. As we have just one visual on Win32, no sense to have it in a
127         table, and no need for the hash table.
128
129         * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
130         better on white background.
131
132 1999-07-21  Tor Lillqvist  <tml@iki.fi>
133
134         * README.win32: Update gcc build instructions. Mention gettext is
135         GPL.
136
137         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
138         supported cursor size with GetSystemMetrics.
139
140         * gdk/win32/gdkfont.c
141         * gtk/gtkfontsel.c: Guard against some font weight and charset
142         symbols being undefined (in mingw32 headers).
143
144         * gdk/win32/makefile.cygwin
145         * gtk/makefile.cygwin
146         * gtk/gtkthemes.c: No longer need to have differently named
147         gcc-built DLLs when using gcc-2.95 and -fnative-struct.
148
149 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
150
151         * docs/gtkfaq.sgml: Long awaited FAQ update.
152
153 1999-07-15  Tor Lillqvist  <tml@iki.fi>
154
155         * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
156         it. Obscure bit manipulation needed.
157
158         * gdk/win32/gdkevents.c: Logging.
159         
160         * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
161         style (file name include compiler name) for theme engines.
162
163 1999-07-13  Tor Lillqvist  <tml@iki.fi>
164
165         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
166
167         * gdk/win32/gdkevents.c: Fix long-standing bug in key
168         events. The key.string wasn't zero-terminated, still we strdup'ed
169         it in gdk_event_copy(). Synthesize crossing events for button
170         events before possible propagation.
171
172         * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
173
174         * gdk/win32/makefile.cygwin
175         * gtk/makefile.cygwin: Use new DLL naming style for the
176         GCC-compiled ones.
177
178         * gdk/win32/makefile.msc
179         * gtk/makefile.msc: Cosmetics mostly.
180
181         * gtk/gtk.def: Add missing entry points.
182
183         * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
184
185 1999-07-09  Tor Lillqvist  <tml@iki.fi>
186
187         * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
188         or height is zero. Don't print a warning if Pie or Arc fails, they
189         always fail (?) for very narrow ellipses.
190
191         * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
192         the part or the destination window corresponding to source area
193         outside of the source drawable's boundary.
194
195         * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
196         anything if less than two points.
197
198         * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
199         return NULL. Gtk cut-and-paste inside a single program works
200         better this way. (It always gets the clipboard contents from
201         Windows, not from its own copy, which is cleared anyway. I can't
202         say I fully understand what happens... Emulating the X selection
203         and property stuff is a bit of a mess.)
204
205         * gdk/win32/gdkevents.c
206         * gdk/win32/gdkproperty.c: A bit more verbose logging.
207
208         * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
209         that never got deleted). Revamp gdk_region_shrink.
210
211         * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
212         after use.
213
214         * gtk/gtk.def: Add some missing entry points.
215
216         * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
217         component.
218
219 1999-07-04  Tor Lillqvist  <tml@iki.fi>
220
221         * gdk/win32/gdkevents.c (gdk_event_translate): Handle
222         Control-digits specially.
223
224 1999-07-03  Tor Lillqvist  <tml@iki.fi>
225
226         * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
227
228 1999-06-28  Tor Lillqvist  <tml@iki.fi>
229
230         * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
231         bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
232         finding this.)
233
234 1999-06-01  Jose H Mercado  <jmercado@mit.edu>
235
236         * gtk+.spec.in: Corrected some typos in files section.
237         
238 1999-06-15  Tor Lillqvist  <tml@iki.fi>
239
240         * README.win32: Mention using GNU gettext.
241         * config.h.win32: Enable NLS stuff.
242         * gtk/makefile.msc: Use GNU gettext.
243         * gdk/win32/gdkdnd.c: Minor header reorg.
244         * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
245         cosmetics.
246         * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
247         * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
248
249 Wed Jun  2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
250
251         * acinclude.m4
252         * config.guess
253         * config.status
254         * ltconfig
255         * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
256
257 1999-05-30  Tor Lillqvist  <tml@iki.fi>
258
259         * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
260         SafeAdjustWindowRectEx. Don't override all calls to
261         AdjustWindowRectEx by it, but use it only in two places: When
262         creating a new top-level window and when moving a top-level
263         window.
264
265         Use screen coordinate rectangle, not client rectangle, in
266         gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
267         when we try to place a window so that the decoration (mainly,
268         title bar) isn't visible.
269
270         These changes fix the bug that showed up for instance as the
271         GIMP's saved top-level windows moving right and down (by an amount
272         equal to the window decoration) for each session. This bug showed
273         up also in testgtk's "Saved Position".
274
275         gdk_window_resize also redone a bit.
276
277 1999-05-25  Tor Lillqvist  <tml@iki.fi>
278
279         * gtk/testgtkrc: Add (commented out) Windows-style theme
280         include line.
281
282         * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
283
284 1999-05-18  Tor Lillqvist  <tml@iki.fi>
285
286         * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
287         gdkx.h to a gdk subdirectory, so that applications can include
288         these with <gdk/*.h> without trouble.
289
290         * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
291         (gdk_image_destroy): Plug resource leak, some GdkImages didn't
292         have their bitmap destroyed.
293
294         * gdk/win32/gdk.def: Add gdk_root_parent.
295
296 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
297
298         * configure.in
299           gtk-config.in
300           ltconfig
301           ltmain.sh     
302           gtk/Makefile.am: changes to compile nicely (with xlib) 
303           on BeOS
304
305 Sat May  1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
306
307         * acinclude.m4
308         * config.guess
309         * config.sub
310         * ltconfig
311         * ltmain.sh: upgrade to libtool 1.3
312
313 Fri Apr 30 13:38:16 1999  Lars Hamann  <lars@gtk.org>
314
315         * gtk/gtkclist.c:
316         * gtk/gtkctree.c: merges from gtk-1-2
317
318 1999-04-25  Tor Lillqvist  <tml@iki.fi>
319
320         Support added for building using a GNU toolchain on Win32,
321         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
322
323         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
324         * config.h.win32: Changes for gcc.
325         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
326         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
327         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
328         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
329         Protect shl stuff unavaiilable with mingw32 headers.
330         * gdk/win32/gdkevents.c: Fix typo.
331         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
332         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
333         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
334         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
335         the mingw32 headers.
336         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
337         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
338         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
339         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
340         Test for NATIVE_WIN32, not _MSC_VER.
341         * gtk/gtkmain.c: No use warning about developer version on Win32,
342         there aren't any non-developer versions anyhow.
343         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
344         * gtk/makefile.msc: Use pthread from another directory. Minor other
345         changes. 
346
347 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
348
349         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
350           default filter from the list
351
352 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
353
354         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
355          when gtk_widget_grab_default() is called for a widget that
356          is not within a GtkWindow.
357
358 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
359
360         * docs/gtk_tut.sgml, examples/clist.c: use a
361           scrolled window in the clist example. Minor
362           tutorial fixes.
363
364 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
365
366         * docs/gtk_tut.sgml: Style check from David King
367           <dking@youvegotmail.net>
368
369 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
370
371         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
372         compile with unknown value of GDK_WINDOWING
373
374 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
375
376         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
377         after the rule is fired.
378         (install-exec-local): Install gdkconfig.h only if the contents are
379         different from the currently installed gdkconfig.h.
380
381 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
382
383         * gdk/Makefile.am (configexecincludedir): Rename from 
384         configincludedir so that gdkconfig.h will be installed 
385         as part of `make install-exec'. 
386
387 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
388
389         * acinclude.m4
390         * config.guess
391         * config.sub
392         * ltconfig
393         * ltmain.sh: upgrade to libtool 1.2f
394
395         * autogen.sh: libtool is not required to autogen gtk+
396
397         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
398         needed)
399
400 1999-03-18  Tor Lillqvist  <tml@iki.fi>
401
402         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
403         declaring gdk variables exported/imported from the DLL. New image
404         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
405         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
406         GDK_DRAG_PROTO_OLE2.
407
408         * gdk/gdk.h: Merge in Win32 version: Two new functions,
409         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
410         declared only for the Win32 version, but could be in the X11
411         version as well. (Needed for a Xlib-less gdk_imlib.)
412         gdk_color_hash should have only one parameter. Declare
413         gdk_threads_mutex with GDKVAR.
414         
415         * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
416         just one parameter.
417
418         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
419         per pixel, not bits.
420
421         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
422         Fetch bpp (which means bits-per-pixel here) from another place on
423         Win32. Accept also depth==32 (which we might get on Win32) with
424         bpp==32.
425
426         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
427         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
428         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
429         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
430         in the backend-dependent directory, not in the common gdk
431         directory.
432
433         * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
434         headers.
435
436 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
437
438         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
439         want to use the Gtk+ devel version (which is true, and yes - even i am
440         currently working with the 1.2.x branch). so everyone reading this, you
441         probably want to issue
442         cvs checkout -r glib-1-2 glib
443         and
444         cvs checkout -r gtk-1-2 gtk+
445         as your next two comands.
446
447 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
448
449         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
450         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
451
452         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
453         file. strongly deprecated the GTK_HAVE_* macros, we provide
454         GTK_CHECK_VERSION() for people that need to check for certain
455         Gtk+ versions.
456
457         * gtk/gtkcompat.h: removed this from CVS.
458         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
459         idea right from the start, it just didn't seem like that back then.
460
461 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
462
463         * merges from gtk-1-2:
464
465 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
466
467         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
468         item factory class has been created.
469         (gtk_item_factory_parse_rc): likewise.
470
471         * gtk/gtkmenu.c:
472         keep proper references for old_active_menu_item.
473         (gtk_menu_reparent): unset the usize of the new parent,
474         so the menu can sanely be size requested and we don't get nasty screen
475         artefacts upon next reparentation.
476         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
477         enter notify. only synthesize enter notifies if the pointer really is
478         inside the event window.
479         (gtk_menu_popdown): use gtk_menu_shell_deselect().
480         (gtk_menu_popup): move the background setting stuff into
481         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
482
483         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
484         gtk_menu_shell_select_item() to select the new item.
485         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
486         do the right thing for deselection as well.
487
488 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
489
490         * gtk/gtkwidget.[hc]:
491         (gtk_widget_accelerators_locked): return whether a widget's accelerators
492         are locked.
493
494         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
495         existing accelerators if the widget's accelerators are locked.
496
497 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
498
499         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
500
501         * gtk/gtkmenu.c: truely forward key press and key release events to
502         the menu widget from the toplevel or tearoff window. we can't simply
503         connect to that, we need to stop further processing of the events as
504         well.
505
506 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
507
508         * gtk/gtkmenu.c:
509         (gtk_menu_key_press): pass event->keyval, event->state to
510         gtk_accelerator_valid, instead of event->keyval twice.
511         refuse to install single letter accelerators for menus that use
512         single letter shortcuts.
513
514         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
515         gtk_menu_ensure_uline_accel_group().
516
517         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
518         which will always return an uline accel group, made
519         gtk_menu_get_uline_accel_group() return NULL if the group isn't
520         yet created.
521
522 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
523
524         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
525
526         * gtk/gtkclist.c (gtk_clist_column_title_passive):
527         Leave button sensitive, trap  button_press, button_release,
528         motion_notify, enter_notify and leave_notify events instead.
529         (gtk_clist_column_title_active): disconnect event handler.
530         (gtk_clist_drag_data_get): fixed memory leak. Reported by
531         Guillaume Laurent <glaurent@worldnet.fr>
532
533 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
534
535         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
536         width/height mixups.
537
538         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
539         if needed.
540
541 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
542
543         * gtk/testgtk.c (create_item_factory): unref the item factory after
544         window's destruction.
545
546         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
547         count on the menu shell around the menu item's activation, since the
548         signal emission may cause menu shell destruction.
549
550         * gtk/gtkitemfactory.c:
551         the previous code leaked one accel group per menu. we use
552         gtk_menu_get_uline_accel_group() now to fix that, and with that
553         also create the underline accelerator group of the menus only if
554         required (i.e. an underline accelerator has been specified).
555         (gtk_item_factory_construct):
556         (gtk_item_factory_create_item): removed code that would create an
557         extra accel group for the menu (and leak references).
558         (gtk_item_factory_create_item): adapted the underline accelerator
559         installation code to properly feature gtk_menu_get_uline_accel_group().
560
561         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
562         menu->accel_group, this may return NULL if the accelerator group
563         hasn't been set yet.
564         added gtk_menu_get_uline_accel_group() to retrive the underline
565         accelerator group of the menu, this will be created on demand
566         and proper care is taken about its reference count.
567
568         * gtk/gtkitemfactory.h:
569         * gtk/gtkitemfactory.c:
570         dumped the approach of keeping a widgets by action list on the
571         factory since the factory<->widget destroy negotiation didn't work
572         and would be hard to get going at all. instead we keep a list of
573         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
574         persistant throughout a program's life time).
575         also, i removed the static const gchar *key_* variables, and made
576         them inline strings (they weren't actually used anyways).
577         (gtk_item_factory_add_item): update ifactory->items.
578         (gtk_item_factory_destroy): destroy ifactory->items (and remove
579         the item factory pointer from the remaining ifactory widgets).
580         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
581         list to find the widget.
582         (gtk_item_factory_get_item): new function that works around
583         gtk_item_factory_get_widget() limitations, this function will only
584         return menu items, even for <Branch> entries.
585
586 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
587
588         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
589         font hash table, if we have a GdkFontPrivate entry for this font
590         already, simply increment its reference count, provided by Olaf Dietsche
591         <olaf.dietsche+list.gtk@netcologne.de>.
592
593         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
594         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
595
596 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
597
598         * gtk/gtkcontainer.c:
599         (gtk_container_add_with_args):
600         (gtk_container_addv):
601         (gtk_container_add): before adding a child to a conatiner, make sure
602         it is (default) constructed, this is neccessary because under certain
603         circumstances the child will get relized and mapped immediatedly, in
604         which case it has to be constructed already.
605
606 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
607
608         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
609         values > 1 as TRUE also.
610
611 1999-03-16  Tor Lillqvist  <tml@iki.fi>
612
613         * README.win32: New file.
614                 
615         * configure.in: Check for lstat.
616
617         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
618         completeness.
619
620         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
621
622         * gtk/gtk.def: Removed CRs.
623
624         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
625         ..\gdk\win32).
626
627         * gdk/win32/makefile.msc: Correct upwards relative paths.
628         
629 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
630
631         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
632           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
633           it was connecting a void function to expose_event and the int
634           returning function to the draw signal
635
636 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
637
638         * configure.in:
639         Use correct path to libgmodule.la when ref'ing uninstalled copy
640         of glib.  (Already in stable branch, Bug #417)
641
642 1999-03-15  Tor Lillqvist  <tml@iki.fi>
643
644         Win32 merge and general portability stuff:
645                 
646         * acconfig.h,configure.in: Check for <sys/time.h>.
647
648         * gdk/win32: New directory (actually, been there for a while).
649         
650         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
651         NATIVE_WIN32, and use these. Always case fold on Win32. No
652         backslashed escapes on native Win32.
653
654         * gtk/{gtk.def,makefile.msc}: New files.
655
656         * gtk/Makefile.am: Add above new files.
657         
658         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
659         instead of <strings.h>.
660
661         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
662         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
663         <unistd.h> appropriately.
664
665         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
666         Use ABS() (from <glib.h>) instead of abs().
667         
668         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
669         of gtk (and thus glib) headers, so that WIN32 will be
670         defined. With MS C, include <direct.h> for mkdir prototype.
671
672         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
673         some casts, needed by MS C.
674
675         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
676         implemented).
677
678         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
679         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
680         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
681
682         * gtk/gtkmain.h: Mark variables for export/import on Win32.
683                 
684         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
685         the event is not a hint, or its window is not the slider. Needed
686         on Win32, at least.
687
688         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
689         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
690         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
691         a subdirectory of the Windows directory as gtk system
692         configuration directory.
693
694         * gtk/gtkselection.c: No chunks on Win32.
695
696         * gtk/gtksocket.c: Not implemented on Win32.
697
698         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
699
700         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
701
702         * gtk/maketypes.awk: Declare variables with a macro that expands to
703         necessary export/import magic in the case of Win32.
704                 
705         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
706
707 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
708
709         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
710         since those were meant only for gdki18n.h.  
711         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
712         for widechar tests.
713         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
714
715 1999-03-13  Tor Lillqvist  <tml@iki.fi>
716
717         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
718         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
719
720         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
721         installed) to CFLAGS.
722
723         * gdk/Makefile.am: Add rules for gdkconfig.h.
724
725         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
726         APIs.
727
728         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
729         gdkx.h anyway when compiling for X11.
730         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
731         general): Merge in Win32 version.
732         
733         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
734         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
735         expansion (if we don't have HAVE_PWD_H), allow for drive
736         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
737         included code from Craig Setera's port to Win32 (the one that uses
738         X11, and the cygwin dll), even if it probably will be abandoned.
739
740         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
741         the user entered one herself.  This way one can complete *.h and
742         don't get matches on any .help files, for instance.
743         
744 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
745
746         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
747         font hash table, if we have a GdkFontPrivate entry for this font
748         already, simply increment its reference count, provided by Olaf Dietsche
749         <olaf.dietsche+list.gtk@netcologne.de>.
750
751         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
752         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
753
754 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
755
756         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
757         the number of calls to gdk_draw_point() (and thus to X) by
758         clipping the points by hand.
759
760         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
761         the clip parameter.
762         (gtk_handle_box_paint): Only paint the handle if the expose area
763         intersects it.
764
765 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
766
767         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
768
769 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
770
771         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
772         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
773
774 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
775
776         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
777          textmode (O_TEXT) for OS/2 version.
778
779 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
780
781         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
782         GtkSpinButton, "input" and "output", to make the output more flexible.
783         The user has to provide a mapping between adjustment->value and the
784         output string (and vice versa, if the spin button is editable). 
785         See testgtk for examples.
786
787 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
788
789         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
790         new one.
791         
792         * configure.in: set gtk+ version to 1.3.0.