]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-0
Support added for building using a GNU toolchain on Win32,
[~andy/gtk] / ChangeLog.pre-2-0
1 1999-04-25  Tor Lillqvist  <tml@iki.fi>
2
3         Support added for building using a GNU toolchain on Win32,
4         gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
5
6         * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
7         * config.h.win32: Changes for gcc.
8         * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
9         * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
10         * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
11         * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
12         Protect shl stuff unavaiilable with mingw32 headers.
13         * gdk/win32/gdkevents.c: Fix typo.
14         * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
15         * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
16         * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
17         * gdk/win32/gdkprivate.h: Make up for some stuff missing from
18         the mingw32 headers.
19         * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
20         * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
21         definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
22         * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
23         Test for NATIVE_WIN32, not _MSC_VER.
24         * gtk/gtkmain.c: No use warning about developer version on Win32,
25         there aren't any non-developer versions anyhow.
26         * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
27         * gtk/makefile.msc: Use pthread from another directory. Minor other
28         changes. 
29
30 Wed Apr 21 14:20:22 1999  George Lebl  <jirka@5z.com>
31
32         * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
33           default filter from the list
34
35 Mon Mar  8 12:52:53 1999  Owen Taylor  <otaylor@redhat.com>
36
37         * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
38          when gtk_widget_grab_default() is called for a widget that
39          is not within a GtkWindow.
40
41 Sat Apr 10 13:52:54 BST 1999  Tony Gale <gale@gtk.org>
42
43         * docs/gtk_tut.sgml, examples/clist.c: use a
44           scrolled window in the clist example. Minor
45           tutorial fixes.
46
47 Fri Apr  2 09:19:20 BST 1999  Tony Gale <gale@gtk.org>
48
49         * docs/gtk_tut.sgml: Style check from David King
50           <dking@youvegotmail.net>
51
52 1999-03-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
53
54         * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
55         compile with unknown value of GDK_WINDOWING
56
57 1999-03-28  Raja R Harinath  <harinath@cs.umn.edu>
58
59         * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
60         after the rule is fired.
61         (install-exec-local): Install gdkconfig.h only if the contents are
62         different from the currently installed gdkconfig.h.
63
64 1999-03-26  Raja R Harinath  <harinath@cs.umn.edu>
65
66         * gdk/Makefile.am (configexecincludedir): Rename from 
67         configincludedir so that gdkconfig.h will be installed 
68         as part of `make install-exec'. 
69
70 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
71
72         * acinclude.m4
73         * config.guess
74         * config.sub
75         * ltconfig
76         * ltmain.sh: upgrade to libtool 1.2f
77
78         * autogen.sh: libtool is not required to autogen gtk+
79
80         * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
81         needed)
82
83 1999-03-18  Tor Lillqvist  <tml@iki.fi>
84
85         * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
86         declaring gdk variables exported/imported from the DLL. New image
87         type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
88         drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
89         GDK_DRAG_PROTO_OLE2.
90
91         * gdk/gdk.h: Merge in Win32 version: Two new functions,
92         gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
93         declared only for the Win32 version, but could be in the X11
94         version as well. (Needed for a Xlib-less gdk_imlib.)
95         gdk_color_hash should have only one parameter. Declare
96         gdk_threads_mutex with GDKVAR.
97         
98         * gdk/gdkcolor.c (gdk_color_hash): As a hash function should have
99         just one parameter.
100
101         * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
102         per pixel, not bits.
103
104         * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
105         Fetch bpp (which means bits-per-pixel here) from another place on
106         Win32. Accept also depth==32 (which we might get on Win32) with
107         bpp==32.
108
109         * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
110         gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
111         gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
112         Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
113         in the backend-dependent directory, not in the common gdk
114         directory.
115
116         * gtk/testgtk.c: Ditto. Also, don't use ../gdk patchs to gdk
117         headers.
118
119 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
120
121         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
122         want to use the Gtk+ devel version (which is true, and yes - even i am
123         currently working with the 1.2.x branch). so everyone reading this, you
124         probably want to issue
125         cvs checkout -r glib-1-2 glib
126         and
127         cvs checkout -r gtk-1-2 gtk+
128         as your next two comands.
129
130 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
131
132         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
133         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
134
135         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
136         file. strongly deprecated the GTK_HAVE_* macros, we provide
137         GTK_CHECK_VERSION() for people that need to check for certain
138         Gtk+ versions.
139
140         * gtk/gtkcompat.h: removed this from CVS.
141         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
142         idea right from the start, it just didn't seem like that back then.
143
144 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
145
146         * merges from gtk-1-2:
147
148 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
149
150         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
151         item factory class has been created.
152         (gtk_item_factory_parse_rc): likewise.
153
154         * gtk/gtkmenu.c:
155         keep proper references for old_active_menu_item.
156         (gtk_menu_reparent): unset the usize of the new parent,
157         so the menu can sanely be size requested and we don't get nasty screen
158         artefacts upon next reparentation.
159         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
160         enter notify. only synthesize enter notifies if the pointer really is
161         inside the event window.
162         (gtk_menu_popdown): use gtk_menu_shell_deselect().
163         (gtk_menu_popup): move the background setting stuff into
164         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
165
166         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
167         gtk_menu_shell_select_item() to select the new item.
168         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
169         do the right thing for deselection as well.
170
171 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
172
173         * gtk/gtkwidget.[hc]:
174         (gtk_widget_accelerators_locked): return whether a widget's accelerators
175         are locked.
176
177         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
178         existing accelerators if the widget's accelerators are locked.
179
180 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
181
182         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
183
184         * gtk/gtkmenu.c: truely forward key press and key release events to
185         the menu widget from the toplevel or tearoff window. we can't simply
186         connect to that, we need to stop further processing of the events as
187         well.
188
189 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
190
191         * gtk/gtkmenu.c:
192         (gtk_menu_key_press): pass event->keyval, event->state to
193         gtk_accelerator_valid, instead of event->keyval twice.
194         refuse to install single letter accelerators for menus that use
195         single letter shortcuts.
196
197         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
198         gtk_menu_ensure_uline_accel_group().
199
200         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
201         which will always return an uline accel group, made
202         gtk_menu_get_uline_accel_group() return NULL if the group isn't
203         yet created.
204
205 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
206
207         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
208
209         * gtk/gtkclist.c (gtk_clist_column_title_passive):
210         Leave button sensitive, trap  button_press, button_release,
211         motion_notify, enter_notify and leave_notify events instead.
212         (gtk_clist_column_title_active): disconnect event handler.
213         (gtk_clist_drag_data_get): fixed memory leak. Reported by
214         Guillaume Laurent <glaurent@worldnet.fr>
215
216 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
217
218         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
219         width/height mixups.
220
221         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
222         if needed.
223
224 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
225
226         * gtk/testgtk.c (create_item_factory): unref the item factory after
227         window's destruction.
228
229         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
230         count on the menu shell around the menu item's activation, since the
231         signal emission may cause menu shell destruction.
232
233         * gtk/gtkitemfactory.c:
234         the previous code leaked one accel group per menu. we use
235         gtk_menu_get_uline_accel_group() now to fix that, and with that
236         also create the underline accelerator group of the menus only if
237         required (i.e. an underline accelerator has been specified).
238         (gtk_item_factory_construct):
239         (gtk_item_factory_create_item): removed code that would create an
240         extra accel group for the menu (and leak references).
241         (gtk_item_factory_create_item): adapted the underline accelerator
242         installation code to properly feature gtk_menu_get_uline_accel_group().
243
244         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
245         menu->accel_group, this may return NULL if the accelerator group
246         hasn't been set yet.
247         added gtk_menu_get_uline_accel_group() to retrive the underline
248         accelerator group of the menu, this will be created on demand
249         and proper care is taken about its reference count.
250
251         * gtk/gtkitemfactory.h:
252         * gtk/gtkitemfactory.c:
253         dumped the approach of keeping a widgets by action list on the
254         factory since the factory<->widget destroy negotiation didn't work
255         and would be hard to get going at all. instead we keep a list of
256         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
257         persistant throughout a program's life time).
258         also, i removed the static const gchar *key_* variables, and made
259         them inline strings (they weren't actually used anyways).
260         (gtk_item_factory_add_item): update ifactory->items.
261         (gtk_item_factory_destroy): destroy ifactory->items (and remove
262         the item factory pointer from the remaining ifactory widgets).
263         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
264         list to find the widget.
265         (gtk_item_factory_get_item): new function that works around
266         gtk_item_factory_get_widget() limitations, this function will only
267         return menu items, even for <Branch> entries.
268
269 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
270
271         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
272         font hash table, if we have a GdkFontPrivate entry for this font
273         already, simply increment its reference count, provided by Olaf Dietsche
274         <olaf.dietsche+list.gtk@netcologne.de>.
275
276         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
277         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
278
279 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
280
281         * gtk/gtkcontainer.c:
282         (gtk_container_add_with_args):
283         (gtk_container_addv):
284         (gtk_container_add): before adding a child to a conatiner, make sure
285         it is (default) constructed, this is neccessary because under certain
286         circumstances the child will get relized and mapped immediatedly, in
287         which case it has to be constructed already.
288
289 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
290
291         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
292         values > 1 as TRUE also.
293
294 1999-03-16  Tor Lillqvist  <tml@iki.fi>
295
296         * README.win32: New file.
297                 
298         * configure.in: Check for lstat.
299
300         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
301         completeness.
302
303         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
304
305         * gtk/gtk.def: Removed CRs.
306
307         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
308         ..\gdk\win32).
309
310         * gdk/win32/makefile.msc: Correct upwards relative paths.
311         
312 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
313
314         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
315           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
316           it was connecting a void function to expose_event and the int
317           returning function to the draw signal
318
319 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
320
321         * configure.in:
322         Use correct path to libgmodule.la when ref'ing uninstalled copy
323         of glib.  (Already in stable branch, Bug #417)
324
325 1999-03-15  Tor Lillqvist  <tml@iki.fi>
326
327         Win32 merge and general portability stuff:
328                 
329         * acconfig.h,configure.in: Check for <sys/time.h>.
330
331         * gdk/win32: New directory (actually, been there for a while).
332         
333         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
334         NATIVE_WIN32, and use these. Always case fold on Win32. No
335         backslashed escapes on native Win32.
336
337         * gtk/{gtk.def,makefile.msc}: New files.
338
339         * gtk/Makefile.am: Add above new files.
340         
341         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
342         instead of <strings.h>.
343
344         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
345         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
346         <unistd.h> appropriately.
347
348         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
349         Use ABS() (from <glib.h>) instead of abs().
350         
351         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
352         of gtk (and thus glib) headers, so that WIN32 will be
353         defined. With MS C, include <direct.h> for mkdir prototype.
354
355         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
356         some casts, needed by MS C.
357
358         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
359         implemented).
360
361         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
362         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
363         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
364
365         * gtk/gtkmain.h: Mark variables for export/import on Win32.
366                 
367         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
368         the event is not a hint, or its window is not the slider. Needed
369         on Win32, at least.
370
371         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
372         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
373         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
374         a subdirectory of the Windows directory as gtk system
375         configuration directory.
376
377         * gtk/gtkselection.c: No chunks on Win32.
378
379         * gtk/gtksocket.c: Not implemented on Win32.
380
381         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
382
383         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
384
385         * gtk/maketypes.awk: Declare variables with a macro that expands to
386         necessary export/import magic in the case of Win32.
387                 
388         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
389
390 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
391
392         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
393         since those were meant only for gdki18n.h.  
394         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
395         for widechar tests.
396         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
397
398 1999-03-13  Tor Lillqvist  <tml@iki.fi>
399
400         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
401         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
402
403         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
404         installed) to CFLAGS.
405
406         * gdk/Makefile.am: Add rules for gdkconfig.h.
407
408         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
409         APIs.
410
411         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
412         gdkx.h anyway when compiling for X11.
413         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
414         general): Merge in Win32 version.
415         
416         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
417         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
418         expansion (if we don't have HAVE_PWD_H), allow for drive
419         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
420         included code from Craig Setera's port to Win32 (the one that uses
421         X11, and the cygwin dll), even if it probably will be abandoned.
422
423         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
424         the user entered one herself.  This way one can complete *.h and
425         don't get matches on any .help files, for instance.
426         
427 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
428
429         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
430         font hash table, if we have a GdkFontPrivate entry for this font
431         already, simply increment its reference count, provided by Olaf Dietsche
432         <olaf.dietsche+list.gtk@netcologne.de>.
433
434         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
435         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
436
437 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
438
439         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
440         the number of calls to gdk_draw_point() (and thus to X) by
441         clipping the points by hand.
442
443         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
444         the clip parameter.
445         (gtk_handle_box_paint): Only paint the handle if the expose area
446         intersects it.
447
448 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
449
450         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
451
452 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
453
454         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
455         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
456
457 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
458
459         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
460          textmode (O_TEXT) for OS/2 version.
461
462 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
463
464         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
465         GtkSpinButton, "input" and "output", to make the output more flexible.
466         The user has to provide a mapping between adjustment->value and the
467         output string (and vice versa, if the spin button is editable). 
468         See testgtk for examples.
469
470 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
471
472         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
473         new one.
474         
475         * configure.in: set gtk+ version to 1.3.0.