]> Pileus Git - ~andy/gtk/blob - ChangeLog.pre-2-8
tell people that they don't really want to use the Gtk+ devel version
[~andy/gtk] / ChangeLog.pre-2-8
1 Wed Mar 17 05:06:49 1999  Tim Janik  <timj@gtk.org>
2
3         * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
4         want to use the Gtk+ devel version (which is true, and yes - even i am
5         currently working with the 1.2.x branch). so everyone reading this, you
6         probably want to issue
7         cvs checkout -r glib-1-2 glib
8         and
9         cvs checkout -r gtk-1-2 gtk+
10         as your next two comands.
11
12 Wed Mar 17 02:49:32 1999  Tim Janik  <timj@gtk.org>
13
14         * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
15         gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
16
17         * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
18         file. strongly deprecated the GTK_HAVE_* macros, we provide
19         GTK_CHECK_VERSION() for people that need to check for certain
20         Gtk+ versions.
21
22         * gtk/gtkcompat.h: removed this from CVS.
23         * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
24         idea right from the start, it just didn't seem like that back then.
25
26 Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
27
28         * merges from gtk-1-2:
29
30 Tue Mar 16 17:43:33 1999  Tim Janik  <timj@gtk.org>
31
32         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
33         item factory class has been created.
34         (gtk_item_factory_parse_rc): likewise.
35
36         * gtk/gtkmenu.c:
37         keep proper references for old_active_menu_item.
38         (gtk_menu_reparent): unset the usize of the new parent,
39         so the menu can sanely be size requested and we don't get nasty screen
40         artefacts upon next reparentation.
41         (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
42         enter notify. only synthesize enter notifies if the pointer really is
43         inside the event window.
44         (gtk_menu_popdown): use gtk_menu_shell_deselect().
45         (gtk_menu_popup): move the background setting stuff into
46         gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
47
48         * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
49         gtk_menu_shell_select_item() to select the new item.
50         (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
51         do the right thing for deselection as well.
52
53 Sat Mar 15 20:10:33 1999  Tim Janik  <timj@gtk.org>
54
55         * gtk/gtkwidget.[hc]:
56         (gtk_widget_accelerators_locked): return whether a widget's accelerators
57         are locked.
58
59         * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
60         existing accelerators if the widget's accelerators are locked.
61
62 Sat Mar 14 19:44:05 1999  Tim Janik  <timj@gtk.org>
63
64         * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
65
66         * gtk/gtkmenu.c: truely forward key press and key release events to
67         the menu widget from the toplevel or tearoff window. we can't simply
68         connect to that, we need to stop further processing of the events as
69         well.
70
71 Sat Mar 13 13:14:17 1999  Tim Janik  <timj@gtk.org>
72
73         * gtk/gtkmenu.c:
74         (gtk_menu_key_press): pass event->keyval, event->state to
75         gtk_accelerator_valid, instead of event->keyval twice.
76         refuse to install single letter accelerators for menus that use
77         single letter shortcuts.
78
79         * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
80         gtk_menu_ensure_uline_accel_group().
81
82         * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
83         which will always return an uline accel group, made
84         gtk_menu_get_uline_accel_group() return NULL if the group isn't
85         yet created.
86
87 Mon Mar 15 01:03:27 1999  Lars Hamann  <lars@gtk.org>
88
89         * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
90
91         * gtk/gtkclist.c (gtk_clist_column_title_passive):
92         Leave button sensitive, trap  button_press, button_release,
93         motion_notify, enter_notify and leave_notify events instead.
94         (gtk_clist_column_title_active): disconnect event handler.
95         (gtk_clist_drag_data_get): fixed memory leak. Reported by
96         Guillaume Laurent <glaurent@worldnet.fr>
97
98 Wed Mar 10 23:49:55 1999  Lars Hamann  <lars@gtk.org>
99
100         * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
101         width/height mixups.
102
103         * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
104         if needed.
105
106 Wed Mar 10 00:11:32 1999  Tim Janik  <timj@gtk.org>
107
108         * gtk/testgtk.c (create_item_factory): unref the item factory after
109         window's destruction.
110
111         * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
112         count on the menu shell around the menu item's activation, since the
113         signal emission may cause menu shell destruction.
114
115         * gtk/gtkitemfactory.c:
116         the previous code leaked one accel group per menu. we use
117         gtk_menu_get_uline_accel_group() now to fix that, and with that
118         also create the underline accelerator group of the menus only if
119         required (i.e. an underline accelerator has been specified).
120         (gtk_item_factory_construct):
121         (gtk_item_factory_create_item): removed code that would create an
122         extra accel group for the menu (and leak references).
123         (gtk_item_factory_create_item): adapted the underline accelerator
124         installation code to properly feature gtk_menu_get_uline_accel_group().
125
126         * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
127         menu->accel_group, this may return NULL if the accelerator group
128         hasn't been set yet.
129         added gtk_menu_get_uline_accel_group() to retrive the underline
130         accelerator group of the menu, this will be created on demand
131         and proper care is taken about its reference count.
132
133         * gtk/gtkitemfactory.h:
134         * gtk/gtkitemfactory.c:
135         dumped the approach of keeping a widgets by action list on the
136         factory since the factory<->widget destroy negotiation didn't work
137         and would be hard to get going at all. instead we keep a list of
138         GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
139         persistant throughout a program's life time).
140         also, i removed the static const gchar *key_* variables, and made
141         them inline strings (they weren't actually used anyways).
142         (gtk_item_factory_add_item): update ifactory->items.
143         (gtk_item_factory_destroy): destroy ifactory->items (and remove
144         the item factory pointer from the remaining ifactory widgets).
145         (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
146         list to find the widget.
147         (gtk_item_factory_get_item): new function that works around
148         gtk_item_factory_get_widget() limitations, this function will only
149         return menu items, even for <Branch> entries.
150
151 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
152
153         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
154         font hash table, if we have a GdkFontPrivate entry for this font
155         already, simply increment its reference count, provided by Olaf Dietsche
156         <olaf.dietsche+list.gtk@netcologne.de>.
157
158         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
159         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
160
161 Sun Mar  7 06:13:29 1999  Tim Janik  <timj@gtk.org>
162
163         * gtk/gtkcontainer.c:
164         (gtk_container_add_with_args):
165         (gtk_container_addv):
166         (gtk_container_add): before adding a child to a conatiner, make sure
167         it is (default) constructed, this is neccessary because under certain
168         circumstances the child will get relized and mapped immediatedly, in
169         which case it has to be constructed already.
170
171 Mon Mar  1 17:58:21 1999  Tim Janik  <timj@gtk.org>
172
173         * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
174         values > 1 as TRUE also.
175
176 1999-03-16  Tor Lillqvist  <tml@iki.fi>
177
178         * README.win32: New file.
179                 
180         * configure.in: Check for lstat.
181
182         * config.h.win32: Add non-definition of HAVE_LSTAT, just for
183         completeness.
184
185         * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
186
187         * gtk/gtk.def: Removed CRs.
188
189         * gtk/makefile.msc: Correct include path to Win32 GDK version (in
190         ..\gdk\win32).
191
192         * gdk/win32/makefile.msc: Correct upwards relative paths.
193         
194 Mon Mar 15 03:38:34 1999  George Lebl  <jirka@5z.com>
195
196         * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
197           gtk_drag_highlight_expose and gtk_drag_highlight_paint since
198           it was connecting a void function to expose_event and the int
199           returning function to the draw signal
200
201 1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
202
203         * configure.in:
204         Use correct path to libgmodule.la when ref'ing uninstalled copy
205         of glib.  (Already in stable branch, Bug #417)
206
207 1999-03-15  Tor Lillqvist  <tml@iki.fi>
208
209         Win32 merge and general portability stuff:
210                 
211         * acconfig.h,configure.in: Check for <sys/time.h>.
212
213         * gdk/win32: New directory (actually, been there for a while).
214         
215         * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
216         NATIVE_WIN32, and use these. Always case fold on Win32. No
217         backslashed escapes on native Win32.
218
219         * gtk/{gtk.def,makefile.msc}: New files.
220
221         * gtk/Makefile.am: Add above new files.
222         
223         * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
224         instead of <strings.h>.
225
226         * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
227         config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
228         <unistd.h> appropriately.
229
230         * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
231         Use ABS() (from <glib.h>) instead of abs().
232         
233         * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
234         of gtk (and thus glib) headers, so that WIN32 will be
235         defined. With MS C, include <direct.h> for mkdir prototype.
236
237         * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
238         some casts, needed by MS C.
239
240         * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
241         implemented).
242
243         * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
244         <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>.  Use
245         G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
246
247         * gtk/gtkmain.h: Mark variables for export/import on Win32.
248                 
249         * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
250         the event is not a hint, or its window is not the slider. Needed
251         on Win32, at least.
252
253         * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
254         unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
255         G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
256         a subdirectory of the Windows directory as gtk system
257         configuration directory.
258
259         * gtk/gtkselection.c: No chunks on Win32.
260
261         * gtk/gtksocket.c: Not implemented on Win32.
262
263         * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
264
265         * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
266
267         * gtk/maketypes.awk: Declare variables with a macro that expands to
268         necessary export/import magic in the case of Win32.
269                 
270         * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
271
272 1999-03-13  Raja R Harinath  <harinath@cs.umn.edu>
273
274         * configure.in (gdk_wc): Move widechar tests from `glib' to here,
275         since those were meant only for gdki18n.h.  
276         * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
277         for widechar tests.
278         * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
279
280 1999-03-13  Tor Lillqvist  <tml@iki.fi>
281
282         * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
283         gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
284
285         * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
286         installed) to CFLAGS.
287
288         * gdk/Makefile.am: Add rules for gdkconfig.h.
289
290         * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
291         APIs.
292
293         * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
294         gdkx.h anyway when compiling for X11.
295         (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
296         general): Merge in Win32 version.
297         
298         * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
299         version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
300         expansion (if we don't have HAVE_PWD_H), allow for drive
301         letters. UNC paths (\\server\share\...) are not handled yet.  Also,
302         included code from Craig Setera's port to Win32 (the one that uses
303         X11, and the cygwin dll), even if it probably will be abandoned.
304
305         * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
306         the user entered one herself.  This way one can complete *.h and
307         don't get matches on any .help files, for instance.
308         
309 Tue Mar  9 01:01:28 1999  Tim Janik  <timj@gtk.org>
310
311         * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
312         font hash table, if we have a GdkFontPrivate entry for this font
313         already, simply increment its reference count, provided by Olaf Dietsche
314         <olaf.dietsche+list.gtk@netcologne.de>.
315
316         * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
317         provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
318
319 1999-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
320
321         * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
322         the number of calls to gdk_draw_point() (and thus to X) by
323         clipping the points by hand.
324
325         * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
326         the clip parameter.
327         (gtk_handle_box_paint): Only paint the handle if the expose area
328         intersects it.
329
330 Sun Mar  7 18:46:37 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
331
332         * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
333
334 Sun Mar  7 11:43:34 1999  ape@spacetec.no  (Asbjorn Pettersen)
335
336         * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
337         Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
338
339 Fri Mar  5 09:12:24 1999  ape@lrdpf.spacetec.no  (Asbjorn Pettersen)
340
341         * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
342          textmode (O_TEXT) for OS/2 version.
343
344 Sun Feb 28 16:46:02 1999  Stefan Jeske  <stefan@gtk.org>
345
346         * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to 
347         GtkSpinButton, "input" and "output", to make the output more flexible.
348         The user has to provide a mapping between adjustment->value and the
349         output string (and vice versa, if the spin button is editable). 
350         See testgtk for examples.
351
352 Sat Feb 27 01:18:47 1999  Tim Janik  <timj@gtk.org>
353
354         * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
355         new one.
356         
357         * configure.in: set gtk+ version to 1.3.0.