1 Thu May 7 05:14:19 1998 Tim Janik <timj@gtk.org>
3 * gtk-config.in (--libs): postfix -lg* libraries with LT_RELEASE.
5 * ltmain.sh: added a new commandline flag -postfix similar to -release,
6 but will immediately change the library name.
9 * gtk/Makefile.am: specify -postfix and -version-info
11 * configure.in: version bump to 1.1.0. added GTK_INTERFACE_AGE and
12 GTK_BINARY_AGE. calculate LT_* variables for libtool.
14 1998-05-06 Federico Mena Quintero <federico@nuclecu.unam.mx>
16 * gtk/gtkclist.c (draw_row): Fixed incorrect painting of row
17 background (fg_set -> bg_set confusion).
19 1998-05-06 Stefan Jeske <stefan@gtk.org>
21 * gtk/testgtk.c (unselect_all): Removed code that caused an
24 Wed May 6 02:16:34 1998 Tim Janik <timj@gtk.org>
26 * gtk/gtksignal.c: reimplemented the signal storage system to use a
27 linear array rather than a hash table.
28 be carefull *not* to keep any GtkSignal pointers across invokations
29 of gtk_signal_next_and_invalidate() and therefore gtk_signal_new[v]().
30 general code cleanups, made all allocations through memchunks.
31 (gtk_signal_lookup): we now do the lookup of signals through a key_id
32 for the signal names to avoid multiple hashing of the signal name on
33 lookups for the several hirarchy levels of an object.
35 Tue May 5 15:33:27 1998 Tim Janik <timj@gtk.org>
37 * gtk/gtkmain.c (gtk_init): added gtk_signal_init() to avoid repeatedly
38 checking for signal initialization in gtksignal.c.
40 * gtk/gtktypeutils.c (TYPE_NODES_BLOCK_SIZE): reseted this to 200 after
41 a long debugging period ;)
43 1998-05-05 Stefan Jeske <stefan@gtk.org>
45 * gdk/gdkgc.c gdk/gdk.h gtk/gtkctree.c (gdk_gc_set_dashes):
46 New function to wrap XSetDashes; modified gtkctree.c to use it.
48 1998-05-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
50 * configure.in: Added $x_libs in the other_libraries field in the
51 check for XShapeCombineMask.
53 Mon May 4 00:30:11 1998 Tim Janik <timj@gtk.org>
55 * gtk/gtktypeutils.h (GTK_TYPE_IS_A): new macro to speedup
57 * gtk/gtktypeutils.c: reimplemented the type storage system to use a
58 linear array rather than a hash table. it actually speeded up testgtk
59 for a *considerable* amount. be carefull *not* to keep any GtkTypeNode
60 pointers across invokations of gtk_type_node_next_and_invalidate() and
61 therefore gtk_type_unique()!
63 * gtk/gtkobject.h (GTK_IS_OBJECT_CLASS): new macro to test for the
64 inheritance of a class pointer.
65 (GTK_OBJECT): modifications for speedups.
66 (GTK_IS_OBJECT): likewise.
67 (GTK_OBJECT_CLASS): likewise.
70 * gtk/gtkcontainer.h (GTK_IS_CONTAINER_CLASS): new macro.
72 * gtk/gtkwidget.h (GTK_IS_WIDGET_CLASS): new macro.
74 * gtk/gtk.defs (GtkTooltips): define GtkTooltips as object not as boxed,
75 since its derivation changed 4 month ago ;(. showed up with the unique
76 type name checking code in gtk_type_unique().
78 * random guint->GtkType and macro fixups.
80 Sat May 2 23:14:34 1998 Owen Taylor <otaylor@gtk.org>
82 * gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
83 Configure events that would result in a negative
86 Sun May 3 14:55:34 1998 Owen Taylor <otaylor@gtk.org>
88 * docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
89 "glibconfig.h" and another about writing another IRC
92 Sat May 2 00:14:05 1998 Owen Taylor <otaylor@gtk.org>
94 * gtk/gtkpreview.c (gtk_trim_cmap): Make sure the
95 parameters to log are doubles. Digital Unix apparently
96 is missing the argument in its prototype.
98 Sun May 3 19:04:46 1998 Owen Taylor <otaylor@gtk.org>
100 * gtk/gtklabel.c (gtk_label_state_changed): Don't
101 force a clear until the widget is actually on
104 Sun May 3 21:32:35 1998 Owen Taylor <otaylor@gtk.org>
106 * gdk/gdk.c (gdk_event_translate): Grab with OwnerEvents = False
107 to make this consistent with the gtk-1-0 tree.
109 Sun May 3 13:38:22 1998 Owen Taylor <otaylor@gtk.org>
111 * configure.in acheader.h gdk/gdkwindow.c
112 Check for Shape extension both on the client and server
113 side. (And, more importantly, check for the shape extension
114 so we may include -lXext even when compiling with --disable-xshm)
116 Don't set override_redirect on all shaped windows. It isn't
119 * gdk/gdkwindow.c: Set ->colormap to NULL for root
120 and foreign windows. Use this to check if we
121 need to get the colormap from X.
123 Fri May 1 22:32:47 1998 Owen Taylor <otaylor@gtk.org>
125 * gtk/gtkbutton.c (gtk_button_paint): Draw the areas
126 between the default and the button always in GTK_STATE_NORMAL.
128 * gtk/gtkrange.c (gtk_range_style_set): Added a style_set
131 Fri May 1 16:40:57 1998 Owen Taylor <otaylor@gtk.org>
133 * gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]):
134 Fix a buffer overflow on pixmaps that claim to have
135 more than 31 characters per pixel.
137 (gdk_pixmap_read_string): Don't wrap around strings longer
138 than half of address space ;-)
140 * gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers
141 that were used for printing integers.
148 int foo (void) { ... }
150 Even where there were proper prototypes elsewhere.
152 * gdk/gxid.c (handle_claim_device): Some extra checks.
153 It isn't safe against being fed bad X id's, but at
154 least it should be safe against deleting all your
157 Sun May 3 19:45:09 1998 Tim Janik <timj@gtk.org>
159 * gtk/gtkadjustment.c (gtk_adjustment_assimilate_value): new function
160 to set the adjustments value when there is no current emission.
161 [ Removed by mutual agreement owt 5/3/1998 ]
163 * gtk/gtksignal.c: added new functions to retrive the number of
164 existing emissions for a certain signal.
165 (gtk_signal_n_emissions): new function.
166 (gtk_signal_n_emissions_by_name): new function.
168 Sun May 3 16:55:43 1998 Tim Janik <timj@gtk.org>
170 * gtk/gtkcontainer.c (gtk_container_set_focus_child): new function to
171 set the current focus_child of a container, does proper referencing and
172 adjusts the vadjustment/hadjustment associated with the focus widget.
174 * gtk/gtkwidget.c (gtk_widget_grab_focus): set the focused child on
175 containers via gtk_container_set_focus_child.
177 * gtk/gtknotebook.c: modifications to use gtk_container_set_focus_child
180 * gtk/gtkcontainer.c (gtk_container_remove): removed unsetting of focus
181 child since not every child removal goes through this function (this
182 showed up after gtk_container_set_focus_child() started to reference the
183 focus_child of a container).
185 * gtk/gtkwidget.c (gtk_widget_unparent): moved unsetting the focus_child
186 of a container from gtk_container_remove into this place.
188 Sat May 2 22:33:45 1998 Tim Janik <timj@gtk.org>
190 * gtk/gtksignal.c: added new functions to operate on intermediate
191 function pointers. implemented incremental blocking.
192 (gtk_signal_disconnect_by_func): new function.
193 (gtk_signal_handler_block_by_func): new function.
194 (gtk_signal_handler_unblock_by_func): new function
196 Fri May 1 22:45:55 1998 Owen Taylor <otaylor@gtk.org>
198 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_allocate):
199 Always show the scrollbars when the policy is
202 Sat May 2 20:19:03 1998 Tim Janik <timj@gtk.org>
204 * gtk/gtkadjustment.c (gtk_adjustment_set_value): only emit
205 "value_changed" if we really passed a new value.
206 (gtk_adjustment_changed): new function to emit the "changed" signal.
207 (gtk_adjustment_set_value): new function to emit the "value_changed"
210 Fri May 1 12:28:35 1998 Owen Taylor <otaylor@gtk.org>
212 * gtk/gtkcombo.c: Further changes to the way the window
213 is popped up so that it will be compatible with
214 auto-scrolling in the future.
216 Fri May 1 20:25:29 1998 Tim Janik <timj@gtk.org>
218 * gtk/gtkcombo.c (gtk_combo_popup_list): do not just return if
219 the combo-list is empty since that will cause the combo to operate
220 on a non existing GtkList window.
221 (gtk_combo_get_pos): provide the combo list with a usfull default
223 (gtk_combo_popup_button_press): grab the focus.
224 (gtk_combo_activate): grab the focus.
226 Fri May 1 12:06:43 1998 Owen Taylor <otaylor@gtk.org>
228 * gtk/gtkwindow.[ch] (gtk_widget_reset_rc_styles): New
229 function to reset the RC styles for a heirarchy
231 Clear the window background if necessary in
232 gtk_window_style_set.
234 * gtk/gtkrc.[ch]: New function gtk_rc_reparse_all() which
235 rereads all previously read RC files.
237 * gdk/gdkwindow.c gdk/gdk.h: New function gdk_window_get_toplevels().
238 (Should it just be called gdk_get_toplevels?)
240 * gtk/testgtk.c: New test to reload RC files.
242 Fri May 1 13:57:36 1998 Tim Janik <timj@gtk.org>
245 * gtk/gtkclist.c: prefixed all clist flags with GTK_ to avoid name
246 clashes. redefined GTK_CLIST_SET_FLAGS and GTK_CLIST_UNSET_FLAGS as
247 GTK_CLIST_SET_FLAG and GTK_CLIST_UNSET_FLAG to automatically add
248 the GTK_ prefix (this solution involved less changes in the
249 gtkclist.c code). added a GTK_CLIST_CONSTRUCTED flag to substitute
250 the mem_chunk==NULL test in gtk_clist_construct. merged in changes
251 from lars & stefan to support the derivation of GtkCtree.
255 initial import of a tree widget derived from gtkclist, courtesy
256 of Lars Hamann <lars@gtk.org> and Stefan Jeske <jeske@gtk.org>,
259 Fri May 1 10:05:44 1998 Tim Janik <timj@gtk.org>
261 * gtk/gtklist.c (gtk_list_add): let gtk_list_append_items do the work
263 (gtk_list_insert_items):
264 (gtk_list_remove_items_internal):
265 (gtk_list_clear_items):
266 remove a possible pointer grab, we might get thrown into a loop
268 (gtk_list_button_press): grab the pointer *before* selecting the child,
269 because selection of items may cause the lists children to change,
270 resulting in a grab release.
271 (gtk_list_clear_items): use gtk_list_unselect_child() for unselection of
273 (gtk_list_shutdown): remove all children from the list.
274 (gtk_real_list_unselect_child):
275 (gtk_real_list_select_child): *always* put our internal structures into
276 sane state *before* signal emisions (i.e. list->selection updates prior
277 to gtk_list_item_[de]select() calls).
279 * gtk/gtkcombo.c (gtk_combo_init): adjust the scrollbar if the lists
280 focused child walks out of the window.
281 removed CAN_FOCUS for the combo arrow's button since it doesn't react
282 to keyboard events ("clicked" connection is missing).
284 Fri May 1 00:42:25 1998 Owen Taylor <otaylor@gtk.org>
286 * gdk/gdkwindow.c (gdk_window_get_colormap): Fix up
287 getting colormap for FOREIGN windows to go along with
288 Raster's fix for visuals.
293 Thu Apr 30 23:32:51 1998 Owen Taylor <otaylor@gtk.org>
295 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_allocate):
296 Check to catch the case when the viewport fits in either
297 direction or both, instead of flip-flopping infinitely.
299 Only show/hide the scrollbars once at the end.
301 Thu Apr 30 21:56:07 1998 Owen Taylor <otaylor@gtk.org>
303 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_foreach):
304 Include the scrollbars in the foreach call.
305 (gtk-fortier-980405-0.patch;
306 Patrice Fortier <Patrice.Fortier@aquarel.fr>).
309 really should also include its tabs, but that might cause
310 problems for programs if they
312 Thu Apr 30 21:51:52 1998 Owen Taylor <otaylor@gtk.org>
314 * gtk/gtkpixmap.c (gtk_pixmap_set): Only request a
315 resize if the size actually changed.
316 (gtk-johannes-980414-0.patch ;
317 johannes@nada.kth.se (Johannes Keukelaar) )
319 Thu Apr 30 10:22:59 1998 Owen Taylor <otaylor@gtk.org>
321 * glib/ltmain.sh glib/ltconfig glib/config.sub glib/config.guess:
322 ltmain.sh ltconfig config.sub config.guess:
324 Reverted back to libtool-1.2 (plus minor patches) so as not to
325 force the issue for everyone else.
327 Thu Apr 30 10:22:59 1998 Owen Taylor <otaylor@gtk.org>
329 * glib/ltmain.sh glib/ltconfig glib/config.sub glib/config.guess:
330 Updated to libtool 1.2a.
332 * gtk/gtkclist.c: Draw the in-between lines with style->base
333 instead of style->white.
335 Wed Apr 29 15:46:13 1998 Owen Taylor <otaylor@gtk.org>
337 * gdk/gdkprivate.h gdk/gdkwindow.c gdk/gdkpixmap.c:
338 Cache the colormap and children of a window locally
339 instead of fetching them from the server when needed.
340 Huge performance difference for creating/destroying
343 * gtk/gtkstyle.c: Find the depth from the cached
344 visual, instead of asking the server.
346 * gtk.m4: Distribute the new version which tries to
347 figure out what went wrong and give helpful error
350 * ltmain.sh ltconfig config.sub config.sh:
351 Updated to libtool 1.2a
353 * gtk/gtktext.c: Fixed a bug where the drawn level
354 was being messed up when the text was scrolled
357 Thu Apr 30 02:42:11 PDT 1998 Manish Singh <yosh@gimp.org>
359 * gtk/gtkfilesel.c: don't die when naughty people remove parts of
360 the filesystem under you (fix from Josh)
362 Thu Apr 30 09:49:14 1998 Tim Janik <timj@gtk.org>
364 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_foreach): check
365 if the viewport already exists before iterating over it, maybe we
366 haven't been constructed yet.
368 Thu Apr 30 01:51:00 1998 Tim Janik <timj@gtk.org>
370 * gtk/gtkbin.c (gtk_bin_add): made this function issue a warning if
371 the GtkBin widget already has a child.
373 * gtk/gtkbox.c (gtk_box_pack_{start|end}):
374 check that child->parent == NULL;
376 Tue Apr 28 22:13:54 1998 Owen Taylor <otaylor@gtk.org>
378 * gtk/gtkselection.c (gtk_selection_clear): Only return
379 FALSE when the clear event is been rejected, not when
380 widget has already lost the selection. (Which should
381 only happen when we are setting the selection to another
384 Fri Apr 24 19:07:32 1998 Owen Taylor <otaylor@gtk.org>
386 * gtk/gtkfixed.c gtk/gtkpaned.c gtk/gtktable.c:
388 Removed the "check visibility after gtk_widget_unparent" bug
389 in hopefully the last three places.
391 Tue Apr 28 15:46:41 1998 Tim Janik <timj@gtk.org>
393 * gtk/gtkrc.c (gtk_rc_parse_statement): allow the inclusion of other
396 Mon Apr 27 15:11:52 1998 Tim Janik <timj@gtk.org>
398 * gtk/gtkwidget.c (gtk_widget_grab_focus): only allow grabbing of focus
399 for CAN_FOCUS widgets.
401 * gtk/testgtk.c (create_scrolled_windows): feature h/v focus
402 adjustments for the table.
403 (create_list): feature automatic adjustment of the scrolled window to
404 always contain the focused child.
405 (create_main_window): keep the focussed button always inside of the
408 * gtk/gtkcontainer.c (gtk_real_container_focus): set the h/v focus
409 adjustments, to contain the allocation of the currently focused child.
410 (gtk_container_set_focus_hadjustment): new functin to set the
411 horizontal focus adjustment.
412 (gtk_container_set_focus_vadjustment): new functin to set the vertical
415 * gtk/gtkadjustment.c (gtk_adjustment_clamp_page): new fucntion to
416 clamp the currents adjustment page into a specific range.
418 * random GtkType fixups for gtk_*_get_type() functions.
420 Fri Apr 24 18:37:16 1998 Owen Taylor <otaylor@gtk.org>
422 * gtk/gtktreeitem.c (gtk_tree_item_remove_subtree):
423 Account for the fact that gtk_tree_item_remove_subtree
424 will be called recursively.
426 Handle removing a collapsed subtree.
428 (From Andy Dustman <adustman@comstar.net>)
430 * gtk/gtktree.c (gtk_tree_remove_items): Look for the
431 root tree when removing items from a non-previously
434 * gtk/testgtk.c: Added a remove_subtree button.
436 Thu Apr 23 23:44:17 1998 Owen Taylor <otaylor@gtk.org>
438 * gtk/gtkobject.c (gtk_object_finalize): Notify all weak references
439 before object removing data. This change fixes a bug where
440 removing the last weak references would cause it to be
443 Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
445 * gdk/Makefile.am: Removed mostly useless dependency that
446 was causing problems for SGI's make, when used with
447 the 'make dist' form of GTK+. (Dependency caused dependencies
448 to be redone when BUILT_SOURCES changed)
452 Thu Apr 30 11:18:00 1998 Owen Taylor <otaylor@gtk.org>
454 * gtk/gtkcombo.[ch]: Allow the user to use the popup list
457 * gtk/gtkmenuitem.c gtk/gtkitem.c: Moved enter/leave handlers
458 to gtkitem.c so dragging can also work in lists.
460 * gtk/gtklist.[ch]: Track child enter events and use
461 those to allow dragging the selection.
463 Thu Apr 30 11:16:06 1998 Owen Taylor <otaylor@gtk.org>
465 * gtk/gtktext.c: Try enabling background pixmaps for editable text
466 widgets. There is a bit of flashing, but not too bad. If you
467 don't want the flashing, you can always not set a background
470 Wed Apr 29 15:46:13 1998 Owen Taylor <otaylor@gtk.org>
472 * gtk/gtktext.c: Fixed a bug where the drawn level
473 was being messed up when the text was scrolled
476 1998-04-28 Miguel de Icaza <miguel@nuclecu.unam.mx>
478 * gdk/gdk.c (gdk_event_translate): Random debugging fixed this
479 bug: There is no need to set the ExposureMask in the XGrabPointer
480 (this caused DnD programs to crash).
482 Fri Apr 24 01:29:04 1998 Tim Janik <timj@gtk.org>
484 * gtk/gtkaccelerator.h (struct _GtkAcceleratorTable): changed ref_count
485 field to be of type guint.
486 * gtk/gtkaccelerator.c (gtk_accelerator_table_unref): added check for
488 (gtk_accelerator_table_install): keep a per object list of accelerator
489 tables that refer to this object.
490 (gtk_accelerator_table_remove): remove the accelerator table from the
492 (gtk_accelerator_table_clean): warn if there are any object references
493 left in an accelerator table upon destruction.
494 (gtk_accelerator_tables_delete): new function to delete object
495 references from the accelerator tables associated with this object.
497 * gtk/gtkwidget.c (gtk_widget_class_init): changed emission of
498 GtkWidget::install_accelerator to GTK_RUN_LAST so the installation
499 of an accelerator can be prevented by gtk_signal_emit_stop().
500 (gtk_widget_real_destroy): call gtk_accelerator_tables_delete (),
501 so there are no stale pointers in accelerator tables left.
503 1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
505 * gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
506 visible before we unparent it.
508 Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
510 * gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
511 running_timeouts list with the tmp_list link itself, not with a new
512 GList structure pointing to our link. that would fill up memory and
513 causes the GList.data fields of the running_timeouts list to point to
514 GList structures and not GtkTimeoutFunction structures which is a
516 (gtk_handle_current_idles): likewise (exchange "timout" with "idle" in
519 Sat Apr 18 22:18:12 1998 Tim Janik <timj@gtk.org>
521 * gtk/gtkradiomenuitem.h:
522 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_set_group): new function
523 ala gtk_radio_button_set_group.
524 (gtk_radio_menu_item_init): assure that we always have at least a group
527 * gtk/gtkradiobutton.c (gtk_radio_button_set_group): few cleanups and
528 added g_return_if_fail() statements.
529 (gtk_radio_button_init): assure that we always have at least a group
532 Fri Apr 17 03:05:05 1998 Tim Janik <timj@gtk.org>
534 * ChangeLog split up into ChangeLog.pre-1-0 and ChangeLog.
536 Wed Apr 15 05:13:09 1998 Tim Janik <timj@gtk.org>
538 * gtk/gtklabel.c (gtk_label_size_request): corrected a brace position
539 (Damon Chaplin), which i got wrong when applying Damon's patch the last
542 Wed Apr 15 20:42:46 1998 Owen Taylor <otaylor@gtk.org>
544 * gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
545 that when we are running with a non-installed colormap,
546 in 8-bit pseudo-color, we actually are using the system
547 visual. (Fixes *Bad Match* errors on Digital Unix machines
548 with multiple 8-bit pseudo-color visuals)
550 1998-04-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
552 * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
553 by whoever thought that randomly changing ints to unsigned int
554 without reviewing the code was a good idea. It is, btw not
555 mentioned in the ChangeLog as usual, but I know it was not Elliot
556 the culprit this time.
558 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
560 * Released GTK+ 1.0.0