1 Tue Jan 29 11:51:14 2002 Tim Janik <timj@gtk.org>
3 * gtk/gtkscale.[hc]: fix default value for ::digits property,
4 leave as 1 as per havoc's request.
5 don't apply the draw_digits value to range->round_digits,
6 so we don't perform gross quantization by default.
8 2002-01-25 Havoc Pennington <hp@redhat.com>
10 * gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
11 failure by creating the line data, but not validating it at this
12 stage. Also, remove old code related to the "bogus newline" mess
13 that removed all tags from the last char in the buffer if you
15 (_gtk_text_line_data_new): put this here and prepend underscore,
16 remove from gtktextlayout.c
18 Mon Jan 28 19:57:39 2002 Owen Taylor <otaylor@redhat.com>
20 * modules/input/imhangul.c modules/input/imhangul-defs.h
21 po/POTFILES.in. Add port of Emacs korean-hangul input
22 method from Yusuke Tabata (#67665)
24 Mon Jan 28 18:25:10 2002 Owen Taylor <otaylor@redhat.com>
26 * gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
27 before focus to give theme engines a bit morea
30 Mon Jan 28 16:23:20 2002 Jonathan Blandford <jrb@redhat.com>
32 * gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
35 2002-01-28 Jon Trowbridge <trow@gnu.org>
37 * gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
38 GtkTreeView's model, set prelight_node, prelight_tree,
39 button_pressed_node and button_pressed_tree to NULL. (#69603)
41 2002-01-28 Bill Haneman <bill.haneman@sun.com>
44 Make sure that the default expanders are drawn with
45 an outline thickness appropriate to the size of the
46 expanders (RINT expander_size/7).
47 Added static gtk_style_draw_polygon_with_gc(), to
48 reduce code duplication.
50 * gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
51 Use focus_line_thickness when drawing focus lines.
53 * gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
54 Adjust requested width to include focus line thickness.
55 (gtk_tree_view_column_cell_render_or_focus):
56 Calculate a focus line rectangle which gets larger as the focus
57 line thickness increases, to avoid overwriting cell content.
58 Render left-aligned content at x+focus_line_width.
59 (gtk_tree_view_column_cell_draw_focus):
60 Don't draw a focus line around an editable text cell, since the
61 text caret already indicates keyboard focus.
62 Pass a GtkStateType appropriate to the focussed cell's state
65 Mon Jan 28 14:44:40 2002 Jonathan Blandford <jrb@redhat.com>
67 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
68 activate/edit the row if shift is not pressed, #69248
70 2002-01-28 Anders Carlsson <andersca@gnu.org>
72 * gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.
74 2002-01-28 Matthias Clasen <matthiasc@poet.de>
76 * gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
77 gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
78 gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
79 gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
80 gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
81 gtkviewport.c,gtkwidget.c}: General property notification
84 2002-01-28 Anders Carlsson <andersca@gnu.org>
86 * gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
87 default mod mask so accels work when numlock is on.
89 Sun Jan 27 23:23:23 2002 Kristian Rietveld <kris@gtk.org>
91 * gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
92 commit already needed this ...)
94 Sun Jan 27 22:13:02 2002 Kristian Rietveld <kris@gtk.org>
98 * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
101 * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
102 expander_size caching (from style), fix CELL_HEIGHT macro,
103 use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
104 row height calculation, added style_set callback
106 2002-01-27 Anders Carlsson <andersca@gnu.org>
108 * gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
111 * gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.
113 * gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.
115 * gtk/gtktextview.c (set_invisible_cursor): New function.
116 (gtk_text_view_obscure_mouse_cursor): Likewise.
117 (gtk_text_view_key_press_event): Call obscure_cursor if text
119 (gtk_text_view_motion_event): Restore the mouse cursor.
121 * gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
122 (set_invisible_cursor): New function.
123 (gtk_entry_obscure_mouse_cursor): Likewise.
124 (gtk_entry_key_press): call obscure_cursor if text has been inserted.
125 (gtk_entry_motion_notify): Restore the mouse cursor.
127 2002-01-27 Sven Neumann <sven@gimp.org>
129 * gtk/gtkstyle.c (sanitize_size): removed unused return value.
131 Sat Jan 26 19:27:23 2002 Owen Taylor <otaylor@redhat.com>
133 * gtk/gtksocket.c (gtk_socket_grab_notify): Don't
134 send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)
136 Sat Jan 26 19:04:37 2002 Owen Taylor <otaylor@redhat.com>
138 * gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
139 in the grab_widget == NULL case. (Bug reported by
140 Padraig O'Briain, #69735)
142 * gtk/gtkplug.c (handle_modality_on): Realize the modality
143 window so gtk_widget_event() doesn't complain :-((((.
145 2002-01-25 Federico Mena Quintero <federico@ximian.com>
147 Merge from gdk-pixbuf stable.
149 * gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
150 conversion --- swap the individual 16 bit values instead of taking
151 everying as a 32 bit value.
152 (rgb565lsb): Likewise.
153 (rgb555lsb): Likewise.
154 (rgb555msb): Likewise.
156 2002-01-25 Alex Larsson <alexl@redhat.com>
158 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
159 Implement copy_to_image instead of get_image
161 * gdk/linux-fb/gdkimage-fb.c:
162 Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
163 _gdk_fb_copy_to_image.
164 Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>
166 * gdk/linux-fb/gdkmain-fb.c:
167 Make ENABLE_FB_MANAGER region larger.
169 * gdk/linux-fb/gdkprivate-fb.h:
170 Change _gdk_fb_get_image to _gdk_fb_copy_to_image.
172 2002-01-25 Sven Neumann <sven@gimp.org>
174 * gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
175 that gtk-doc doesn't get confused.
177 Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
179 * gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
180 that the passed in arrow is always _UP or _DOWN, this catches
181 false invocations which lead to drawing artefacts.
182 (start_spinning): likewise, i.e. sanity check the passed in arrow.
183 (gtk_spin_button_button_release): fix arrow redrawing.
184 (gtk_spin_button_button_press): must set click_child for
185 button3 even if we don't take spinning action right away.
187 * gtk/gtkspinbutton.h (struct _GtkSpinButton): document
188 valid values for click_child.
190 Thu Jan 24 23:03:24 2002 Kristian Rietveld <kris@gtk.org>
192 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
193 return current FALSE if x is smaller than the current visible area,
194 not than the requested area, don't correct y coordinate,
195 TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.
197 Thu Jan 24 15:41:08 2002 Jonathan Blandford <jrb@redhat.com>
200 (gtk_tree_view_motion_draw_column_motion_arrow): fix column
202 (gtk_tree_view_size_allocate): fix evil bug.
204 Thu Jan 24 11:53:19 2002 Owen Taylor <otaylor@redhat.com>
206 * gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
207 the model until we clean up all the other objects
208 that might refer to the object.
210 2002-01-24 Mark McLoughlin <mark@skynet.ie>
212 * gtk/gtkaccessible.h: include gtk/gtkwidget.h
214 Wed Jan 23 20:28:59 2002 Owen Taylor <otaylor@redhat.com>
216 * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
217 Use insensitive state for insensitive arrows, not
218 just an "etched state". (#67172, Adrian Custer)
220 2002-01-23 Manish Singh <yosh@gimp.org>
222 * gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
225 2002-01-23 Damon Chaplin <damon@ximian.com>
227 * configure.in (gtk_doc_min_version): set minimum gtk-doc version to
228 0.9, since we need to use the new --type-init-func argument for
231 2002-01-23 Matthias Clasen <matthiasc@poet.de>
233 * gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
234 g_return_if_fail() calls. (#57615)
236 * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
237 it work for paths with underline accelerators. (#69247)
239 Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
241 * gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
242 Stop spinning if widget becomes insensitive. (#56248)
244 Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
246 * gtk/gtkspinbutton.c (EPSILON): Decreate value since
249 Tue Jan 22 16:58:37 2002 Jonathan Blandford <jrb@redhat.com>
251 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
252 I introduced accidentally, #69358
254 2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>
256 * gtk/gtktreestore.c (gtk_tree_store_iter_children):
257 Update last change to prevent core dump
259 Mon Jan 21 01:21:54 2002 Kristian Rietveld <kris@gtk.org>
261 * gtk/gtktreestore.c: add some more stamp checks (pointed out
264 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
265 assume _row_changed will insert sort (because _row_changed doesn't
266 need to follow this signal), so apply insert sort here
267 (gtk_tree_model_sort_level_find_insert): header doesn't need to be
268 set here, so use a return instead of g_return_val_if_fail.
270 Mon Jan 21 18:28:17 2002 Jonathan Blandford <jrb@redhat.com>
272 * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
273 top_row. Remove extraneous print statements.
275 2002-01-21 Matthias Clasen <matthiasc@poet.de>
277 * gtk/gtkitemfactory.c (gtk_item_factory_popup,
278 gtk_item_factory_popup_with_data): Document allowed values
281 * gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make
282 it work for paths with underline accelerators.
284 Fri Jan 18 16:31:21 2002 Jonathan Blandford <jrb@redhat.com>
286 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
289 Mon Jan 21 11:56:31 2002 Owen Taylor <otaylor@redhat.com>
291 * gtk/gtkentry.c (gtk_entry_real_activate): Trap the
292 case where there is no default widget and the entry
293 is the focus widget, since this also causes infinite
296 Mon Jan 21 11:46:39 2002 Owen Taylor <otaylor@redhat.com>
298 * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
299 rather than lazilygdk_get_program_class(), since we don't want
300 -name to override it. (#69123, Ryan Lovett)
302 Mon Jan 21 10:29:45 2002 Owen Taylor <otaylor@redhat.com>
304 * gdk/gdk.c: Fix wrong types for command line arguments
305 (#69124, Ryan Lovett)
307 * gdk/gdk.c (gdk_arg_context_parse): Fix bug in parsing
308 parsing '--arg VALUE'.
310 * gdk/gdk.c: Remove unused variable gdk_error_trap_free_list.
312 2002-01-21 Havoc Pennington <hp@pobox.com>
314 * gdk/gdkwindow.c (gdk_window_add_filter): mention that window
317 Sat Jan 19 20:49:41 2002 Kristian Rietveld <kris@gtk.org>
319 * demos/gtk-demo/editable_cells.c: fix a load of open line ends
320 (cell_edited): modified patch from German Poo Caaman~o
321 to fix up old_text declaration and free the memory
322 (do_editable_cells): unref the model after creating the treeview
324 * demos/gtk-demo/list_store.c: fix a load of open line ends,
325 (add_columns): set the sort column id, so we can sort
327 * demos/gtk-demo/tree_store.c: fix a load of open line ends,
328 (do_tree_store): unref the model after creating the treeview
330 2002-01-19 Havoc Pennington <hp@pobox.com>
332 * gtk/gtkwindow.c: link to new X11 section in a lot of places when
333 mentioning the window manager.
335 * gtk/gtkwidget.c (gtk_widget_hide_on_delete): don't mention
336 window manager since we're portable.
338 Sat Jan 19 08:47:41 2002 Jeff Garzik <jgarzik@mandrakesoft.com>
340 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
341 Wrap case values in GPOINTER_TO_UINT(). Fixes build with gcc 3.x.
343 * gtk/gtkmain.c: Include sys/types.h if G_OS_UNIX.
344 Fixes build with gcc 3.x and -ansi.
346 Fri Jan 18 23:01:37 2002 Owen Taylor <otaylor@redhat.com>
348 * gtk/gtkrc.c (gtk_rc_parse_style): Fix problems when
349 an engine declaration occurs in a reopened style, and
350 g_free() of objects when errors occur.
352 2002-01-18 Matthias Clasen <matthiasc@poet.de>
354 * gtk/gtkitemfactory.c (gtk_item_factory_get_widget_by_action):
355 Clarify documentation. (#69026)
357 * gtk/gtkprogressbar.c (gtk_progress_bar_size_request): Fix
358 missing initialization of adjustment. (#69025)
360 2002-01-17 Raja R Harinath <harinath@cs.umn.edu>
363 <URL: http://bugzilla.gnome.org/show_bug.cgi?id=68969>
364 * gdk/Makefile.am: Remove use of automake conditionals to pick
366 * gtk/Makefile.am: Likewise.
368 * gdk/Makefile.am (LDFLAGS): Use $(libdir), not @prefix@/lib.
369 * gtk/Makefile.am (LDFLAGS): Likewise.
371 Thu Jan 17 20:13:14 2002 Owen Taylor <otaylor@redhat.com>
373 * gtk/gtknotebook.c (gtk_notebook_redraw_tabs): Fix
374 missing allocation.x/y offsets. (#68962, Jacob
377 * gtk/gtknotebook.c (gtk_notebook_size_allocate):
378 Queue a redraw on the entire widget if we hide
379 the last page or show the first. (Also #68962)
381 2002-01-17 Havoc Pennington <hp@redhat.com>
383 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): change
384 GTK_MOVEMENT_PARAGRAPHS to go to start/end of paragraph before it
385 starts to go up/down paragraphs. This makes Ctrl+Up/Ctrl+Down work
386 as in the keynav spec, though it makes the interpretation of
387 GTK_MOVEMENT_PARAGRAPHS different from the interpretation of some
388 of the other GTK_MOVEMENT_ thingies, maybe, as if that enum makes
391 Thu Jan 17 16:34:55 2002 Jonathan Blandford <jrb@redhat.com>
393 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): For
394 some reason, I was activating a row while just selecting it.
395 Reported by andersca.
396 (gtk_tree_view_size_request): add a
397 validate_rows_handler to give us a rough width of the widget.
399 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
400 Queue a resize here just in case. It's needed in over half the
401 cases, and I don't want to do a diff to figure out exactly when
404 2002-01-17 Matthias Clasen <matthiasc@poet.de>
406 * gtk/gtkinputdialog.c,
407 gtk/gtkcolorsel.c, gtk/gtkfilesel.c, gtk/gtkfontsel.c:
408 Mark children as composite. (#66360)
410 * gtk/gtkwidget.c (gtk_widget_push_composite_child): Explain
411 composite children some more. (#66360)
413 2002-01-17 Havoc Pennington <hp@redhat.com>
415 * gtk/gtktextlayout.c (_gtk_text_layout_get_line_xrange): new
416 function (which I then decided not to use but I think it's needed
419 * gtk/gtktextview.c: add page_horizontally action signal and
420 implement Ctrl+PgUp, Ctrl+PgDown based on patch from Padraig,
421 hackily modified to avoid adding GTK_MOVEMENT_ API. Part of
424 * gtk/gtkmarshalers.list: add NONE:INT,BOOL
426 Thu Jan 17 17:02:38 2002 Owen Taylor <otaylor@redhat.com>
428 * gtk/gtkwidget.c (gtk_widget_real_unrealize): Call
429 gtk_selection_remove_all() here, not in destroy/
430 finalize. (#66636, Sergey Vlasov)
432 * gtk/gtkselection.c (gtk_selection_request): Fix
433 reentrancy problem with multiple conversions.
435 * gtk/gtkselection.c (gtk_selection_remove_all):
436 Don't remove incrs, we don't need the widget for
439 * gtk/gtkselection.c (struct _GtkIncrInfo): Remove
440 the widget field from here, we don't need it.
442 Thu Jan 17 13:08:34 2002 Owen Taylor <otaylor@redhat.com>
444 * gdk/x11/gdkmain-x11.c (gdk_error_trap_push): Move
445 here, and save/restore the X error handler to allow
446 people using GTK+ to set the X error handler to something
447 custom without disturbing the operation of GDK.
449 * gdk/linux-fb/gdkmain-fb.c (gdk_error_trap_push)
450 * gdk/win32/gdkmain-win32.c (gdk_error_trap_pop): Add
451 dummy implementations.
453 * gdk/x11/gdkmain-x11.c gdk/x11/gdkevents-x11.c
454 gdk/x11/gdkdnd-x11.c: Use gdk_error_trap_push()/pop()
455 for all error trapping.
457 * gdk/x11/gdkdnd-x11.c: Remove '#if 0' code.
459 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_new): Fix
460 problem where we would add the results anyways,
461 and then add it again if no error occurred, and problem
462 where we could leave _gdk_error_warnings() unset.
464 Wed Jan 16 20:28:38 2002 Owen Taylor <otaylor@redhat.com>
466 * gtk/gtkfilesel.c: Fix "deleting" filename by adding
467 another boolean parameter to file_selection_populate() -
468 whether to clear the entry. Also, never fill in the
469 entry when the user clicks on something in the
470 directory list. (#6791, Reported by Jos Dehaes and many,
473 2002-01-16 Havoc Pennington <hp@redhat.com>
475 * gtk/gtktextview.c (gtk_text_view_scroll_pages): update
476 cursor_y_pos with clamped delta rather than theoretical delta
477 (#68788). Also, if we can't page up/down further then jump
478 to top/bottom of the document.
480 Wed Jan 16 19:33:41 2002 Owen Taylor <otaylor@redhat.com>
482 * gtk/gtkfilesel.c (gtk_file_selection_map): Refresh
483 the dialog on map. (#52877, inspired by request from
486 Wed Jan 16 19:23:04 2002 Owen Taylor <otaylor@redhat.com>
488 * gtk/gtkbindings.c (gtk_binding_entry_activate):
489 Support "optional" bindings. If a binding signal
490 has a boolean return value, and returns FALSE it
491 is as if it didn't exist all.
493 * gtk/gtkbindings.c (binding_compose_params): Switch
496 * gtk/gtknotebook.[ch]: Make the select_page() and
497 change_current_page() signals only take effect when
498 the focus is on the tab area so that key presses
499 in children pass up to the toplevel correctly.
501 Wed Jan 16 12:16:37 2002 Owen Taylor <otaylor@redhat.com>
503 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Fix
504 calculation error in the (shouldn't happen) case where
505 option_menu->height < child_requisition.height. (Patch
506 from Jacob Berkman, #66969)
508 2002-01-15 Matthias Clasen <matthiasc@poet.de>
510 * gtk/gtkenums.h (GtkMatchType): Deprecate. (#68183)
512 * gtk/gtkscale.h (gtk_scale_value_width): Remove useless
513 compatibility macro. (#67730)
515 Wed Jan 16 10:54:38 2002 Owen Taylor <otaylor@redhat.com>
517 * configure.in: Fix typo in --help output.
520 Wed Jan 16 10:18:42 2002 Owen Taylor <otaylor@redhat.com>
522 * gtk/stock-icons/Makefile.am (EXTRA_DIST): Add
525 * configure.in: Make TIFF, JPEG, PNG loaders mandatory
526 unless you configure with --without-libtiff, etc.
527 (#54045, Brian Cameron)
529 2002-01-16 Padraig O'Briain <padraig.obriain@sun.com>
531 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
532 Avoid unexpected warning message when navigating menu (#68517)
534 2002-01-15 Jody Goldberg <jody@gnome.org>
536 * gtk/gtklayout.c (gtk_layout_realize) : It is possible that a
537 GtkLayout may have been scrolled _before_ it was realized.
539 Tue Jan 15 18:10:24 2002 Owen Taylor <otaylor@redhat.com>
541 * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify): Stop
542 the timer on destroy, or when we are notified that we are
543 shadowed by a modal dialog.
545 * gtk/gtkspinbutton.c: Remove explicit gtk_grab_add()/remove() -
548 * gtk/gtkmain.c (gtk_grab_notify): Fix problem where notifications
549 weren't sent out for the default grab group.
551 * gtk/gtkmain.c (gtk_grab_notify): Fix notification of widgets that
552 were getting events because they were part of the previous grab.
554 Tue Jan 15 12:23:33 2002 Owen Taylor <otaylor@redhat.com>
556 * gtk/gtknotebook.c (gtk_notebook_mnemonic_activate_switch_page):
557 focus the activated tab, not the page. (#53612)
559 * gtk/gtknotebook.c (gtk_notebook_set_focus_child): Track
560 the last focus descendant of the page.
562 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): If the focus
563 was on the previous page, move it to the last focused widget /
564 first element on the new page, if possible, or if not, to the
565 notebook itself. (#68224, reported by Jonathan Blandford)
567 * gtk/gtknotebook.c (focus_tabs_in): Don't focus tabs
568 tabs aren't visible. (#65462, Damon Chaplin, fixed based
569 on patch from Anders Carlsson)
571 2002-01-15 Vitaly Tishkov <tvv@sparc.spb.su>
574 a misprint in documentation for gtk_style_render_icon () is fixed
576 Mon Jan 14 23:21:47 2002 Tim Janik <timj@gtk.org>
578 * gtk/gtkmenuitem.c (gtk_menu_item_map): map event_window after
579 mapping child, so we don't loose events.
581 2002-01-15 Sven Neumann <sven@gimp.org>
583 * gtk/gtkaccellabel.h
584 * gtk/gtkitemfactory.c: fixed documentation by syncing the parameter
585 names used in headers and code.
587 2002-01-14 jacob berkman <jacob@ximian.com>
589 * gtk/gtkrc.c (gtk_rc_get_im_module_path): close a comment block
591 Tue Jan 15 01:13:51 2002 Kristian Rietveld <kris@gtk.org>
593 * gtk/gtktreemodelsort.c: fix a load of open line ends,
594 (gtk_tree_model_sort_set_model): only free root level if it's
597 2002-01-14 Matthias Clasen <matthiasc@poet.de>
599 * gtk/gtkoldeditable.c, gtk/gtkrc.c,
600 gtk/gtkstyle.c: Documentation additions.
602 * gtk/gtkmenu.c (gtk_menu_set_accel_path),
603 gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path),
604 gtk/gtkwidget.c (gtk_widget_add_accelerator): Typo and markup fixes.
606 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document.
608 * gtk/gtkaccelmap.c (gtk_accel_map_add_filter): Explain intended use.
610 Mon Jan 14 17:14:13 2002 Owen Taylor <otaylor@redhat.com>
612 * gdk/x11/gdkselection-x11.c (sanitize_utf8): Don't
613 mangle sequences of consecutive \n or \r.
615 Mon Jan 14 17:42:28 2002 Jonathan Blandford <jrb@redhat.com>
617 * gtk/gtktreeview.c (gtk_tree_view_stop_editing): allow cancel to
620 * gtk/gtktreeview.c (install_presize_handler): only install the
621 handler if we're realized, #68056
623 Mon Jan 14 16:35:58 2002 Owen Taylor <otaylor@redhat.com>
625 * gtk/gtkwindow.c (gtk_window_move_resize): Unset
626 initial_pos_set after the first configure request.
628 2002-01-13 Jody Goldberg <jody@gnome.org>
630 * gtk/gtktexttag.c (get_color_arg) : set_boxed will copy the color
631 and will use a mem_chunk to do it. Avoid an unnecessary copy, a
634 Sun Jan 13 23:23:22 2002 Owen Taylor <otaylor@redhat.com>
636 * gtk/gtkwindow.c (gtk_window_compute_hints): Fix problem where
637 widget->requisition was being used instead of
638 gtk_widget_get_child_requisition (), causing geometry widgets
639 with usizes to misbehave.
641 2002-01-14 Sven Neumann <sven@gimp.org>
643 * gtk/gtkrc.c: g_getenv() returns a const string.
645 2002-01-14 Hasbullah Bin Pit <sebol@ikhlas.com>
647 * configure.in: Added ms at ALL_LINGUAS.
648 * po/ms.po: Added Malay Translation.
650 2002-01-14 Matthias Clasen <matthiasc@poet.de>
652 * gtk/gtkitemfactory.c: Documentation.
654 2002-01-13 Sven Neumann <sven@gimp.org>
656 * gdk/gdkwindow.c: documentation cleanups.
658 Sun Jan 13 01:15:45 2002 Kristian Rietveld <kris@gtk.org>
660 * gtk/gtktreemodelsort.c: various cleanups,
661 (get_child_iter_from_elt): removed,
662 (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
663 and especially faster,
664 (gtk_tree_model_convert_iter_to_child_iter): use
665 gtk_tree_model_sort_elt_get_path
667 Sat Jan 12 16:57:31 2002 Kristian Rietveld <kris@gtk.org>
669 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
670 revert Owen's change (using a strdupped string as object data), so
671 the interactive search works again
673 2002-01-11 Havoc Pennington <hp@pobox.com>
675 * gtk/gtklabel.c: put in more links to Pango markup format docs
676 (gtk_label_set_justify): mention gtk_misc_set_alignment
678 2002-01-12 Tor Lillqvist <tml@iki.fi>
680 Fixes contributed by Archaeopteryx Software: This is a first small
681 part of their changes. Will commit more later.
683 * gdk/win32/*.c: Add some more checks for failed GDI calls. If a
684 call fails, don't use bogus values.
686 gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): Plug
687 memory leak: g_free() the AND and XOR bitmaps after use.
688 (_gdk_cursor_destroy): If we are destroying the current Windows
689 cursor, set the Windows cursor to none first.
691 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
692 brush that was in the DC, like the win32-procution branch does. I
693 guess this plugs a resource leak? With the HDC cache, the old
694 brush might be something we created ourselves, and not a stock
695 brush. And it doesn't do any harm to call DeleteObject on stock
698 * gdk/win32/gdkwindow-win32.c (gdk_window_impl_win32_finalize): If
699 the window has a cursor which is the current Windows cursor,
700 before destroying it set the current Windows cursor to none.
701 (gdk_window_set_cursor): Also here, if destroying the current
702 Windows cursor, set the current Windows cursor to none first.
703 (gdk_window_get_pointer): Revamp logic.
705 2002-01-10 jacob berkman <jacob@ximian.com>
707 * gtk/gtkwidget.c (gtk_widget_add_events): actually iterate
708 through the list rather than infinitely loop
710 2002-01-08 Matthias Clasen <matthiasc@poet.de>
712 * gtk/gtkwidget.c (gtk_widget_set_style_recurse): Rename to
713 reset_rc_styles_recurse(). (#68084)
715 2002-01-10 Vitaly Tishkov <tvv@sparc.spb.su>
719 * gtk/gtktreemodelsort.c
723 Wed Jan 9 20:56:42 2002 Jonathan Blandford <jrb@redhat.com>
725 * gdk/x11/gdkkeys-x11.c (get_xkb): get the types as well as the
726 symbols because we need them in MyEnhancedXkbTranslateKeyCode.
728 2002-01-10 Tor Lillqvist <tml@iki.fi>
730 Apply the same fixes and improvements as to the
731 gtk-1-3-win32-production branch: Bug fixes and cleanup of
732 selection and DND functionality. Still doesn't work as well as the
733 win32-production branch, though, but getting closer.
735 After this, need to add Archaeopteryx Software's OLE2 DND support.
737 * gdk/win32/gdkselection-win32.c (gdk_selection_owner_set,
738 gdk_selection_send_notify, generate_selection_notify): Don't use
739 SendMessage() to generate events for the same app, instead use
742 * gdk/win32/gdkprivate-win32.h
743 * gdk/win32/gdkglobals-win32.c
744 * gdk/win32/gdkmain-win32.c
745 * gdk/win32/gdkevents-win32.c: Thus, remove declaration, definition,
746 initialisation and handling of gdk_selection_notify_msg,
747 gdk_selection_request_msg and gdk_selection_clear_msg.
749 * gdk/win32/gdkselection-win32.c (gdk_text_property_to_text_list,
750 gdk_free_text_list, gdk_string_to_compound_text,
751 gdk_free_compound_text): Implement trivially, witrh a text_list
752 always having a single element, and a compound text always
753 consisting of just a single (UTF-8!) string. Let's see how well
756 * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
757 non-ASCII paste from the clipboard: Try getting the same formats
758 from the Windows clipboard that gdk_property_change() puts there:
759 CF_UNICODETEXT, UTF8_STRING or CF_TEXT+CF_LOCALE.
761 * gdk/win32/gdkproperty-win32.c (gdk_property_change): When
762 storing text on the clipboard, handle non-ASCII text
763 correctly. The logic is as follows:
765 If we have only ASCII characters, use CF_TEXT.
767 Else, if we are on NT, use CF_UNICODETEXT.
769 Else (we are on Win9x), if all the characters are present in the
770 code page of some installed locale, use CF_TEXT and also set
771 CF_LOCALE to that locale.
773 Else (still on Win9x) store as RTF. We use a very simple RTF
774 string, just the text, no fonts or other crap, with the non-ASCII
775 characters as Unicode \uN keywords. Additionally, also store the
776 UTF-8 string as such, under the format "UTF8_STRING", so that GDK
777 can also paste from the Clipboard what it has copied there. (Thus
778 no need to implement any RTF parser.)
780 (find_common_locale): New function, implements the search for a
781 locale for case 3 above.
783 * gdk/win32/gdkglobals-win32.c: New global variables
784 compound_text, text_uri_list, utf8_string, cf_rtf and
787 * gdk/win32/gdkim-win32.c (_gdk_ucs2_to_utf8): New function,
788 converts from a wchar_t string to UTF-8.
789 (_gdk_utf8_to_ucs2): Rename from _gdk_win32_nmbstowchar_ts.
790 (_gdk_utf8_to_wcs): Rename from gdk_nmbstowchar_ts.
792 * gdk/win32/gdkevents-win32.c (build_keypress_event): Use
795 * gdk/win32/gdkselection-win32.c: Remove some unnecessary logging.
797 * gdk/win32/gdkdnd-win32.c: Plug memory leaks, the
798 gdk_drag_context_ref() was called unnecessarily in a couple of
799 places, meaning drag contexts were never freed. The same memory
800 leaks seem to be present in gdk/linux-fb/gdkselection-fb.c, BTW.
802 (gdk_drop_reply): For WIN32_DROPFILES drops, free the temporarily
805 * gdk/win32/gdkselection-win32.c: Clarify the use of the
806 sel_prop_table. Now it is used only for storing the GDK_SELECTION
809 The file names dropped with WM_DROPFILES -style DND is stored
810 temporarily (between the drop and the target picking them up) in a
813 Have a separate hash table to map selection atoms to owner
814 windows. This used to be quite mixed up.
816 (_gdk_dropfiles_store): New function, to store the dropped file
817 list for the drop target to possibly fetch, and clear it
818 afterwards, from gdk_drop_reply().
820 (gdk_selection_owner_get): Much simplified now.
822 2002-01-09 jacob berkman <jacob@ximian.com>
824 * gtk/gtklayout.c (gtk_layout_style_set): set the background of
825 our bin window also (fixes #58957)
827 Wed Jan 9 19:10:07 2002 Jonathan Blandford <jrb@redhat.com>
829 * gtk/gtktreeselection.c
830 (_gtk_tree_selection_internal_select_node): Now we test we can
831 unselect nodes before selecting new ones.
832 (gtk_tree_selection_real_select_node): be careful comparing booleans.
834 Wed Jan 9 21:31:44 2002 Kristian Rietveld <kris@gtk.org>
836 * gtk/gtkliststore.c (gtk_list_store_sort): pass NULL to
837 gtk_tree_model_rows_reordered and not an iter with user_data
838 set to NULL (which is an invalid liststore iter, so
839 iter_n_children failed, etc)
841 2002-01-09 Sven Neumann <sven@gimp.org>
843 * tests/prop-editor.c: declared internal functions static.
845 Wed Jan 9 11:13:12 2002 Owen Taylor <otaylor@redhat.com>
847 * gtk/gtkmenuitem.c (_gtk_menu_item_refresh_accel_path):
848 Fix problem with menus without accel groups, such as the
849 menus for option menus.
851 * gtk/gtkpaned.c (gtk_paned_expose): Only conditionalize
852 drawing of handle on whether both children are visible,
853 not the drawing of the other child!. (#68325, Diego Gonzalez)
855 Wed Jan 9 10:20:16 2002 Owen Taylor <otaylor@redhat.com>
857 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkgc-c11.c: Check for
858 RENDER before trying to use it... XRenderFindFormat() prints
859 warnings if called when extension isn't present.
861 Wed Jan 9 15:20:40 2002 Tim Janik <timj@gtk.org>
863 * gtk/gtkmenuitem.c (gtk_menu_item_parent_set): update the accel
864 path upon parent changes.
866 Wed Jan 9 13:20:14 2002 Tim Janik <timj@gtk.org>
868 * gtk/gtkviewport.c (gtk_viewport_size_allocate): small but important
869 fix to force vadjustments at size_alocate time from Xavier Ordoquy
870 <mcarkan@users.sourceforge.net>.
872 Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org>
874 * gtk/gtklayout.c (gtk_layout_get_property):
875 * gtk/gtkspinbutton.c (gtk_spin_button_get_property):
876 * gtk/gtktreeview.c (gtk_tree_view_get_property):
877 * gtk/gtkwidget.c (gtk_widget_get_property):
878 * gtk/gtkfontsel.c (gtk_font_selection_get_property):
879 * gtk/gtkrange.c (gtk_range_get_property):
880 * gtk/gtkviewport.c (gtk_viewport_get_property):
881 * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a
882 possible NULL pointer.
884 2002-01-08 Mike Kestner <mkestner@speakeasy.net>
886 * gtk/gtkcelleditable.h : Use G_TYPE_INSTANCE_GET_INTERFACE.
887 * gtk/gtktreednd.h : ditto.
888 * gtk/gtktreemodel.h : ditto.
889 * gtk/gtktreesortable.h : ditto.
890 * gtk/gtkwidget.h : Don't reference incomplete _GdkRectangle type.
892 2002-01-08 Matthias Clasen <matthiasc@poet.de>
894 * gtk/gtkplug.c, gtk/gtksocket.c: Speak of window IDs rather
895 than XIDs in the docs.
897 * gtk/gtkclipboard.c (gtk_clipboard_clear): Fix docs.
899 Tue Jan 8 18:39:23 2002 Jonathan Blandford <jrb@redhat.com>
901 * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): wow!
902 Am I a moron or what 0 < 1 is not equivalent to strcmp ("a", "b")
904 Tue Jan 8 18:04:01 2002 Owen Taylor <otaylor@redhat.com>
906 * gtk/gtktoolbar.c (gtk_toolbar_set_icon_size):
907 Handle TOGGLE/RADIOBUTTON as well. (#68201,
910 * gtk/gtktoolbar.c (get_first_child): Fix stupid
911 bug, just introduced.
913 Tue Jan 8 15:53:28 2002 Owen Taylor <otaylor@redhat.com>
915 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix coordinate
916 translations, once and for all.
918 * gtk/gtktextbuffer.c (paste_from_buffer): Free
919 the ClipboardRequest structure. (#66198, HideToshi
922 2002-01-08 jacob berkman <jacob@ximian.com>
924 * gtk/gtklayout.c (gtk_layout_move_internal): queue a resize on
925 the child rather than the layout. see bug #68263
927 Tue Jan 8 14:51:19 2002 Owen Taylor <otaylor@redhat.com>
929 * gtk/gtkpaned.c (gtk_paned_expose): Don't draw
930 the handle if we aren't showing both children.
931 (#68135, Diego Gonzalez)
933 Tue Jan 8 14:45:43 2002 Owen Taylor <otaylor@redhat.com>
935 * gtk/gtkwidget.c (gtk_widget_add_events): Fix
936 leak of result of gtk_container_get_children().
938 Tue Jan 8 14:42:19 2002 Owen Taylor <otaylor@redhat.com>
940 * gtk/gtktoolbar.c: Fix leaks of results of
941 gtk_container_get_children(). (#68199, Damon Chaplin)
943 Tue Jan 8 14:19:43 2002 Owen Taylor <otaylor@redhat.com>
945 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate):
946 Fix problem where child->requisition was accessed
947 directly instead of calling get_child_requisition()
948 (#68199, Damon Chaplin)
950 2001-01-08 James Henstridge <james@daa.com.au>
952 * gtk/gtkstyle.c: add trailing */ on doc comment.
954 Mon Jan 7 22:19:32 2002 Owen Taylor <otaylor@redhat.com>
956 * gdk/x11/gdkdrawable-x11.c (draw_with_pixmaps): Fix a
957 problem where were the offset into the image was passed
958 into convert_to_format() wrong.
960 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Call
961 gdk_x11_drawable_update_picture_clip () before using
962 the picture; allow update_picture_clip() to take a NULL gc
965 2002-01-07 Matthias Clasen <matthiasc@poet.de>
967 * gtk/gtksocket.c (gtk_socket_get_id): Doc typo fix. (#68172)
969 * gtk/gtktreemodel.c (gtk_tree_path_is_descendant): Fix docs.
971 * gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Document.
973 * gtk/gtkwindow.c (gtk_window_remove_accel_group): Fix docs.
975 * gtk/gtkrc.c (gtk_rc_get_style_by_paths),
976 gtk/gtkwidget.c (gtk_widget_get_toplevel,
977 gtk_widget_push_composite_child), gtk/gtkdialog.c
978 (gtk_dialog_new_with_buttons, gtk_dialog_run): Keep gtk-doc
979 from messing up the indentation of inline examples.
981 * gtk/gtkmain.c, gtk/gtkrc.c: Consistently call g_getenv()
984 * gtk/gtktreemodel.c, gtk/gtkaccelgroup.c, gtk/gtkclipboard.c,
985 gtk/gtkdnd.c, gtk/gtkiconfactory.c, gtk/gtkrc.c,
986 gtk/gtkstyle.c, gtk/gtkselection.c: Doc fixes.
988 * gtk/gtkaccelmap.c (gtk_accel_map_add_filter,
989 gtk_accel_map_foreach_unfiltered, gtk_accel_map_load_scanner):
992 2002-01-07 Anders Carlsson <andersca@gnu.org>
994 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
995 unused pixels and rowstride variables.
996 (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
998 Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
1000 * gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset
1001 the pointer by x/y_offset into the new window when we found
1002 the drag destination.
1004 * gtk/gtkaccelmap.c (internal_change_entry): fix return code
1005 for simulation when the entry already contains the required
1008 2002-01-06 Matthias Clasen <matthiasc@poet.de>
1010 * docs/debugging.txt: Replace GTK_NO_CHECK_CASTS by
1011 G_DISABLE_CAST_CHECKS.
1013 * gtk/gtkaccelgroup.c (gtk_accel_group_from_accel_closure,
1014 gtk_accel_group_query, gtk_accel_group_find,
1015 gtk_accel_groups_from_object): Document.
1017 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_closure): Document.
1019 2002-01-04 Hans Breuer <hans@breuer.org>
1021 * gdk/gdkdraw.c gdk/gdkpixbuf-drawable.c :
1022 need to cast image->mem away from void* to avoid
1023 'error C2036: 'void *' : unknown size'. Doing pointer
1024 arithmetics on void pointers is a GCCism afaik.
1026 * gdk/gdkpixbuf-render.c : #include "gdkinternals.h" for
1029 * gdk/makefile.msc gdk/win32/makefile.msc
1030 gdk/gtk/makefile.msc.in : use -FI msvc_recommended_pragmas.h
1032 * gdk/win32/gdkdrawable-win32.c : use _gkd_win32_copy_to_image
1033 and take care of image->visual possibly NULL.
1035 * gdk/win32/gdkimage-win32.c : implement _gdk_image_new_for_depth(),
1036 _gdk_win32_copy_to_image() and _gdk_windowing_bits_for_depth().
1037 Again take care of image->visual possibly NULL.
1039 * gdk/win32/gdkprivate-win32.h : declare _gdk_win32_copy_to_image()
1041 * gdk/win32/gdkevents-win32.c : use gdk_drawable_get_colormap
1042 instead of private field access
1044 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) : adapt
1045 colormap setting to the gdk-X behaviour
1047 2001-01-04 Matthias Clasen <matthiasc@poet.de>
1049 * gtk/gtkwidget.c: Documentation additions.
1051 2001-01-04 Matthias Clasen <matthiasc@poet.de>
1053 * gtk/gtkobject.c (gtk_object_dispose): Fix a comment.
1055 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
1057 2002-01-04 Havoc Pennington <hp@pobox.com>
1059 * gtk/gtkwidget.c (gtk_widget_set_sensitive): tiny docs change
1061 Fri Jan 4 13:05:15 2002 Owen Taylor <otaylor@redhat.com>
1063 * gtk/gtkdnd.c (gtk_drag_find_widget): At least
1064 don't infinite loop if the widget and window heirarchies
1067 * gtk/gtkdnd.c (gtk_drag_find_widget): Handle changes
1068 in heirarchy in ::drag_motion, ::drag_drop callbacks
1069 by referencing child widget lists. (Patch from Tim)
1071 * gtk/gtkdnd.c (gtk_drag_find_widget): Fix a problem
1072 with widgets where window.x != widget->allocation.x
1074 Fri Jan 4 01:36:48 2002 Owen Taylor <otaylor@redhat.com>
1076 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Optimize
1077 a little bit. (More for consistency than because it
1078 makes much of a difference.)
1080 Thu Jan 3 22:18:15 2002 Owen Taylor <otaylor@redhat.com>
1082 * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkprivate-x11.h
1083 (_gdk_x11_have_render): Private function to tell if we have RENDER
1086 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Return
1087 None if we don't have RENDER extension.
1089 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Don't
1090 use Xft unless we have render extension.
1092 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
1093 Handle missing render extension.
1095 * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkpixmap.c gdk/gdkwindow.c
1096 gdk/gdkinternals.h: Add a private copy_to_image() virtual function
1097 to the GdkDrawable vtable that extends get_image() to allow
1098 copying onto existing images. Make the default implementation of
1099 get_image() use this so that backends don't have to implement
1100 both. Add private wrapper _gdk_drawable_copy_to_image().
1102 * gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.c
1103 gdk/x11/gdkdrawable-x11.c (_gdk_x11_copy_to_image): Implement
1104 copy_to_image() semantics, speed up by using ShmPixmaps and
1105 XCopyArea when possible, XFlush() after ungrabbing the server,
1106 generally redo the logic once again.
1108 * gdk/gdkinternals.h gdk/x11/gdkimage-x11.c
1109 _gdk_windowing_bits_per_depth(): Function to convert from depth to
1110 bits-per-pixel. (We assume only one bpp per depth - X requires
1113 * gdk/gdkinternals.h gdk/gdkrgb.c gdk/gdkimage.c: Move the GdkRGB
1114 scratch image code into a generic _gdk_image_get_scratch() chunk
1115 of code that we can use other places we need scratch images.
1117 * gdk/gdkimage.c gdk/x11/gdkimage.c gdk/gdkinternals.h:
1118 Add _gdk_image_new_for_depth() as the backend
1119 to _gdk_image_new() to allowing creating images with
1120 a depth and no visual.
1122 * gdk/gdkpixbuf-drawable.c: Fix so that getting
1123 parts of images not at 0,0 actually works.
1125 * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
1126 gdk/gdkwindow.c gdk/gdkpixmap.c gdk/gdkpixbuf-render.c:
1127 - Add a new GdkDrawableClass vfunc _draw_pixbuf, and
1128 _gdk_draw_pixbuf() [ will be made public later ], to allow
1129 backends to accelerate drawing pixbufs.
1130 - Move the implementation of gdk_pixbuf_render_to_drawable_alpha()
1131 to be the default implementation.
1132 - Update docs for gdk_pixbuf_render_to_drawable_alpha().
1133 - Optimize the default implementation by using
1134 _gdk_image_copy_to_pixmap() and scratch shared images, and
1135 special casing the compositing.
1137 * gdk/x11/gdkdrawable-x11.c: Accelerate _gdk_draw_pixbuf()
1138 with alpha using the RENDER extension.
1140 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable):
1141 Optimize by _gdk_image_copy_to_pixmap() and scratch images.
1143 * tests/testrgb.c: Add test for speed of alpha composition,
1144 reduce the number of iterations since alpha composition
1147 * gdk/x11/gdkimage-x11.c gdk/gdkprivate-x11.h (_gdk_x11_image_get_shm_pixmap):
1148 Private function to get a ShmPixmap for an image, if possible.
1150 2002-01-04 Anders Carlsson <andersca@gnu.org>
1152 * tests/testtreesort.c: Add my cool list of integers.
1154 Thu Dec 27 18:12:55 2001 Owen Taylor <otaylor@redhat.com>
1156 * gdk/x11/gdkproperty-x11.c (gdk_property_get): Fix
1157 problem where retrieved atoms weren't properly returned.
1159 2002-01-03 Anders Carlsson <andersca@gnu.org>
1161 * gtk/gtktextview.c (gtk_text_view_key_press_event): When
1162 tab is pressed and the text view isn't editable,
1163 move the focus instead.
1165 * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if
1168 * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list.
1170 * gtk/gtkcolorsel.c (get_focus_gc): Free dash list.
1172 * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask
1175 * gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
1176 _gtk_tree_view_queue_draw_node.
1177 (gtk_tree_view_row_has_child_toggled): Only redraw one node.
1179 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func):
1180 sort_column_id can be 0.
1182 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
1183 Only redraw one the node being selected.
1185 * gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
1187 Wed Jan 2 23:09:06 2002 Tim Janik <timj@gtk.org>
1189 * gtk/gtkcontainer.c (_gtk_container_queue_resize): don't ignore
1190 realized but visible && !mapped resize containers (which is
1191 possible with unset CHILD_VISIBLE now).
1193 2002-01-02 jacob berkman <jacob@ximian.com>
1195 * gtk/Makefile.am (LDFLAGS): automake still doesn't support
1196 libsomething_la_LDFLAGS, so fix the build again
1198 2002-01-01 Havoc Pennington <hp@pobox.com>
1200 * gtk/gtktextview.c (gtk_text_view_expose_event): propagate
1201 exposes to no window children not in the buffer window.
1202 (gtk_text_view_class_init): add move_focus bindings for Ctrl-Tab
1203 - is this the right way to do it?
1204 (gtk_text_view_focus): add focus method, just chains up for now,
1205 I'm not sure why the GtkContainer implementation doesn't work
1207 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): fill
1208 in the text line for the child anchor segment
1210 * tests/testtext.c (do_add_focus_children): add another test
1211 example (to put focusable buttons into the widget)
1213 2002-01-01 Havoc Pennington <hp@pobox.com>
1215 * docs/README.linux-fb: note that this file is obsolete
1217 * docs/Changes-2.0.txt, docs/Changes-1.2.txt: Add notes to these
1218 files that they should not be edited and look in the reference
1219 manual instead. Probably these files should just be replaced by
1220 the note, and their main contents deleted.
1222 * gtk/gtktextview.c: docs
1224 * gtk/gtktextmark.c: docs
1226 * gtk/gtktextchild.c: docs
1228 * gtk/gtktextbuffer.c: docs stuff
1230 * gtk/gtkclipboard.c (gtk_clipboard_get): fool with docs to maybe
1231 give people more leads in sorting out PRIMARY vs. CLIPBOARD
1233 2002-01-01 Tor Lillqvist <tml@iki.fi>
1235 * demos/Makefile.am (test-inline-pixbufs.h): Append EXEEXT to
1236 ../gdk-pixbuf/gdk-pixbuf-csource.
1238 2001-12-31 Tor Lillqvist <tml@iki.fi>
1240 * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Improved error
1242 (gdk_win32_hdc_get,gdk_win32_hdc_release): Silence gcc -Wall.
1244 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image): Silence gcc
1245 -Wall. Use GDK_IS_PIXMAP_IMPL_WIN32 instead of GDK_IS_PIXMAP in
1248 * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Silence gcc
1251 * gtk/Makefile.am (libgtk_win32_1_3_la_LDFLAGS): Add -lwsock32.
1253 2002-01-01 Havoc Pennington <hp@pobox.com>
1255 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): doc
1258 2002-01-01 Havoc Pennington <hp@pobox.com>
1260 * gtk/gtktextview.c (changed_handler): Replace call to
1261 gtk_widget_size_request() that expected to actually compute the
1262 request with a direct use of widget_class->size_request, so we get
1263 our size request right; fixes remaining part of #63065 reported by
1266 2001-12-31 Havoc Pennington <hp@pobox.com>
1268 * tests/testtext.c (do_insert_and_scroll): remove backward_char
1269 since we no longer have bogus newline
1270 (dialog_response_callback): remove another backward_char horkage,
1271 reported by Matthias Clasen #63065
1273 2001-12-31 Havoc Pennington <hp@pobox.com>
1275 * gtk/gtktextbtree.c (gtk_text_btree_node_view_check_consistency):
1276 fix an incorrect assertion that the "valid" flag is always correct
1277 in a node and add explanatory comment. This keeps me from
1278 reproducing #59101, but I'm remembering that 59101 was actually
1279 about incorrect pixel totals, so I'm not sure 59101 is actually
1280 fixed. May just have stopped happening due to some change in
1283 2001-12-31 Havoc Pennington <hp@pobox.com>
1285 * gtk/gtktextview.c (gtk_text_view_start_selection_drag): extend
1286 selection if shift is down, bug #50939
1287 (gtk_text_view_button_press_event): add double/triple click
1288 selection to the current selection if shift is down
1290 2001-12-31 Havoc Pennington <hp@pobox.com>
1292 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index): fix
1293 to use ensure_byte_offsets not ensure_char_offsets, patch
1294 from Padraig O'Briain bug #67356
1296 2001-12-30 Havoc Pennington <hp@pobox.com>
1298 * gtk/gtkdialog.h (GtkDialogFlags): fix GtkDialogFlags to have
1299 the right values, reported by Jeff Franks
1301 2001-12-30 Matthias Clasen <matthiasc@poet.de>
1303 * gtk/gtkwindow.c, gtk/gtkimcontextsimple.c: Minor documentation tweaks.
1305 2001-12-28 Matthias Clasen <matthiasc@poet.de>
1307 * gdk/x11/gdkproperty-x11.c, gdk/x11/gdkselection-x11.c:
1308 Minor documentation tweaks.
1310 2001-12-28 Tor Lillqvist <tml@iki.fi>
1312 * gdk/win32/gdkfont-win32.c: Use G_N_ELEMENTS().
1313 (unicode_classify): Don't return -1 on encountering an
1314 unclassified character, but play it safe and return U_BASIC_LATIN.
1316 Thu Dec 27 16:05:30 2001 Owen Taylor <otaylor@redhat.com>
1318 * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation
1319 of misc->xpad/ypad consistent with GtkLabel. Do
1320 directional flipping when interpreting misc->xalign/yalign.
1321 Fix off-by-one error for negative x,y. (#67472, reported
1324 Thu Dec 27 15:45:41 2001 Owen Taylor <otaylor@redhat.com>
1326 * gtk/gtkwidget.c (gtk_widget_set_style_internal):
1327 Remove optimization that was causing problems because
1328 we called gtk_widget_size_request() before we called
1329 gtk_widget_queue_resize() so RESIZE_NEEDED was not
1330 set. Optimization shouldn't mattter now that we
1331 are smart about needlessly size requesting or allocating
1332 widgets. (#67598, reported by Jacob Berkman)
1334 Thu Dec 27 15:38:20 2001 Owen Taylor <otaylor@redhat.com>
1336 * gtk/gtkmenu.c (gtk_menu_stop_navigating_submenu_cb):
1337 Call gdk_window_get_pointer() on menu->bin_window not
1338 menu->window, so we get the correct window for the
1339 menu item. (#65213, Guillermo S. Romero)
1341 Thu Dec 27 15:13:44 2001 Owen Taylor <otaylor@redhat.com>
1343 * gtk/gtkmenu.c (gtk_menu_set_title): Allow unsetting
1344 the title by setting to NULL. Move docs inline.
1345 Update the title if the tearoff window already
1346 exists. Code cleanup. (Fixes #65190, reported by
1349 Thu Dec 27 14:04:22 2001 Owen Taylor <otaylor@redhat.com>
1351 * gtk/gtksocket.c (gtk_socket_key_press_event):
1352 gtk/gtkplug.c (gtk_plug_key_press_event): Don't do
1353 special handling of key presses unless we are doing
1354 iter-app embedding. (Fixes #67590, Anders Carlsson)
1356 Thu Dec 27 16:37:04 2001 Kristian Rietveld <kris@gtk.org>
1358 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
1359 (gtk_tree_model_sort_sort_level),
1360 (gtk_tree_model_sort_insert_value): fix a few places where
1361 I was confused between modelsort iters and other iters. This was
1362 really going to happen someday ;)
1364 Wed Dec 26 23:41:41 2001 Kristian Rietveld <kris@gtk.org>
1366 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
1367 we are unprelighted before reordering
1369 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
1370 need to break out of the for loop, not return (this fixed
1371 the 'selection freeze' bug).
1373 * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
1374 be pretty stable now, though it still needs some more code
1377 Wed Dec 26 12:32:31 2001 Owen Taylor <otaylor@redhat.com>
1379 * docs/Changes-2.0.txt: Document the fact that
1380 gtk_paned_set_handle_size() has been removed.
1382 * gtk/gtkpaned.h Remove gtk_paned_handle_size() compat macro,
1383 since it pointed to gtk_paned_set_handle_size(), which
1384 was removed. (#66760, Matt Wilson)
1386 Wed Dec 26 12:28:24 2001 Owen Taylor <otaylor@redhat.com>
1388 * gtk/gtkdnd.c (gtk_drag_highlight): Connect
1389 gtk_drag_hightlight_expose _after_, so it works with
1390 widgets that paint there entire background. (#66735)
1392 Wed Dec 26 12:17:06 2001 Owen Taylor <otaylor@redhat.com>
1394 * gtk/gtkplug.c (gtk_plug_size_allocate): Assign the
1395 allocation to widget->allocation. (Fixes #67290,
1398 Wed Dec 26 11:49:01 2001 Owen Taylor <otaylor@redhat.com>
1400 (#67542, reported by Anders Carlsson)
1402 * gtk/gtkstyle.c (gtk_style_real_init_from_rc): Merge
1403 rc_style->font_desc with defaul style instead of replacing
1406 * gtk/gtkrc.c (gtk_rc_style_real_merge): Allow partial
1407 font descriptions in RC styles by calling
1408 pango_font_description_merge().
1410 2001-12-24 James Henstridge <james@daa.com.au>
1412 * gtk/gtkdialog.h (doc comment): s/<!>/<!-- -->/ to make the doc
1413 valid with both SGML and XML.
1415 Sat Dec 22 12:38:03 2001 Owen Taylor <otaylor@redhat.com>
1417 * configure.in: 1.3.12, interface, binary age 0.
1419 * configure.in: Require new versions of Glib, Pango, ATK.
1423 * configure.in: Make explicit what libtool we are executing.
1426 * gdk/gdkcolor.c gdk/gdkgc.c gdk/gdkwindow.c: Doc fixes.
1428 * gtk/gtkwidget.c (gtk_widget_[class]path) gtkrc.h : Fix
1429 parameter names for docs.
1431 Sat Dec 22 22:35:29 2001 Owen Taylor <otaylor@redhat.com>
1433 * gtk/gtkwindow.c (gtk_window_realize)
1434 gtk/gtkplug.c (gtk_plug_realize): Include GDK_KEY_RELEASE_MASK.
1436 * gtk/gtkentry.c (gtk_entry_key_release)
1437 gtk/gtktextview.c (gtk_text_view_key_release_event): Pass
1438 key release events to the input method.
1440 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress):
1441 Handle release of Control/Shift to end hex sequence.
1443 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
1444 Handle key releases as well as presses.
1446 2001-12-21 Matthias Clasen <matthiasc@poet.de>
1448 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): Trivial doc adjustment.
1450 * gtk/gtklabel.c (gtk_label_new_with_mnemonic),
1451 gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise
1452 documentation about underscores and mnemonics. (#66380)
1454 * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix
1455 cyclic reference in docs.
1457 * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation
1458 of default value. (#65402)
1460 * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale):
1463 2001-12-20 Anders Carlsson <andersca@gnu.org>
1465 * gtk/gtktreeview.c (gtk_tree_view_realize): Don't call
1468 Tue Dec 18 16:15:55 2001 Owen Taylor <otaylor@redhat.com>
1470 * gdk/gdkgc.h: Explicitely deprecate gdk_gc_set_font()
1471 (reported by Jeff Franks.)
1473 Tue Dec 18 16:07:28 2001 Owen Taylor <otaylor@redhat.com>
1475 * gdk/gdkkeys.h (struct _GdkKeymapClass): Fix
1476 prototype for direction_changed. (Reported by
1479 2001-12-18 Padraig O'Briain <padraig.obriain@sun.com>
1481 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column):
1482 Fix typo (list->data becomes list->next)
1484 2001-12-06 Havoc Pennington <hp@redhat.com>
1486 Add Unicode control char menu, based on patch from Dov.
1489 * gtk/gtkentry.c (gtk_entry_commit_cb): share code via
1490 gtk_entry_enter_text
1491 (gtk_entry_enter_text): function to do "typing in text"
1492 (popup_targets_received): add the Unicode menu items
1494 * gtk/gtktextview.c (popup_targets_received): add missing mnemonic
1495 on Input Methods item, and add the unicode menu items.
1497 * gtk/gtktextutil.h, gtk/gtktextutil.c: private utilities to be
1498 used in GtkEntry and GtkTextView - may become public later.
1500 2001-12-16 Kjartan Maraas <kmaraas@gnome.org>
1502 * gtk/gtkprogressbar.c: Fix a typo.
1503 * gtk/gtkpaned.c: Fix a typo.
1505 2001-12-15 Darin Adler <darin@bentspoon.com>
1509 * gdk/x11/gdkproperty-x11.c: (gdk_property_get): Fix wrong type in
1510 g_new -- bug if sizeof (GtkAtom) != sizeof (GtkAtom *).
1511 * gdk/x11/gdkwindow-x11.c: (create_moveresize_window): FALSE -> NULL
1512 * gtk/gtkaccellabel.c: (gtk_accel_label_refetch): Remove unused local.
1513 * gtk/gtklistitem.c: (gtk_list_item_expose): Remove unused local.
1514 * gtk/gtktextiter.c: (_gtk_text_iter_backward_indexable_segment):
1515 Restructure loop to get rid of uninitialized variable warning. Also
1516 gives a tiny efficiency gain.
1518 2001-12-15 Murray Cumming <murrayc@usa.net>
1520 * Fixed first arg type of GtkScale's "format_value" signal's
1523 2001-12-14 Vitaly Tishkov tvv@sparc.spb.su
1524 docs/reference/gtk/tmpl/gtkcelleditable.sgml
1525 gtkcelleditable -> GtkCellEditable
1526 docs/reference/gtk/tmpl/gtktreesortable.sgml
1527 gtktreesortable -> GtkTreeSortable
1529 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
1531 * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c,
1532 demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref
1533 and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref
1536 Thu Dec 13 22:02:41 2001 Kristian Rietveld <kris@gtk.org>
1538 * gtk/gtktreeview.c (validate_visible_area): free path
1541 2001-12-13 Matthias Clasen <matthiasc@poet.de>
1543 * gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
1545 Thu Dec 13 20:37:27 2001 Kristian Rietveld <kris@gtk.org>
1547 * gtk/gtktreeview.c (gtk_tree_view_button_press): do not try
1548 to find the clicked node in the tree when tree == NULL
1550 2001-12-13 Anders Carlsson <andersca@gnu.org>
1552 * gtk/gtktreeview.c (gtk_tree_view_button_press): Compare
1553 event->state with the default mod mask.
1555 2001-12-12 jacob berkman <jacob@ximian.com>
1557 * gtk/gtk*.h (GTK_IS_*_CLASS): s/obj/klass/ where appropriate
1559 Wed Dec 12 17:22:45 2001 Owen Taylor <otaylor@redhat.com>
1561 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave):
1562 Reset the existing slave before removing it to give
1563 it a chance to commit and emit "preedit_changed"
1564 in case there was still a preedit string.
1566 2001-12-12 Matthias Clasen <matthiasc@poet.de>
1568 * gtk/gtktextlayout.c: Typo fixes
1569 * gtk/gtkwindow.c (gtk_window_set_position): Typo fix. (#66746)
1571 * gtk/gtkwidget.c (gtk_widget_send_expose, gtk_widget_get_toplevel,
1572 gtk_widget_get_default_direction): Doc fixes. (#66727, #66737, #66744)
1574 * gtk/gtkstyle.h (GTK_STYLE_NUM_STYLECOLORS): Remove. (#66467)
1576 Wed Dec 12 16:43:10 2001 Jonathan Blandford <jrb@redhat.com>
1578 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Remove
1579 validate_rows_timer in unrealize. Reported by Matthew Wilson.
1581 Wed Dec 12 16:18:26 2001 Owen Taylor <otaylor@redhat.com>
1583 * gtk/gtkmenu.c (gtk_menu_realize): Remove support for
1584 "prepainting" the menu before realizing other than
1585 via gtk_style_set_background() - this was broken when
1586 we added menu scroll support.
1588 * gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
1589 window in the expose event -- fixes problem with border
1590 flashing during scrolling.
1592 Wed Dec 12 15:11:49 2001 Owen Taylor <otaylor@redhat.com>
1594 * gtk/gtksettings.c (gtk_settings_get_property): Support
1595 using names/nicks for the gdk_settings values for enum valued
1596 types. (#57678, reported by Anders Carlsson)
1598 Wed Dec 12 15:01:33 2001 Jonathan Blandford <jrb@redhat.com>
1600 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync
1601 with insert_page_menu. Code duplication is bad.
1603 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the
1604 wrong fix yesterday.
1606 Wed Dec 12 14:27:30 2001 Owen Taylor <otaylor@redhat.com>
1608 * gtk/gtkmenubar.c (window_key_press_handler): Fix check for
1611 2001-12-12 James Henstridge <james@daa.com.au>
1613 * gtk/gtkmenu.c (gtk_menu_key_press): check GTK_MENU_ITEM
1614 (menu_item)->accel_path first when looking up the accel path.
1616 Tue Dec 11 19:18:21 2001 Owen Taylor <otaylor@redhat.com>
1618 * tests/testgtk.c (layout_expose_handler): Only draw
1619 for events on the bin window.
1621 Tue Dec 11 18:55:16 2001 Jonathan Blandford <jrb@redhat.com>
1623 * gtk/gtklabel.c (gtk_label_mnemonic_activate): Small fix to let
1624 mnemonics work with notebooks.
1626 Tue Dec 11 15:25:06 2001 Jonathan Blandford <jrb@redhat.com>
1628 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): Change
1629 bin_window to be located at y=TREE_VIEW_HEADER_HEIGHT(tree_view).
1630 Makes some flicker while scrolling go away.
1632 2001-12-11 Michael Natterer <mitch@gimp.org>
1634 * demos/testpixbuf-save.c: added new keyboard shortcut 'a' which
1635 adds alpha to the pixbuf; re-load the saved pixbuf and
1636 pixel-by-pixel compare it with the original one.
1638 Tue Dec 11 15:39:08 2001 Soeren Sandmann <sandmann@daimi.au.dk>
1640 * ChangeLog: Fix wrong ChangeLog entry
1641 * gtk/gtkstyle.c (gtk_default_draw_shadow_gap): Fix drawing of top
1644 2001-12-10 jacob berkman <jacob@ximian.com>
1646 * gdk/x11/gdkinput-xfree.c (_gdk_input_grab_pointer):
1647 * gdk/x11/gdkmain-x11.c (gdk_pointer_grab):
1648 (gdk_keyboard_grab): do not grab things if the nograb debug flag
1651 * gdk/gdkinternals.h:
1652 * gdk/gdk.c: add nograbs debug flag to disable grabs of the
1655 Mon Dec 10 19:42:29 2001 Jonathan Blandford <jrb@redhat.com>
1657 * gtk/gtktreeview.c (validate_rows_handler): stupid bug where I
1658 didn't reset the timer.
1660 2001-12-10 Matthias Clasen <matthiasc@poet.de>
1662 * gtk/gtkcontainer.c (gtk_container_child_type): Close comment.
1664 2001-12-09 Matthias Clasen <matthiasc@poet.de>
1666 * gtk/gtkviewport.c: Add docs.
1668 Mon Dec 10 16:21:38 2001 Jonathan Blandford <jrb@redhat.com>
1670 * gtk/gtkrbtree.c (_fixup_parity): New function to fixup parity.
1671 RBTree corruption bug--
1673 2001-12-10 Anders Carlsson <andersca@gnu.org>
1675 * gtk/gtktreeview.c (gtk_tree_view_remove_widget): Return
1676 if edited_column is NULL, also grab focus before removing
1679 Sun Dec 09 15:06:51 2001 George Lebl <jirka@5z.com>
1681 * gtk/gtkrange.c (gtk_range_calc_layout): check for 0 value on the
1682 denominator in the horizontal case just like we do in the vertical
1683 case (why I didn't notice that there were two cases the first time
1684 around is beyond me:). Also fix indentation in the vertical case.
1686 2001-12-09 Anders Carlsson <andersca@gnu.org>
1688 * gdk/x11/gdkevents-x11.c: Update xsettings name.
1690 * gtk/gtkdnd.c (gtk_drag_check_threshold): Use the
1691 gtk-dnd-drag-threshold GtkSetting.
1693 * gtk/gtksettings.c (gtk_settings_class_init): Add
1694 setting for dnd drag threshold.
1696 2001-12-09 Matthias Clasen <matthiasc@poet.de>
1698 * gtk/gtkcontainer.c: Add docs.
1700 2001-12-08 Matthias Clasen <matthiasc@poet.de>
1702 * gtk/gtkwidget.c: Doc markup fix.
1704 * gtk/gtktreeviewcolumn.c: Markup fixes. (#66447)
1706 * gtk/gtktreestore.c: Typo fixes. (#66445)
1708 * gtk/gtkaccelgroup.c: Misc doc markup. (#66425)
1710 * gtk/gtkclipboard.c (gtk_clipboard_get_owner): Fix reference
1711 to gtk_clipboard_set_with_owner(). (#66424)
1713 Sat Dec 8 16:12:10 2001 Christopher Blizzard <blizzard@redhat.com>
1715 * gdk/gdk.c (gdk_init_check): Fallback to setting the prgname to
1716 "<unknown>" if someone doesn't pass in a valid argc. (Patch from
1717 Fabrice Bellet <fabrice@gnu.org>, #54127).
1719 Sat Dec 8 10:04:54 2001 Jonathan Blandford <jrb@redhat.com>
1721 * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew): Add debug spew to lots
1722 of places, so that people with crashy trees can just run their
1723 program with GTK_DEBUG=TREE.
1725 Sat Dec 8 20:57:24 2001 Kristian Rietveld <kristian@planet.nl>
1727 * gtk/gtkliststore.c (gtk_list_store_remove): nuke the stamp++,
1730 2001-12-08 Anders Carlsson <andersca@gnu.org>
1732 * tests/testgtk.c (layout_expose_handler): Don't return TRUE
1733 since then the default GtkLayout expose handler won't be called.
1735 Fri Dec 7 23:42:50 2001 Jonathan Blandford <jrb@redhat.com>
1737 * gtk/gtktreeview.c (validate_rows_handler): remove
1740 * gtk/gtktreeview.c (validate_visible_area): Patch from Manish
1741 Singh <yosh@gimp.org> to fix bug when rendering Tree with an
1744 Fri Dec 7 20:06:14 2001 Jonathan Blandford <jrb@redhat.com>
1746 * gtk/gtktreeview.c (validate_visible_area): get logic right,
1749 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): fix bug where
1750 removing a node ended up with a corrupt tree. Really really nasty
1752 (_gtk_rbtree_debug_spew): new debug helper function
1753 (_fixup_validation): new inline function to clean up code
1756 Fri Dec 7 19:34:51 2001 Owen Taylor <otaylor@redhat.com>
1758 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
1761 2001-12-07 Matthias Clasen <matthiasc@poet.de>
1763 * gtk/gtkstyle.h: Typo fixes.
1765 * gtk/gtkstyle.c, gtk/gtktoolbar.c: Add docs.
1767 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Fix docs.
1769 Fri Dec 7 16:05:22 2001 Owen Taylor <otaylor@redhat.com>
1771 * modules/input/gtkimcontextxim.c: Display the XIM
1772 status callbacks with a popup window. (Patch from
1773 HideToshi Tajima, #50628, somewhat modified.)
1775 Fri Dec 7 12:07:15 2001 Tim Janik <timj@gtk.org>
1777 * gtk/Makefile.am: each source generation rule needs to use its own
1778 temporary file, to avoid clashes for parallel builds. fixed rules
1779 for gtkmarshalers.h and gtkmarshalers.c to use their own temp files.
1781 2001-12-07 Havoc Pennington <hp@pobox.com>
1783 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new): fix up my list of
1784 "cursors that are actually useful" in gdk_cursor_new() docs
1786 Thu Dec 6 23:09:21 2001 Owen Taylor <otaylor@redhat.com>
1788 * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Fix errors
1789 in computing the size of the second child.
1791 Thu Dec 6 16:50:17 2001 Owen Taylor <otaylor@redhat.com>
1793 * gtk/gtkrange.c: Make button 1 clicks on the trough
1794 do pages, button 3 steps. (Patch from Hans Breuer
1797 2001-12-06 Matthias Clasen <matthiasc@poet.de>
1799 * gtk/gtklabel.c: Fix docs. (#66383)
1801 * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs.
1804 * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin),
1805 gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208)
1807 * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy):
1808 Don't emit a g_warning() about being deprecated. (#66208)
1810 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs.
1812 * gtk/gtkcontainer.c: Doc fixes.
1814 * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes.
1816 * gtk/gtkstyle.c (gtk_style_attach): Add docs.
1818 2001-12-05 Sven Neumann <sven@gimp.org>
1820 * gtk/gtkwidget.c (gtk_widget_reset_shapes): close comment.
1822 * gtk/queryimmodules.c: g_dir_read_name() returns const.
1824 Tue Dec 4 21:46:13 2001 HideToshi Tajima <hidetoshi.tajima@sun.com>
1826 * gtk/gtktreeprivate.h: restore the else case of #ifdef __GNUC__
1829 2001-12-04 Manish Singh <yosh@gimp.org>
1832 * gtk/queryimmodules.c: g_module_symbol takes a gpointer *, not just
1835 * gtk/gtkwidget.c (gtk_widget_push_composite_child): minor cosmetic
1838 * demos/gtk-demo/item_factory.c: add GTK_WINDOW() cast
1840 2001-12-04 Havoc Pennington <hp@redhat.com>
1842 * gtk/gtktextbtree.c (gtk_text_btree_remove_tag_info): remove
1843 g_assert_not_reached() that was bogus, since we demand-create the
1844 tag info. reported by Chris Phelps
1846 Jump through assorted hoops to fix bug from Chris Phelps where
1847 removing tags from the table resulted in btree trying to
1850 * gtk/gtktextbuffer.c: set up mechanics of adding/removing
1851 ourselves to the tag table
1853 * gtk/gtktexttagtable.c (_gtk_text_tag_table_add_buffer)
1854 (_gtk_text_tag_table_remove_buffer): private cruft to
1855 let us notify buffer of disappearing tags
1857 * gtk/gtktexttag.h: remove BTreeNode typedef from this public
1858 header, put it in tagprivate
1860 * gtk/gtktextbtree.c (_gtk_text_btree_new): don't connect to
1861 tag_removed; it's emitted too late.
1862 (_gtk_text_btree_notify_will_remove_tag): rename tag_remove_cb to
1865 Padding for ABI-compat expansion
1867 * gtk/gtktexttag.h (struct _GtkTextAttributes): pad this
1868 (struct _GtkTextAppearance): one pad in here too
1870 * gtk/gtktextlayout.h (struct _GtkTextLayoutClass): padding here
1872 * gtk/gtktextview.h (struct _GtkTextViewClass): more padding,
1873 since action signals etc. seem pretty likely
1875 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): padding
1877 * gtk/gtktexttag.h (struct _GtkTextTagClass): padding
1879 * gtk/gtktexttagtable.h (struct _GtkTextTagTableClass): padding
1881 2001-12-04 Matthias Clasen <matthiasc@poet.de>
1883 * gdk/gdkcolor.h (gdk_colormap_change): Deprecate. (#65851)
1885 * gdk/gdktypes.h (GdkKeyInfo): Remove. (#66025)
1887 * gtk/gtkwindow.c, gtk/gtkwidget.c: Add docs, markup fixes.
1889 Tue Dec 4 18:51:44 2001 Jonathan Blandford <jrb@redhat.com>
1891 * gtk/gtktreeviewcolumn.h: remove gtk_tree_view_column_cell_event,
1894 Tue Dec 4 18:38:35 2001 Jonathan Blandford <jrb@redhat.com>
1896 * demos/gtk-demo/main.c: (create_tree): Minor fix.
1898 * docs/tree-column-sizing.txt: Update
1900 * gtk/gtkrbtree.[ch]: Massive work to support validation.
1902 * gtk/gtktreemodel.c: Doc fixes.
1904 * gtk/gtktreeview.c: Incremental reflow added.
1905 * gtk/gtktreeviewcolumn.c: ditto
1906 * gtk/gtktreeviewcolumn.h: ditto
1908 2001-12-04 Havoc Pennington <hp@redhat.com>
1910 * gtk/gtktexttag.c (gtk_text_tag_set_property): add a warning for
1911 "invisible" property, #65999
1913 2001-12-04 Matt Wilson <msw@redhat.com>
1915 * gtk/gtktreestore.c (gtk_tree_store_insert): fixed docs
1917 Tue Dec 4 12:16:31 2001 Owen Taylor <otaylor@redhat.com>
1919 * gtk/gtksettings.c (gtk_settings_set_property_value):
1920 Simplify, make more efficient and fix memory leak
1921 when turning quark into a string. (#66103, HideToshi
1924 * gtk/gtkcolorsel.c: Ref and sink priv->tooltips in
1925 init() and unref priv->tooltips in destroy rather
1926 than calling gtk_object_destroy() which has no
1927 effect on memory management. (#66104, HideToshi
1930 * gtk/gtkcolorsel.c (palette_set_color): Use g_object_set_data_full()
1931 so we free the when the object is freed. (Fixes memory
1932 leak, #66096, HideToshi Tajima)
1934 * gdk/gdkevents.c (gdk_synthesize_window_state): Use
1935 a full GdkEvent structure to avoid reads of uninitialized/
1936 invalid memory in gdk_event_put() (#65877, patch
1937 from Hidetoshi Tajima)
1939 Tue Dec 4 11:06:54 2001 Owen Taylor <otaylor@redhat.com>
1941 * gtk/gtkmenuitem.c: Revert my last mistaken change -
1942 toggle-size-request doesn't take a requisition.
1944 * gtk/gtkmenuitem.c (gtk_menu_item_class_init): Fix
1945 reference to marshaler that no longer exists.
1947 Mon Dec 3 16:39:17 2001 Owen Taylor <otaylor@redhat.com>
1949 Patch from Bill Haneman (with many modifications) to make
1950 the focus color work on dark themes and to make the
1951 focus line width configurable. (#61079, #63074)
1953 * gtk/gtkwidget.c: Add style properties,
1954 ::focus-widget, ::focus-line-width, and ::focus-padding.
1956 * gtk/gtkstyle.[ch]: Make gtk_paint_focus() take a
1957 state argument as well so we can use fg[STATE] to
1958 draw instead of always drawing with black.
1959 Cange paint_focus() to respect GtkWidget::focus-width
1960 and GtkWidget::focus-line-pattern. Fix continuity
1961 problem where the default 1-1 stipple had a blob
1962 in one corner and a gap in the other. Change the
1963 interpretation of x/y/width/height to be the bounding
1964 box of the focus rect instead of the rectangle
1965 passed to gdk_draw_rectangle.
1967 * gtk/gtkcheckbutton.c gtk/gtklistitem.c gtk/gtknotebook.c
1968 gtk/gtkoptionmenu.c gtk/gtkradiobutton.c gtk/gtkspinbutton.c
1969 gtk/gtktextview.c gtk/gtktreeview.c: Handle ::focus-width
1970 and ::focus-line-padding.
1972 * gtk/gtkentry.c: Handle :;focus-width property; cleanup
1973 and remove duplicated code; fix drawing of focus rectangle
1974 when interior-focus = FALSE. (#63072, #63073)
1976 * gtk/gtkrange.c gtk/gtktext.c gtk/gtktreeitem.c
1977 gtk/gtktreeviewcolumn.c: Basic fixups to make compile;
1978 Range and TreeViewColumn will need more extensive fixing.
1980 * gtk/gtkcolorsel.c: Honor focus line attributes when
1981 drawing the focus on the color swatches. (#63071)
1983 * gtk/gtkhsv.c: Honor focus line attributes when
1984 drawing the focus for the ring and triangle.
1986 * docs/widget_geometry.txt: Start at documenting how
1987 various widgets are drawn.
1989 * gtk/gtkbutton.c (_gtk_button_paint): Export
1990 _gtk_button_paint() librarywide, so we don't have
1991 duplicate a bunch of code in gtktogglebutton.c.
1993 * gtk/gtktogglebutton.c: Use _gtk_button_paint().
1995 Mon Dec 3 21:04:13 2001 Jonathan Blandford <jrb@redhat.com>
1997 * gtk/gtkmarshalers.list: remove VOID:BOXED,POINTER and
2000 2001-12-03 Alex Larsson <alexl@redhat.com>
2002 * gtk/gtkaccellabel.c:
2004 * gtk/gtkcolorsel.c:
2005 * gtk/gtkcontainer.c:
2007 * gtk/gtktextview.c:
2008 * gtk/gtktogglebutton.c:
2009 * gtk/gtktreeview.c:
2011 Return FALSE from expose handlers.
2013 Mon Dec 3 21:15:59 2001 Kristian Rietveld <kris@gtk.org>
2015 * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
2016 we use pointers, we should free the previous pointer first (if
2017 it exists), before we set a new pointer. (#64726)
2019 * gtk/gtktreeprivate.h: get rid of cursor_drag
2021 * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
2023 (gtk_tree_view_bin_expose): don't directly return in the while
2025 (gtk_tree_view_class_init): indentend expanders by default
2026 (gtk_tree_view_header_focus): only give the button focus
2027 if it's clickable, visible and the column is reorderable
2030 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
2031 create and free cursor
2033 Mon Dec 3 10:23:07 2001 Owen Taylor <otaylor@redhat.com>
2035 * gtk/gtkcalendar.c (gtk_calendar_size_request): Fix
2036 some bugs with size requisition. (From Bill Haneman)
2038 * gtk/gtkcalendar.c: Draw headers and selection in
2039 base/text[SELECTED] instead of fg/bg[SELECTED].
2041 * gtk/gtkcalendar.c: Miscellaneous cleanups to drawing
2042 code and formatting.
2044 2001-12-03 Havoc Pennington <hp@pobox.com>
2046 * gtk/gtktextview.c (set_window_height):
2047 (set_window_width): Hmm, setter functions normally assign the new
2048 value to the object field. Reported by Chris Phelps.
2050 2001-11-30 jacob berkman <jacob@ximian.com>
2052 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set the
2053 signal id to 0 after we disconnect from it
2055 2001-11-30 Matthias Clasen <matthiasc@poet.de>
2057 * gdk/gdkdrawable.h (gdk_drawable_ref, gdk_drawable_unref),
2058 gdk/gdkcolor.h (gdk_colormap_ref, gdk_colormap_unref),
2059 gdk/gdkdnd.h (gdk_drag_context_ref, gdk_drag_context_unref),
2060 gdk/gdkgc.h (gdk_gc_ref, gdk_gc_unref): Deprecate.
2062 * gdk/gdkvisual.h: Use GDK_DISABLE_DEPRECATED, not
2063 GTK_DISABLE_DEPRECATED.
2065 * gdk/gdkcolor.c (gdk_colormap_ref, gdk_colormap_unref),
2066 gdk/gdkgc.c (gdk_gc_ref, gdk_gc_unref): Document.
2068 Fri Nov 30 16:37:01 2001 Owen Taylor <otaylor@redhat.com>
2070 * gtk/gtkcombo.c (gtk_combo_popup_list): Sanitize
2071 move/resize code, removing various bad, non-functional
2072 hacks. (Fixes #65048, reported by Damon Chaplin.)
2074 Fri Nov 30 16:12:21 2001 Owen Taylor <otaylor@redhat.com>
2076 * gdk/gdkpango.c: Patch from Hidetoshi Tajima to fix
2077 bad match error when target drawable is not the
2078 same depth as the root window. (#65841)
2082 2001-11-29 Matthias Clasen <matthiasc@poet.de>
2084 * gdk/gdkwindow.c: Typo fix.
2086 Thu Nov 29 21:35:56 2001 Kristian Rietveld <kristian@planet.nl>
2088 * gtk/gtkmenu.c (gtk_menu_motion_notify): add checks for
2089 empty menu items to behave like insensitive items (#59456)
2091 * gtk/gtkmenuitem.c (gtk_real_menu_item_activate_item): select
2092 next item if the first item in the menu is a tear off item
2093 (#59456-2, suggestion by Matthias Clasen)
2095 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
2096 (gtk_menu_shell_button_release), (gtk_menu_shell_entry_notify),
2097 (gtk_menu_shell_leave_notify), (gtk_real_menu_shell_move_current),
2098 (gtk_real_menu_shell_activate_current): add check, so empty
2099 menu items behave like insensitive items (#59456)
2101 * gtk/gtkmenuitem.[ch]: add _gtk_menu_item_is_selectable to make
2102 the checks more readable ...
2104 * gtk/gtkmenushell.c (gtk_menu_shell_button_press),
2105 (gtk_menu_shell_button_release): causes the menu to dropdown if the
2106 caption is clicked again (#64977)
2108 2001-11-29 Havoc Pennington <hp@redhat.com>
2110 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
2111 assertion here that we were at the end iterator was not correct;
2112 change code to move us to the end iterator. bug #65731
2114 Wed Nov 28 20:05:44 2001 Owen Taylor <otaylor@redhat.com>
2116 * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
2117 improper use of g_locale_to_utf8() to convert from
2118 latin-1, and do it the easy way by building the string
2119 correctly in the first place.
2121 Wed Nov 28 19:34:15 2001 Owen Taylor <otaylor@redhat.com>
2123 * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get):
2124 Convert atoms to and from atoms for properties of type XA_ATOM.
2125 (#65555, patch from Hidetoshi Tajima)
2127 Wed Nov 28 18:37:04 2001 Owen Taylor <otaylor@redhat.com>
2129 * gtk/gtksocket.[ch] (gtk_socket_add_id): Rename 'id' parameter
2130 to avoid problems with Objective C.
2132 2001-11-28 Matthias Clasen <matthiasc@poet.de>
2134 * gtk/gtkaccelmap.c: Typo fixes. (#65607)
2136 * gtk/gtkfixed.c (gtk_fixed_set_has_window, gtk_fixed_get_has_window):
2139 * gtk/gtkwindow.c (gtk_window_set_mnemnonic_modifier): Document.
2141 Wed Nov 28 18:19:12 2001 Owen Taylor <otaylor@redhat.com>
2143 * gtk/gtkmenu.c (gtk_menu_set_tearoff_hints): Move
2144 accounting of menu->tearoff_scrollbar width to here
2145 and make sure we have the correct requisition.
2147 * gtk/gtkmenu.c (gtk_menu_position): Fix fixme
2148 by using gtk_window_move().
2150 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Force
2151 the requisition to be updated by calling
2152 gtk_widget_size_request() (#65440)
2154 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_activate):
2155 queue resize before calling gtk_menu_set_tearoff_state().
2157 Wed Nov 28 22:20:44 2001 Kristian Rietveld <kristian@planet.nl>
2159 * demos/gtk-demo/editable_cells.c: fix typo
2161 * demos/gtk-demo/list_store.c (add_columns): remove call to
2162 gtk_tree_view_column_set_clickable which didn't make sense
2164 2001-11-28 Havoc Pennington <hp@redhat.com>
2166 * gtk/gtktextview.c (gtk_text_view_paint): put the warning
2167 explaining the validation error in front of the G_BREAKPOINT
2169 * gtk/gtkrange.c (gtk_range_adjustment_value_changed): call
2170 process updates with include_children = FALSE instead of TRUE, so
2171 we redraw the range only, not the whole darn window. Making
2172 GtkRange a NO_WINDOW widget had weirdly caused the text widget
2173 Trace/breakpoint trap bug to become much easier to trigger.
2175 Wed Nov 28 14:12:03 2001 Owen Taylor <otaylor@redhat.com>
2177 * gdk/Makefile.am (gdk_public_h_sources): Remove reference
2180 2001-11-28 Matthias Clasen <matthiasc@poet.de>
2182 * gtk/gtkwindow.c (gtk_window_move): Add markup to docs.
2184 * gdk/gdkcursor.h: Directly include the contents
2185 of gdkcursors.h in the GdkCursorType enum.
2187 * gdk/gdkcursors.h: Deleted.
2189 * gdk/gdkkeysyms.h: Remove XFree86-specific keysyms, add
2192 * gdk/Makefile.am: Remove the X-derived-headers rule.
2194 Tue Nov 27 20:17:55 2001 Owen Taylor <otaylor@redhat.com>
2196 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_activate):
2197 Notify on the ::active property _here_, not in
2198 gtk_check_menu_item_set_active.
2200 Mon Nov 26 19:11:18 2001 Jonathan Blandford <jrb@redhat.com>
2202 * gtk/gtkcellrendererpixbuf.c
2203 (gtk_cell_renderer_pixbuf_class_init): add 2 properties
2204 (PIXBUF_EXPANDER_OPEN and PIXBUF_EXPANDER_CLOSED)
2206 Sun Nov 25 21:19:02 2001 Owen Taylor <otaylor@redhat.com>
2208 * gdk/x11/gdkgeometry-x11.c: Add long, but horribly sketchy
2209 comment about what is going on in this file.
2211 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
2214 Sun Nov 25 18:59:19 2001 Owen Taylor <otaylor@redhat.com>
2216 * gtk/gtkoptionmenu.c (gtk_option_menu_calc_size):
2217 Calculate size based on the _child_ of the menu item,
2218 not the menuitem. (#65005, Damon Chaplin)
2220 * gtk/gtklistitem.c (gtk_list_item_new_with_label): Add
2221 some extra vertical padding to the label widget ... restores
2222 GTK+-1.2 spacing. (#65085, Damon Chaplin.)
2224 2001-11-26 Tor Lillqvist <tml@iki.fi>
2226 * demos/pixbuf-demo.c
2227 * demos/gtk-demo/pixbufs.c: M_PI -> G_PI.
2229 * demos/gtk-demo/main.c (read_line): No flockfile() or
2230 getc_unlocked() on Win32.
2232 2001-11-25 Tor Lillqvist <tml@iki.fi>
2235 * acconfig.h: As we now use GDir, no need to check for dirent.h.
2237 Sun Nov 25 23:18:39 2001 Kristian Rietveld <kristian@planet.nl>
2239 * gtk/gtktexttag.c (gtk_text_tag_set_property): free font_desc
2240 when finished (#65266)
2242 Sun Nov 25 23:16:29 2001 Kristian Rietveld <kristian@planet.nl>
2244 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): free
2245 data after we set the property. (#65264)
2247 Sun Nov 25 23:14:06 2001 Kristian Rietveld <kristian@planet.nl>
2249 * gtk/gtkbutton.c: add destroy method so label_text gets freed
2250 if it has been allocated (#65268)
2252 Sat Nov 24 13:39:51 2001 Manish Singh <yosh@gimp.org>
2254 * gdk/linux-fb/gdkdrawable-fb2.c
2255 * gdk/linux-fb/gdkpango-fb.c: update to latest Pango API
2257 * gdk/linux-fb/gdkwindow-fb.c: implement gdk_window_show_unraised
2259 * gdk/linux-fb/gdkfont-fb.c (gdk_font_load): plug memleak on
2262 * gdk/linux-fb/gdkfbswitch.c: minor cleanups
2264 Sat Nov 24 22:05:27 2001 Kristian Rietveld <kristian@planet.nl>
2266 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): don't
2267 deactivate menu when menu_item isn't sensitive (#61389)
2269 Sat Nov 24 15:35:26 2001 Kristian Rietveld <kristian@planet.nl>
2271 * gtk/gtktreemodel.c (gtk_tree_model_foreach): free path before
2272 we return (in case of a failure here)
2274 Fri Nov 23 19:22:50 2001 Owen Taylor <otaylor@redhat.com>
2276 * gtk/gtknotebook.c: Handle events in windows other
2277 than widget->event_window properly. (#65079, reported
2280 * gdk/gdkevents.c (gdk_event_get_coords): Fix x/y bug.
2282 Fri Nov 23 18:57:46 2001 Owen Taylor <otaylor@redhat.com>
2284 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): Align
2285 the image at the top. (#65020, request from Seth Nickell)
2287 Fri Nov 23 18:49:53 2001 Owen Taylor <otaylor@redhat.com>
2289 * gtk/{gtkclist,gtkctree.c} (draw_row): Remove some strange
2290 arithmetic that was resulting in rows being drawn too low.
2291 (#65001, reported by Damon Chaplin)
2293 Fri Nov 23 18:36:42 2001 Owen Taylor <otaylor@redhat.com>
2295 * gtk/gtkrange.c (gtk_range_button_press): Offset
2296 invalidated range correctly.
2298 * gtk/gtkclist.c (hadjustment_value_changed): Fix scrolling
2299 of title window. (#65001, reported by Damon Chaplin)
2301 * gtk/gtkcombo.c (gtk_combo_button_event_after): Replace
2302 horrible hack with use of ::event_after.
2304 Thu Nov 22 15:01:03 2001 Owen Taylor <otaylor@redhat.com>
2308 * configure.in (ATK_REQUIRED_VERSION): Require
2309 GLib-1.3.11, Pango-0.22, ATK-0.7.
2311 * tests/prop-editor.c (property_widget): Restore
2312 to working as well as it did before.
2314 * gtk/gtklistitem.h: Mark deprecated since it is
2315 an integral part of GtkList.
2317 * demos/gtk-demo/demo-common.h: New header file,
2318 for a common functions not important to the meat
2321 * demos/gtk-demo/main.c (demo_ifind_file): Add a utility
2322 function to search for a file used by the demo.
2324 * demos/*.c: Use demo_find_file.
2326 2001-11-23 Matthias Clasen <matthiasc@poet.de>
2328 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag),
2329 gtk/gtkruler.c (gtk_ruler_get_metric): Actually commit typo
2330 fixes already mentioned in ChangeLog entry on 2001-11-14.
2332 * docs/reference/gtk/tmpl/drawing.sgml: Minor markup fixes.
2334 2001-11-23 Hans Breuer <hans@breuer.org>
2336 * gdk/win32/gdkfont-win32.c (gdk_font_from_description) :
2337 reflect Pango API change
2339 * gtk/gtk.def : updated externals
2341 * gtk/gtkfixed.c (gtk_fixed_get_has_window) : use
2342 g_return_val_if_fail() to avoid 'function must return a value'
2344 * gtk/gtkrc.c : added spaces to fix small coding style issues
2345 * gtk/gtkwidget.c : ... and linebreaks. Also a static for
2346 'static correctness'
2348 * gtk/makefile.msc.in : temporary(?) disable gtk<plug|socket>
2349 because they only can be build on win32 after applying my patch
2351 Wed Nov 21 22:55:37 2001 Tim Janik <timj@gtk.org>
2353 * gtk/gtkbutton.c (gtk_button_map): raise event window afte
2354 children, in order for the input pnly window to stay *above*
2357 Wed Nov 21 22:44:27 2001 Tim Janik <timj@gtk.org>
2359 * tests/testtreeview.c: make hackery worse ;) by checking fundamental
2360 type walks againts G_TYPE_FUNDAMENTAL_MAX.
2362 * tests/prop-editor.c: disable type hackery.
2364 Wed Nov 21 17:41:39 2001 Owen Taylor <otaylor@redhat.com>
2366 * gdk/gdkimage.c (gdk_image_get): Fix problem with
2369 Wed Nov 21 17:01:25 2001 Owen Taylor <otaylor@redhat.com>
2371 * gtk/gtkcellrenderer.h gtk/gtktreemodel.h
2372 gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
2373 trailing commas in enum declarations.
2375 Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com>
2377 * configure.in (GTK_MICRO_VERSION): Version 1.3.11,
2378 interface, binary age 0.
2382 * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML
2385 * gtk/gtkmain.h: Remove unused and misnamespaced
2386 get_gtk_win32_directory() prototype.
2388 * gdk/gdkimage.c (gdk_image_get): Fix parameter names
2391 * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(),
2392 gdk_window_set_transient_for(), gdk_window_set_geometry_hints(),
2395 * gdk/gdkevents.c (gdk_event_get_coords)
2396 gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active)
2397 gtk/gtkdnd.c (gtk_drag_set_icon_stock):
2398 Fix parameter names in docs.
2400 * docs/faq/Makefile.am (FAQ_FILES): Add missing files.
2401 (#64961, Akira Tagoh)
2403 Wed Nov 21 11:41:29 2001 Owen Taylor <otaylor@redhat.com>
2405 * tests/testgtk.c (create_tooltips): Ref-sink the tooltips object.
2407 * gtk/gtktoolbar.c (gtk_toolbar_init): Ref-sink the tooltips object.
2409 * gtk/gtkfilesel.c (open_new_dir): Fix some constness warnings.
2411 * gtk/gtkaccelgroup.c: Rename gtk_accel_groups_from_acceleratable()
2412 back to gtk_accel_groups_from_object(), change @acceleratable
2413 parameter to gtk_accel_groups_activate() accordingly.
2415 * gtk/gtkaccelmap.c (gtk_accel_map_lookup_entry): Remove
2416 left-over comment about quark return.
2418 * gtk/gtkaccelmap.h: Fix spelling of gtk_accel_map_foreach_unfiltered().
2420 * gtk/gtk-boxed.defs (GtkIconSource): added as a boxed type.
2421 (Patch from Matt Wilson)
2423 * gtk/gtkobject.c (gtk_object_finalize): Warn if a floating
2424 object is finalized.
2426 Tue Nov 20 21:25:08 2001 Tim Janik <timj@gtk.org>
2428 * applied patch from owen to get rid of accel map notifiers.
2429 changed things to fix reentrancy and API as discussed on gtk-devel.
2431 * gtk/gtkaccelgroup.[hc]:
2432 (gtk_accel_group_finalize): unregister this accel group from all
2434 (accel_closure_invalidate): handle invalidation of closures by
2435 disconnecting their accelerators.
2436 (quick_accel_add): move closure connection and changed notification
2437 into this function to reduce code duplication. don't emit change
2438 notification on closurers without accelerators.
2439 (quick_accel_remove): rewrite, do the exact opposite of quick_accel_add
2440 for a GtkAccelGroupEntry.
2441 (gtk_accel_group_connect): get rid of the accel_path_quark argument.
2442 (gtk_accel_group_connect_by_path): new function to add accelerators
2444 (gtk_accel_group_disconnect_closure): new function, disconnect a
2445 closure from of an accel group.
2446 (gtk_accel_group_disconnect): loop over all closure for a accel_ley,
2447 accel_mods pair and remove them.
2448 (_gtk_accel_group_reconnect): new function that basically does
2449 gtk_accel_group_disconnect_closure() and
2450 gtk_accel_group_connect_by_path() once an accel path changed.
2451 (gtk_accel_groups_disconnect_closure): remove this, there's
2452 gtk_accel_group_disconnect_closure().
2454 * gtk/gtkaccelmap.[hc]: keep list of accel groups per entry now,
2456 (_gtk_accel_path_is_valid): make this non-static for
2457 gtkwidget.c and gtkaccelgroup.c assertions.
2458 (gtk_accel_map_add_notifer): removed this function.
2459 (gtk_accel_map_remove_notifer): same.
2460 (_gtk_accel_map_add_group):
2461 (_gtk_accel_map_remove_group): (un-)register accel groups, with
2462 accel paths for correct propagation.
2463 (gtk_accel_map_add_entry): return void.
2464 (gtk_accel_map_lookup): return gboolean instead of GQuark.
2466 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): always
2467 set accel_path on widgets.
2469 * gtk/gtkwidget.[hc]:
2470 (accel_path_changed): got rid of this, changes are handled by
2471 accel maps internally now.
2472 (_gtk_widget_set_accel_path): get things to work without notifiers.
2473 (gtk_widget_list_accel_closures): list accel closures of a widget.
2475 * gtk/gtkwindow.[hc]: rename ::accels_changed, to ::keys_changed.
2477 2001-11-20 Matthias Clasen <matthiasc@poet.de>
2479 * gtk/gtkcontainer.c (gtk_container_propagate_expose): Typo fix.
2481 Tue Nov 20 23:01:01 2001 Kristian Rietveld <kristian@planet.nl>
2483 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path):
2484 replace gboolean free_last in the function parameters with
2485 gint depth. Changes to reflect new situation.
2487 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
2488 replace gboolean free_last, with gint depth, add gint current_depth.
2489 Changes to reflect new situation.
2491 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): changes
2492 to reflect new situation
2494 * gtk/gtktreemodel.c (gtk_tree_row_reference_free): ditto
2496 Tue Nov 20 12:37:10 2001 Owen Taylor <otaylor@redhat.com>
2498 * gtk/gtknotebook.c (gtk_notebook_paint): Fix problem
2499 where notebook gap was double shifted by allocation.x/y
2501 * gtk/gtknotebook.c (gtk_notebook_unmap): Chain up
2504 Tue Nov 20 14:49:59 2001 Tim Janik <timj@gtk.org>
2506 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): fix
2507 allocation to be relative to paned->allocation, now
2508 that this is a NO_WINDOW widget.
2509 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): same here.
2511 * gtk/gtkaccellabel.c (gtk_accel_label_class_init): ::closure
2512 needs to be a boxed property.
2514 Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
2516 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
2517 Use the widget's state when drawing the indicator, as
2518 in GtkCheckButton. This gives us color changes for
2519 un-prelighted checkbuttons. (#63308, Matt Wilson)
2521 Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
2523 (Fixes related to #64428, Michael Meeks)
2525 * gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
2526 widget, so it gets mapped again properly when we
2529 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2530 plug->socket_window.
2532 * gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
2533 socket_window to NULL, not FALSE.
2535 * gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
2536 socket->same_app to TRUE. (#64612)
2538 Mon Nov 19 15:50:41 2001 Owen Taylor <otaylor@redhat.com>
2540 * gtk/gtkfixed.[ch] docs/Changes-2.0.txt: Add
2541 gtk_fixed_set/get_has_window() to remove criticism
2542 about GTK_WIDGET_SET_FLAGS() hacks.
2544 2001-11-19 Michael Natterer <mitch@gimp.org>
2546 * gtk/gtknotebook.c: show notebook->event_window with
2547 gdk_window_show_unraised(), so it doesn't catch the events which
2548 should go to the tab widgets first.
2550 Mon Nov 19 15:30:51 2001 Jonathan Blandford <jrb@redhat.com>
2552 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add a
2553 "resizable" property, to get rid of the
2554 GTK_TREE_VIEW_COLUMN_RESIZABLE sizing flag.
2555 (gtk_tree_view_column_set_resizable): New function to set resizable.
2556 (gtk_tree_view_column_set_resizable): getter.
2558 * tests/testtreecolumns.c (add_clicked): modify for above change.
2560 * Makefile.am (install-data-hook): remove old .pc files before
2561 installing the new one. We used to symlink this, and it will
2564 2001-11-19 Havoc Pennington <hp@pobox.com>
2566 * tests/testtext.c (fill_example_buffer): put in a test for
2567 negative indentation values
2569 Mon Nov 19 14:08:18 2001 Owen Taylor <otaylor@redhat.com>
2571 * gtk/gtklabel.c (gtk_label_init): Change default for
2572 justify to GTK_JUSTIFY_LEFT. Assuming that multiline
2573 labels are most often wrapped labels, this gives better
2574 compatibility with GTK+-1.2, where justification was
2575 ignored for wrapped labesl and is a more sensible
2576 default in any case. (#64489)
2578 * gtk/gtklabel.c (gtk_label_class_init): Fix default
2579 for wrap property to FALSE.
2581 2001-11-19 jacob berkman <jacob@ximian.com>
2583 * gtk/Makefile.am (gtk_extra_sources): add gtkmarshal.list
2585 Mon Nov 19 13:56:45 2001 Owen Taylor <otaylor@redhat.com>
2587 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
2588 RevertToParent, not RevertToNone. (#64613,
2591 Mon Nov 19 12:28:02 2001 Owen Taylor <otaylor@redhat.com>
2593 * gtk/gtkframe.c (gtk_frame_class_init): label_xalign
2594 and label_yalign need to be float properties to
2595 correspond to GTK+-1.2, to gtk_frame_set_label_align,
2596 and to the types of the xalign and yalign properties of GtkMisc.
2597 (#63484, Vitaly Tishkov)
2599 Mon Nov 19 12:24:30 2001 Owen Taylor <otaylor@redhat.com>
2601 * gtk/gtksocket.h (struct _GtkSocketClass): Fix return
2602 of plug_added vfunc. (#64408, Jeff Franks)
2604 Mon Nov 19 12:07:20 2001 Owen Taylor <otaylor@redhat.com>
2606 * configure.in (deps): Undef HAVE_STDLIB_H before
2607 checking for jpeg, because jconfig.h has this
2608 in it too (%#$@!). Fix from Matthias Clasen, #64500.
2610 Mon Nov 19 11:30:03 2001 Owen Taylor <otaylor@redhat.com>
2612 * gdk/x11/gdkproperty-x11.c (get_atom_name): Fix a
2613 memory leak when retrieving atom names. (Michael Meeks,
2616 2001-11-18 Alex Larsson <alexl@redhat.com>
2618 * gdk/x11/gdkfont-x11.c (gdk_font_from_description):
2619 Update to new Pango API.
2621 Sun Nov 18 19:47:29 2001 Owen Taylor <otaylor@redhat.com>
2623 * gtk/gtkobject.h docs/Changes-2.0.txt: Rename the
2624 GTK_DESTROYED flag to GTK_IN_DESTRUCTION, remove the
2625 GTK_OBJECT_DESTROYED() check macro.
2627 * gtk/gtkbindings.c (gtk_bindings_activate): Remove
2628 instances of GTK_OBJECT_DESTROYED() that weren't
2631 * gtk/gtkdialog.c: Exchange use of GTK_OBJECT_DESTROYED
2632 for a connection to ::destroy.
2634 Sun Nov 18 18:18:11 2001 Owen Taylor <otaylor@redhat.com>
2636 * gtk/gtkfixed.c: Make a NO_WINDOW widget, as it should
2637 have been since the beginning, but as special hack,
2638 allow clearing the NO_WINDOW flag to get a window widget.
2640 Sun Nov 18 22:01:36 Kristian Rietveld <kristian@planet.nl>
2642 * gtk/gtktreestore.c: return TRUE when value changed, so
2643 row_changed is being emitted
2645 2001-11-18 Hans Breuer <hans@breuer.org>
2647 * gtk/gdkaccelmap.c : make it compile with msvc: !HAVE_UNISTD_H;
2648 no label without op, even if it's a no-op.
2651 * gtk/makefile.msc.in : reflect marshaler split, some clean-up
2653 * config.h.win32.in : remove definition of HAVE_DIRENT_H
2654 * gtk/gtkfilesel.c : due to GDir (new in glib) DIR isn't
2655 required anymore, replace it.
2656 * gtk/queryimmodules.c : DIR -> GDir replacement, also
2657 getcwd() -> g_get_current_dir()
2659 * gdk/win32/gdkgeometry-win32.c : adapt to refactored gdkgeometry-x11.c
2660 Even 'noisy laugh' scolling appears to work, though I still can't
2661 claim to have fully understood what it is supposed to do ...
2663 Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com>
2665 * gtk/gtkenums.h: Include glib-object.h instead of
2668 * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch],
2669 x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen
2670 argument to the window_at_pointer() field of
2671 GdkPointerHooks. (Patch from Erwann Chenede)
2673 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up
2676 2001-11-17 Matt Wilson <msw@redhat.com>
2678 * gtk/gtkenums.h: must include glib-object.h only
2680 Sat Nov 17 19:26:20 2001 Owen Taylor <otaylor@redhat.com>
2682 * gtk/gtkwindow.c (gtk_window_key_press_event): Reprioritize
2683 key bindings in order of visibility - mnemonics, then
2684 accelerators, then send key to the focus widget, then
2685 bindings on the GtkWindow.
2687 * gtk/gtklayout.h docs/Changes-2.0.txt tests/testgtk.c:
2688 Removed the xoffset, yoffset fields of GtkLayout which were
2689 identically zero for compat with 1.2, but were no longer
2690 compatible with all uses of these fields in 1.2.
2692 * gtk/gtkwindow.c (gtk_window_set_default): Remove
2695 Sat Nov 17 19:08:13 2001 Owen Taylor <otaylor@redhat.com>
2697 * tests/testtreeview.c (gtk_tree_model_types_get_type):
2698 We no longer need to create the signals here ... they
2699 come from the interface.
2701 * gtk/maketypes.awk: Use GType, not GtkType in output.
2703 * gtk/gtktypeutils.h: Mark virtually all of this
2706 * gtk/gtkcontainer.h: Deprecate gtk_container_foreach_full;
2707 the only use of this function is the GtkArg using
2708 GtkCallbackMarshal, since destroy notification is
2711 Sat Nov 17 18:26:45 2001 Owen Taylor <otaylor@redhat.com>
2713 * gtk/Makefile.am gtk/gtkmarshal.list gtk/gtkmarshalers.list
2714 gtk/*.c gtk/gtksignal.h: Make gtkmarshal.list/gtkmarshal.h
2715 only for compatibility with GTK+-1.2; and deprecate it;
2716 put all marshalers we actually use into gtkmarshalers.list
2717 and use the _gtk_marshal_ prefix for these marshalers.
2719 2001-11-17 Murray Cumming <murrayc@usa.net>
2721 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init):
2722 The first parameters of the signals are now registered as
2723 GTK_TYPE_TEXT_TAG instead of G_TYPE_OBJECT.
2725 2001-11-17 Tor Lillqvist <tml@iki.fi>
2727 * gtk-zip.sh.in: Build separate runtime and developer
2730 * gtk/gtk.def: Reflect recent accelerator-related changes.
2732 Fri Nov 16 19:44:35 2001 Owen Taylor <otaylor@redhat.com>
2734 * gtk/gtkwindow.c (gtk_window_set_default): Move
2735 notification of "has_default" to here, so it
2736 is safe to call gtk_window_set_default() instead
2737 of gtk_widget_grab_default().
2739 * gtk/gtkwindow.c (gtk_window_set_focus): Make it call
2740 gtk_widget_grab_focus(), which then calls
2741 _gtk_widget_internal_set_focus(). This makes
2742 gtk_window_set_focus() a safe way of both setting
2743 and unsetting the focus widget.
2745 * gtk/gtkwidget.c (gtk_widget_propagate_state): Use
2746 gtk_widget_get_toplevel(), instead of gtk_widget_ancestor
2747 to find the toplevel.
2749 * gtk/gtkwindow.h: Move gtk_window_set_focus/default
2750 from the "internal functions" section.
2752 2001-11-16 jacob berkman <jacob@ximian.com>
2754 * tests/testgtk.c (create_radio_buttons): add some no-indicator
2757 * gtk/gtkradiobutton.c (gtk_radio_button_init): since we are
2758 initially active, also initially be depressed
2759 (gtk_radio_button_clicked): also update our depressed state
2761 Thu Nov 15 12:54:36 2001 Owen Taylor <otaylor@redhat.com>
2763 * gtk/gtkwindow.c (gtk_window_key_press_event): Propagate
2764 key press events not just to focus/window but also to
2765 intermediate widgets.
2767 * gtk/gtknotebook.c: Handle Ctrl-PageUp/Ctrl-PageDown
2768 to switch pages. (Needs some work on handling focus
2769 when switching pages.)
2771 Fri Nov 16 14:06:31 2001 Owen Taylor <otaylor@redhat.com>
2773 * gtk/gtknotebook.c: Fix child allocations to be relative to
2774 widget position and some drawing bugs.
2776 * gtk/gtkmenuitem.c (gtk_menu_item_paint): Fix problem
2777 with reading uninitialized variable.
2779 Fri Nov 16 00:16:40 2001 Owen Taylor <otaylor@redhat.com>
2781 * gtk/{gtkmenuitem.[ch],gtkcheckmenuitem.c,gtkimagemenuitem.c,
2782 gtkradiomenuitem.c,gtktearoffmenuitem.c}: Make Menu items
2785 * gtk/gtk{h,v,}paned.[ch]: Make NO_WINDOW widgets, some
2788 * gtk/gtkstyle.c (gtk_default_draw_handle): Don't assume
2789 we are drawing in a window when drawing the paned handle.
2791 2001-11-16 Sven Neumann <sven@gimp.org>
2793 * demos/gtk-demo/appwindow.c
2794 * demos/gtk-demo/menus.c: reduce compiler warnings
2796 Thu Nov 15 19:47:09 2001 Owen Taylor <otaylor@redhat.com>
2798 * demos/gtk-demo/main.c (button_press_event_cb): Remove
2799 unused callback to make things compile with
2800 gtk_tree_view_path_at_pos_change().
2802 Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com>
2804 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160
2806 2001-11-15 Matthias Clasen <matthiasc@poet.de>
2808 * gtk/gtkwindow.c (gtk_window_new): Move '.' out of quote. (#64407)
2810 Thu Nov 15 16:24:55 2001 Jonathan Blandford <jrb@redhat.com>
2812 * gtk/gtktreeview.c (gtk_tree_view_get_bin_window): New function
2813 to get a GdkWindow to compare event->window to.
2815 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_left_right): emit
2816 the signal for lateral motion too, #64361
2818 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): remove window
2819 arg as it is useless, #64137
2821 Thu Nov 15 16:07:42 2001 Owen Taylor <otaylor@redhat.com>
2823 * gtk/gtknotebook.c: Some small drawing fixes for scroll arrows.
2825 Thu Nov 15 14:19:34 2001 Owen Taylor <otaylor@redhat.com>
2827 * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Cal
2828 gdk_window_invalidate_maybe_recurse() for recursion.
2831 * gtk/gtkviewport.c: Make !redraw_on_allocate. (Soeren Sandmann)
2833 * gtk/gtkcontainer.c (gtk_container_expose): Call
2834 gtk_container_forall() not _foreach() to propagate,
2835 since we need to propagate exposes to internal children
2838 * gtk/gtkwidget.c (gtk_widget_set_events, gtk_widget_add_events):
2839 Remove the restriction of only being able to call these
2840 on window widgets, since we have lots of NO_WINDOW widgets
2841 with windows now; for add events, recurse over the children
2842 of widget->window to find one owned by the widget.
2844 * gtk/gtkbutton.[ch]: Make a NO_WINDOW widget, using an input-only
2845 window to catch events.
2847 * gtk/gtktogglebutton.[ch]: Remove the code for switching
2848 between NO_WINDOW and WINDOW widgets based on the mode.
2850 * gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c gtk/gtkclist.c
2851 gtk/gtktreeview.c: Adopt to NO_WINDOW change for GtkButton.
2853 * gtk/gtkrange.[ch]: Make into a NO_WINDOW widget.
2855 * gtk/gtkhscale.c, gtk/gtkvscale.c: Adopt to NO_WINDOW
2858 * gtk/gtknotebook.[ch]: Make into a NO_WINDOW widget.
2860 * docs/Changes-2.0.txt: Add a note about the NO_WINDOW changes.
2862 Thu Nov 15 11:59:35 2001 Owen Taylor <otaylor@redhat.com>
2864 * gtk/gtkmessagedialog.c: Patch from Murray Cumming to add
2865 "message_type" and "buttons" CONSTRUCT properties. (#64069)
2867 * tests/testsocket.c: Expand tests to add a "local passive
2868 child" (Test case for #64428)
2870 2001-11-14 jacob berkman <jacob@ximian.com>
2872 * gtk/gtkgamma.c (button_clicked_callback): create the label with
2875 2001-11-15 Sven Neumann <sven@gimp.org>
2877 * tests/testgtk.c: make it compile without warnings.
2879 2001-11-14 Alex Larsson <alexl@redhat.com>
2882 Don't recalculate the layout on each gkt_label_ensure_layout () for
2885 Wed Nov 14 17:40:23 2001 Jonathan Blandford <jrb@redhat.com>
2887 * gtk/gtktreeview.c (gtk_tree_view_get_expander_column): Return
2888 the currently selected column when we get the column, #64380
2890 * gtk/gtkentry.c (gtk_cell_editable_key_press_event): Handle Esc
2891 to cancel CellRendererText editting, #63613
2893 * gtk/gtkcellrenderertext.c: ditto
2895 * gtk/gtkcellrenderertext.h: formatting changes
2897 2001-11-14 Matthias Clasen <matthiasc@poet.de>
2899 * gtk/gtkbutton.c (gtk_button_get_label): Rearrange docs (#64566)
2901 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Typo fix (#64474)
2903 * gtk/gtkruler.c (gtk_ruler_get_metric): Typo fix (#64470)
2905 * gtk/gtknotebook.c (gtk_notebook_prepend_page): Typo fix (#64467)
2907 * gtk/gtklabel.c: Documentation fixes (#64452)
2909 2001-11-14 Daniel Egger <degger@fhm.edu>
2911 * gdk-pixbuf/io-xpm.c:
2912 (xpm_skip_whitespaces): Remove unused static function.
2913 (xpm_skip_string): Dito.
2914 (xpm_extract_color): Declare const variable const to avoid warnings.
2916 * gtk/gtkfixed.c: (gtk_fixed_map): Remove unused static function.
2918 * gtk/gtkplug.c: #if 0'ed prototype for #if 0'ed code.
2920 * gtk/gtksocket.c: Change type of mask to g_message to %ld for
2923 Wed Nov 14 15:14:48 2001 Owen Taylor <otaylor@redhat.com>
2925 * gtk/gtkcontainer.c (gtk_container_idle_sizer): Back
2926 out accidental commit of debugging timing code.
2928 2001-11-14 Havoc Pennington <hp@redhat.com>
2930 * gtk/gtktextview.c (gtk_text_view_move_cursor): fix Control-E so
2931 it doesn't move to a new line each time you press it
2933 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix
2934 return value, #62987
2936 2001-11-14 Havoc Pennington <hp@redhat.com>
2938 * tests/testtextbuffer.c (main): bulk of the tests were commented
2941 * gtk/gtktextiter.c (find_paragraph_delimiter_for_line): make this
2942 function work, should resolve #63426
2943 (gtk_text_iter_ends_line): return TRUE for the end iterator
2945 * gtk/gtktextiter.h: put padding back in GtkTextIter, I thought of
2946 a couple things that might get cached in here.
2948 Tue Nov 13 21:00:59 2001 Jonathan Blandford <jrb@redhat.com>
2950 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
2951 "model" construct property for language bindings.
2953 * gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
2954 function to let you set the column types of a GtkTreeStore for
2957 * gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
2959 2001-11-13 Havoc Pennington <hp@redhat.com>
2961 * gtk/gtktextview.c (gtk_text_view_add_child_in_window): docs
2962 including reference to bugzilla bug about how we should have
2963 a better way of positioning children
2965 * gtk/gtktextview.h (struct _GtkTextViewClass): add some padding
2967 * gtk/gtktextview.c (gtk_text_view_size_allocate): assign zero
2968 size to side rects if they don't exist, #63438
2970 2001-11-13 Havoc Pennington <hp@redhat.com>
2972 * gtk/gtktextview.c (gtk_text_view_key_press_event): fix to
2973 properly replace selection with Return or Tab
2975 * gtk/gtktextdisplay.c (gtk_text_layout_draw): fix broken code
2976 that didn't locate the end of the line correctly, should fix #63800
2978 2001-11-13 Havoc Pennington <hp@redhat.com>
2980 * gtk/gtktextview.c (gtk_text_view_size_request): add border width
2981 to requisition, request non-anchored children
2982 (gtk_text_view_size_allocate): handle border width, allocate
2983 non-anchored children
2984 (text_view_child_new_window): set the child as object data
2985 (gtk_text_view_move_child): allow children at negative
2986 coordinates, no reason why not
2987 (gtk_text_view_forall): make it copy the list of children before
2988 walking it, to avoid reentrancy issues
2989 (gtk_text_view_move_child): short-circuit if position is unchanged
2990 (changed_handler): only queue_resize if requisition has changed
2991 (gtk_text_view_init): don't redraw_on_allocate, since we can do
2992 a better job of invalidation ourselves
2994 * tests/testtext.c: add tests for the fixed-position children
2996 Tue Nov 13 19:51:43 2001 Tim Janik <timj@gtk.org>
2998 * gtk/gtkwindow.c (handle_accels_changed): protect idle handle
2999 with gdk threads macro.
3001 Mon Nov 12 23:08:37 2001 Tim Janik <timj@gtk.org>
3003 * gtk/maketypes.awk: fix type utils generation on unix.
3005 * gtk/gtkaccelmap.[hc]: new files, implementing a global accelerator
3008 * gtk/gtkaccelgroup.[hc]: major API/implementation revamp:
3009 removed GTK_ACCEL_SIGNAL_VISIBLE, gtk_accel_group_get_default,
3010 gtk_accel_group_get_entry, gtk_accel_group_(un)lock_entry,
3011 gtk_accel_group_add/remove, gtk_accel_group_handle_add/remove,
3012 gtk_accel_group_create_add/remove, gtk_accel_group_entries_from_object.
3013 introduced ::accel_changed signal for change notification, and
3014 gtk_accel_group_connect/disconnect to connect closures to accel groups.
3015 made gtk_accel_group_attach/detach and gtk_accel_group_activate private
3017 deprecated gtk_accel_group_ref/unref.
3019 * gtk/gtkaccellabel.[hc]: changes to make accellabels pay attention
3020 to accel group changed notification and basically operate on closures.
3021 removed gtk_accel_label_get_accel_object and
3022 gtk_accel_label_set_accel_object.
3023 introduced gtk_accel_label_set_accel_closure, and for convenience,
3024 gtk_accel_label_set_accel_widget.
3026 * gtk/gtkitemfactory.[hc]: removed accelerator propagation code
3027 which mostly moved into gtkaccelmap.[hc].
3028 removed gtk_item_factory_parse_rc*, gtk_item_factory_dump_*
3029 and gtk_item_factory_print_func.
3031 * gtk/gtkmain.c: call _gtk_accel_map_init().
3033 * gtk/gtkmenuitem.[hc]: introduced gtk_menu_item_set_accel_path(),
3034 that associates an accelerator path with menu items, through which
3035 persistent accelerator settings on menu items are enabled.
3037 * gtk/gtkmenu.[hc]: added gtk_menu_set_accel_path() so accelerator
3038 paths of menu item can be default constructed to allow installation
3039 of accelerators on menu items that don't come with an accelerator
3042 * gtk/gtksettings.c: fix STRING type rc settings by special casing
3043 them appropriately in the parser.
3045 * gtk/gtksignal.[hc]: allow a class function offset of 0 for
3048 * gtk/gtkwidget.[hc]: accelerator API revamp.
3049 removed ::accelerator_add/remove signals, gtk_widget_accelerator_signal,
3050 gtk_widget_accelerators_locked, gtk_widget_remove_accelerators and
3051 gtk_widget_(un)lock_accelerators.
3052 accelerators maintained through gtk_widget_add/remove_accelerator()
3053 are not runtime changable now, the correct sequence to setup a
3054 widget for runtime changable accelerators is now:
3055 gtk_accel_map_add_entry(accel_path, key, mods);
3056 _gtk_widget_set_accel_path(widget, accel_path, accel_group);
3058 * gtk/gtkwindow.[hc]: accelerator changes, proxy and coalesce accel
3059 group changes (as well as mnemonic changes) through the new signal
3062 Sat Nov 10 12:08:56 2001 Tim Janik <timj@gtk.org>
3064 * gtk/gtksettings.c (_gtk_settings_parse_convert): properly handle
3065 GString->string conversions.
3067 Mon Nov 12 19:33:52 2001 Owen Taylor <otaylor@redhat.com>
3069 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): Warn
3070 if GTK_DIALOG_NO_SEPARATOR is passed in and ignore it.
3072 2001-11-12 Matthias Clasen <matthiasc@poet.de>
3074 * gtk/gtktreeview.c: Documentation fixes. (#64377)
3076 * gtk/gtktreestore.c: Documentation fixes. (#64376)
3078 2001-11-11 Matthias Clasen <matthiasc@poet.de>
3080 * gtk/gtkiconfactory.c, gtk/gtktextbuffer.c, gtk/gtktreemodel.c,
3081 gtk/gtkwindow.c, gtk/gtknotebook.c, gtk/gtkradiobutton.c,
3082 gtk/gtktextiter.c, gtk/gtkdialog.c: Mass fixing of trivial doc bugs.
3083 (#63544, #57007, #64141, #63472, #57108, #60818, #61562)
3085 2001-11-10 Hans Breuer <hans@breuer.org>
3087 * gdk/win32/gdkevents-win32.c (gdk_event_translate) : make sure
3088 we know what we are talking about when asked for MINMAXINFO.
3089 Also some cleaning for !HAVE_DIMM_H etc.
3091 2001-11-10 Matthias Clasen <matthiasc@poet.de>
3093 * gtk/gtktreeviewcolumn.c: Fix docs for
3094 gtk_tree_view_column_set_sort_order. (#62647)
3096 * gtk/gtkcontainer.c: Fix docs for
3097 gtk_container_set_border_width. (#64139)
3099 * gtk/gtkcolorsel.c: Documentation fixes.
3101 2001-11-10 Hans Breuer <hans@breuer.org>
3103 * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms
3104 don't have strcasecmp()
3106 * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need
3107 to remove the idle funcs in gtk_text_view_destroy (). To reduce
3108 code duplication wrap it in its own function and use it in
3109 gtk_text_view_unrealize () and gtk_text_view_destroy_layout ()
3111 * gdk/win32/gdkdrawable-win32.c : implement the finalize
3112 method like the X11 version does, allow to set_colormap NULL
3113 * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32::
3114 set_colormap, also some adaption to X11 version :
3115 (gdk_window_hide) call _gdk_window_clear_update_area
3116 (gdk_window_reparent) call _gdk_window_init_position
3118 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) :
3119 call gdk_window_resize() after all hints are set, because the
3120 window resizing process (WM_GETMINMAXINFO) takes all of them into
3123 * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean
3125 * gdk/win32/gdkvisual-win32.c : register GdkVisual with
3126 sizeof (GdkVisualPrivate)
3128 * gdk/gdk.def gtk/gtk.def : upated externals
3130 * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc
3131 gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc :
3132 from now on use make.msc from $(TOP)/glib/build/win32
3134 * gtk/stock-icons/makefile.msc : add stock_missing_image
3136 2001-11-08 Tor Lillqvist <tml@iki.fi>
3138 * README.win32: Add headers. Add section about ActiveIMM.
3140 * configure.in: Add --with-ie55 flag to specify the location of
3141 the "IE55 libs and headers" package downloadable from Microsoft,
3142 which contains, among other things, the Active IMM header dimm.h
3143 and UUID library uuid.lib. Use test -f instead of AC_CHECK_FILE.
3144 Require GLib 1.3.10.
3146 * config.h.win32.in: New version, produced by merging two
3147 configure-generated ones (for gcc and MSVC). Hopefully #defines
3148 the same flags that the previous, hand-written one, did.
3151 * gdk/win32/Makefile.am: Handle the uuid library from the IE55 lib.
3153 * gdk/win32/gdkevents-win32.c: Conditionalize ActiveIMM
3154 stuff. Remove unused GdkIOClosure.
3156 * gdk/win32/surrogate-dimm.h: Remove, use real dimm.h instead (if
3159 * gdk/win32/libie55uuid.la: New file, handwritten libtool wrapper
3160 for uuid.lib. (Does it really have to be this hard to use an
3161 existing library with libtool? Probably I am missing something.)
3163 2001-11-08 Darin Adler <darin@bentspoon.com>
3165 * gtk/gtklabel.c: (gtk_label_ensure_layout): Fix an obvious
3166 typo where it says LEFT instead of CENTER.
3168 2001-11-07 Darin Adler <darin@bentspoon.com>
3170 * gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
3171 (gtk_dialog_set_default_response): Add g_return_if_fail.
3173 Mon Nov 5 22:34:29 2001 Owen Taylor <otaylor@redhat.com>
3175 * gtk/gtktreednd.[ch] (struct _GtkTreeDragSourceIface):
3176 Add row_draggable() vfunc, and wrapper function.
3178 * gtk/gtktreednd.[ch] (struct _GtkTreeDragDestIface): Make
3179 row_drop_possible take a GtkSelectionData, rather than
3182 * gtk/gtktreestore.c gtk/gtkliststore.c: Update for
3185 * gtk/gtktreeview.[ch]: Remove the row_draggable_func
3186 location_dropable_func from gtk_tree_view_set_rows_drag_source/dest.
3187 and rename them to enable_model_drag_source/dest.
3189 * gtk/treeviewcolumn.c: Add DND of columns between rows.
3190 Still can't drop _to_ the left tree, but other places
3193 * gtk/gtktreeview.c (unset_reorderable): Unset the
3194 reorderable property if unset/enable_model_drag_source/dest
3195 are called manually.
3197 * gtk/gtktreestore.c (gtk_tree_store_row_drop_possible):
3198 Correct for change in depth count handling.
3200 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
3201 Pass in a expose area to gtk_tree_view_column_cell_render()
3203 2001-11-06 Havoc Pennington <hp@redhat.com>
3205 * demos/gtk-demo/textview.c (easter_egg_callback): wacky easter egg
3207 Tue Nov 6 10:13:16 2001 Owen Taylor <otaylor@redhat.com>
3209 * gdk/x11/gdkgc-x11.c: Fix misplaced HAVE_XFT.
3211 2001-11-05 Havoc Pennington <hp@redhat.com>
3213 * gtk/gtktextview.c (gtk_text_view_paint): expose the child
3215 (gtk_text_view_realize): set parent window of child widgets
3216 (gtk_text_view_size_request): use child req to decide whether
3217 to invalidate layout, not widget->requisition
3219 * gtk/gtktextdisplay.c (render_layout_line): set
3220 shaped_width_pixels for NULL shape objects, so that we properly
3221 draw the "missing pixbuf/widget" thing
3222 (render_layout_line): don't draw the widget here
3223 (gtk_text_layout_draw): pass out a list of widgets that need exposing
3225 * demos/gtk-demo/textview.c (insert_text): add demo of child
3228 * gtk/gtktextlayout.c (add_child_attrs): remove debug spew
3230 * gtk/gtktextdisplay.c (render_layout_line): remove debug spew
3232 * gtk/gtktextview.c (gtk_text_view_update_child_allocation): add
3234 (gtk_text_view_value_changed): poke new X and Y into child allocations
3236 2001-11-06 Tor Lillqvist <tml@iki.fi>
3238 * gtk/gtkmain.c (find_module): Do search GTK_BINARY_VERSION
3239 -specific directory on Windows, too (#63759).
3241 Mon Nov 5 12:46:44 2001 Owen Taylor <otaylor@redhat.com>
3243 * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkgc-x11.c
3244 gdk/x11/gdkpixmap-x11.c gdk/x11/gdkprivate-x11.h
3245 gdk/x11/gdkwindow-x11.c: Redo Xft support to go
3246 directly to Picture objects instead of using XftDraw.
3247 This fixes the problem where we weren't able to
3248 properly destroy XftDraw objects before destroying
3249 the accompanying windows, and probably improves
3250 efficiency a bit too. (#50214)
3252 Mon Nov 5 10:01:49 2001 Owen Taylor <otaylor@redhat.com>
3254 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position):
3255 Clamp max window width/height to 32767, not 32768 since
3256 we have to be able to deal with a dx/y of -32768 without
3257 getting a width of 65536 when guffaw scrolling.
3259 * gdk/x11/gdkgeometry-x11.c: Implement gdk_window_scroll()
3260 for the guffaw scrolling case, fixing some problems with
3261 copy-area case as well. Fix BadValue bug with moving windows
3264 * gdk/x11/gdkgeometry-x11.c (gdk_window_clip_changed): Update
3265 clip in window structue before calling gdk_window_invalidate_region
3266 since that trims new invalidations to the window's visible
3269 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_gravities):
3270 Really set the static window gravity on the children, not
3271 repeatedly on the window.
3273 * gtk/testgtk.c: Add a torture test for big windows and
3274 gdk_window_scroll().
3276 Sun Nov 4 17:36:08 2001 Manish Singh <yosh@gimp.org>
3278 * acconfig.h configure.in: sigsetjmp is macroized in some places,
3279 so use AC_TRY_LINK instead of AC_CHECK_FUNCS for the check.
3281 Sun Nov 4 19:16:23 2001 Owen Taylor <otaylor@redhat.com>
3283 * gdk/gdkcolor.c (gdk_color_parse): Implement gdk_color_parse()
3284 in terms of pango_color_parse().
3286 * gdk/{linux-fb,win32,x11}/gdkcolor-*.c: Remove port-specific
3287 gdk_color_parse() implementations.
3289 Sun Nov 4 18:39:43 2001 Owen Taylor <otaylor@redhat.com>
3291 * gtk/gtksizegroup.c (gtk_size_group_set_mode):
3292 queue_resize_on_group with both the old and new mode, not
3293 just the new mode. (#60171, Nicolas Setton). Also, notify
3294 the "mode" property.
3296 Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com>
3298 * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse()
3299 for use in "shallow invalidation" of a widget. (Windows belonging
3300 to the widget, but not to the widget's children)
3302 * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private
3303 flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set
3304 up on ancestors up to the resize container on queue_resize. Size
3305 requests only actually take place if GTK_REQUEST_NEEDED, size
3306 allocations only take place if GTK_ALLOC_NEEDED or the size
3309 * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove
3310 container->resize_widgets and the RESIZE_NEEDED flag since the
3311 above flags are sufficient to figure out what needs to be
3312 resized/reallocated. Remove code manipulating
3313 container->resize_widget.
3315 * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this
3316 allows widgets to turn off being automatically invalidated is when
3319 * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when
3320 a widget is resized or moved is "shallow" as described above -
3321 only the windows that need to be invalidated are invalidated.
3323 * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt:
3324 Make these widget's init functions call
3325 gtk_widget_set_redraw_on_allocate(widget,FALSE).
3327 * gtk/gtkwindow.c (gtk_window_configure_event): Call
3328 _gtk_container_queue_resize(), since we don't want
3329 redrawing. (Probably could be done for other
3330 calls to gtk_widget_queue_resize() in gtkwindow.c,
3331 but this is the most important one.)
3333 * gtk/gtkwindow.c (gtk_window_move_resize): Don't call
3334 gtk_widget_queue_draw() - size_allocate() handles
3335 that as appropriate.
3337 * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead
3338 of queue_clear() to avoid invalidating children.
3340 2001-11-04 jacob berkman <jacob@ximian.com>
3342 * gtk/gtkmain.c (find_module): don't free the module name until
3343 after we load the module
3345 Sat Nov 3 13:57:21 2001 Owen Taylor <otaylor@redhat.com>
3347 * gtk/gtkctree.c: Convert GTK_TYPE_CTREE_NODE to pointer
3348 derivation instead of boxed derivation.
3350 * gtk/gtkmarshal.list: Remove some now unused marshallers.
3352 2001-11-04 Tor Lillqvist <tml@iki.fi>
3354 * gtk/gtkimmodule.c: Can't include gtkprivate.h (I added the
3355 include yesterday, without really thinking), as that defeats the
3356 working of correct_libdir_prefix() (it becomes a no-op.). Add
3357 comment mentioning that. Thanks to Hans Breuer for noticing.
3359 2001-11-03 Daniel Elstner <daniel.elstner@gmx.net>
3361 * gtk/gtkwindow.h (frame_event): Use GtkWindow* as first
3362 signal argument (was GtkWidget*).
3364 * gtk/gtkwindow.c (gtk_window_frame_event),
3365 gtk/gtkwindow-decorate.c (gtk_decorated_window_frame_event):
3366 Fixed argument types as above, removed GTK_WINDOW casts and
3367 added some GTK_WIDGET casts instead.
3369 2001-11-03 Hans Breuer <hans@breuer.org>
3371 * gtk/gtkfilesel.c (gtk_file_selection_finalize) : chain
3372 finalize to parent class to get removed from the toplevel_list.
3373 Should fix 'random' crashes of #63474.
3375 * gtk/gtktreemodelsort.c : chain finalize() to parent class
3377 2001-11-03 Tor Lillqvist <tml@iki.fi>
3379 * modules/input/Makefile.am: Use -no-undefined on Windows. Look
3380 for .dll or .so as appropriate as module suffix.
3382 * gtk-zip.sh.in: Use correct import library names.
3384 * gtk/gtk.def: Add a couple of missing entry points. (#63585)
3386 * gtk/gtkimmodule.c (correct_libdir_prefix): New function, used on
3387 Windows to turn build-time paths from a gtk.immodules distributed
3388 as part of a binary package into runtime ones in the
3389 end-user-chosen installation directory.
3390 (gtk_im_module_init): Use it for module path and domain
3393 2001-11-02 Tor Lillqvist <tml@iki.fi>
3395 * gtk/gtkrc.c (gtk_rc_make_default_dir): Fix typo: extraneous
3396 comma. Include gtkprivate.h for GTK_LIBDIR etc definitions on
3399 2001-10-30 Tor Lillqvist <tml@iki.fi>
3401 * Makefile (install-data-hook): Use cp, not $(LN_S) on the .pc
3402 files. Configure on Win32 (running on Cygwin) thinks symlinks
3403 exist, but pkg-config is not necesarily a Cygwin program, and
3404 doesn't understand them.
3406 Fri Nov 2 16:45:17 2001 Jonathan Blandford <jrb@redhat.com>
3408 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Clean up height code
3409 a bit. I don't think it's completely correct yet, but it's
3412 Fri Nov 2 16:14:15 2001 Owen Taylor <otaylor@redhat.com>
3414 * gtk/gtkviewport.c (gtk_viewport_size_request): Remove
3415 random + 5 for width and height. If people want padding,
3416 they should add padding. (Note the +5 isn't padding
3417 that will always appear - it just appears in the case
3418 where the widget is allocated it's requisition.)
3419 (#51018, Janet Davis)
3421 Fri Nov 2 15:53:23 2001 Owen Taylor <otaylor@redhat.com>
3423 * gtk/gtkimcontext.h (struct _GtkIMContextClass): Pad
3424 the structure for future expansion.
3426 Fri Nov 2 15:30:34 2001 Owen Taylor <otaylor@redhat.com>
3428 Patch from HideToshi Tajima (#51922)
3430 * gtk/gtkimmulticontext.c: Proxy set_use_preedit().
3432 * gtk/modules/input/gtkimcontextxim.[ch]: Implement
3435 * gtk/modules/input/gtkimcontextxim.[ch]: If we have
3436 to destroy the input context because we change the
3437 client window or use_preedit, make sure we empty
3440 Fri Nov 2 14:55:53 2001 Owen Taylor <otaylor@redhat.com>
3442 * gtk/{gtkcolorseldialog.c,gtkfilesel.c,gtkfontsel.c,
3443 gtkgamma.c,gtkmessagedialog.c}: Go to the GUP
3444 proposed ordering of buttons with [OK] in the lower
3445 right hand corner. Patch from Gregory Merchan,
3448 Fri Nov 2 11:51:49 2001 Jonathan Blandford <jrb@redhat.com>
3450 * gtk/gtklabel.c (gtk_label_select_region_index): remove
3451 extraneous gtk_label_clear_layout (label)
3453 2001-11-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3455 * tests/makefile.msc, gtk/makefile.msc.in: Removed
3456 -DGTK_DISABLE_COMPAT_H.
3458 * docs/Changes-2.0.txt:
3459 s/GDK_DISABLE_COMPAT_H/GDK_DISABLE_DEPRECATED/
3461 * gtk/gtkcompat.h.in, gdk/gdkcompat.h: Removed from CVS.
3463 Fri Nov 2 10:21:03 2001 Owen Taylor <otaylor@redhat.com>
3465 * examples/**/Makefile.am: Convert to use pkg-config
3466 rather than gtk-config. (#53375, Skip Montanaro)
3468 2001-11-02 Matt Wilson <msw@redhat.com>
3470 * gtk/gtkdialog.c (find_child_by_response_id): remove totally
3471 broken unused, non-compiling, static function.
3473 Fri Nov 2 08:17:06 2001 Owen Taylor <otaylor@redhat.com>
3475 * gtk/gtkdialog.c (gtk_dialog_set_response_sensitive):
3476 Iterate through children of the action area, not of
3477 the vbox. (#58278, Sergey Kuzminov)
3479 2001-11-01 Havoc Pennington <hp@pobox.com>
3481 * gtk/gtktext.c (gtk_text_set_position): handle -1 argument in
3482 order to remove a workaround in Nautilus that forced
3485 * gtk/gtkwidget.c (gtk_widget_modify_style): fix typos in the docs
3487 Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com>
3489 * gtk/gtkrange.c: Patch from George Lebl to
3490 fix division by zero for full scroll bars. (#62114)
3492 Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
3494 * gtk/gtkmain.c (gtk_main_do_event): ref/unref
3495 around gtk_widget_event() if we are going to
3496 set a flag afterwards. (#63464)
3498 Thu Nov 1 19:44:48 2001 Owen Taylor <otaylor@redhat.com>
3500 * gtk/gtkiconfactory.c gtk/stock-icons/Makefile.am:
3501 Actually add the missing/broken image icon as the
3502 image for the "missing image" stock icon.
3504 Thu Nov 1 19:18:34 2001 Owen Taylor <otaylor@redhat.com>
3506 * demos/gtk-demo/stock_browser.c (do_stock_browser):
3507 Set a reasonable default height for the window.
3509 * demos/gtk-demo/stock_browser.c (id_to_macro): Fix
3510 bug where subsequent '-' weren't converted to '_'.
3511 (#59550, Matthias Clasen)
3513 * demos/gtk-demo/appwindow.c (menu_items): Don't right
3514 justify the Help menu - just include a comment on
3515 how to do it. (#63539, Marius Andreiana)
3517 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): Don't
3518 list GTK_ICON_SIZE_INVALID.
3520 * demos/gtk-demo/stock_browser.c: Show the biggest available
3521 size, not a fixed size. (Often reported, including #63539,
3524 Thu Nov 1 19:11:35 2001 Jonathan Blandford <jrb@redhat.com>
3526 * gtk/gtkrbtree.c (gtk_rbtree_reorder_fixup): Fix reorder_fixup,
3529 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): fix
3532 Thu Nov 1 16:54:00 2001 Owen Taylor <otaylor@redhat.com>
3534 * gtk/gtktypeutils.h: Make GtkFunction return boolean, not gint.
3537 Thu Nov 1 16:20:56 2001 Owen Taylor <otaylor@redhat.com>
3539 * gtk/gtkimcontext.[ch]: Add:
3540 - A ::retrieve_surrounding signal that asks the widget for
3541 context around the insertion point.
3542 - A ::delete_surrounding signal that asks the widget to
3543 delete context aroudn the insertion point.
3544 - gtk_im_context_set_context() for widgets to set context
3545 around the insertion point in response to ::retrieve_context.
3546 - gtk_im_context_get_context() for context to get context
3547 around the insertion point
3549 * gtkmarshal.list: Add BOOL:INT,INT
3551 * gtk/gtkimmulticontext.c: Proxy the get_surrounding() /
3552 set_surrounding() methods, and the ::retrieve_surrounding /
3553 ::delete_surrounding signals.
3555 * gtk/gtkentry.c gtk/gtktreeview.c: Hook up to the
3556 GtkIMContext::retrieve_surrounding / ::delete_surrounding
3559 Thu Nov 1 15:45:04 2001 Jonathan Blandford <jrb@redhat.com>
3561 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
3562 it's amazing how well things work sometimes, even when they're
3565 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
3566 where you could try to collapse a node w/o it having children.
3568 (gtk_tree_view_class_init): remove Shift L<->R as they already
3569 existed for expand/collapse.
3571 Thu Nov 1 12:21:31 2001 Jonathan Blandford <jrb@redhat.com>
3573 * gtk/gtktreeview.c (gtk_tree_view_focus_to_cursor): Fix crash
3574 found by Matt Wilson.
3576 Thu Nov 1 00:44:50 2001 Jonathan Blandford <jrb@redhat.com>
3578 * gtk/gtktreeview.c (gtk_tree_view_class_init): Support Shift,
3579 Control, and Shift|Control L<->R, #63475
3581 Wed Oct 31 18:53:51 2001 Jonathan Blandford <jrb@redhat.com>
3583 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): fix
3584 infinite loop noticed by yosh.
3586 2001-11-01 Michael Meeks <michael@ximian.com>
3588 * gtk/gtksocket.c (gtk_socket_unrealize): unset the
3589 GTK_REALIZED flag so we don't re-enter when we are
3590 destroyed from the plug side.
3592 Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com>
3594 * gtk/gtkoptionmenu.c (gtk_option_menu_detacher):
3595 Add a "menu" property and notify on it. (#62798,
3598 * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c,
3599 gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}:
3600 Fix set_text to take a gchar, not a guchar, and to have
3603 Wed Oct 31 15:31:13 2001 Manish Singh <yosh@gimp.org>
3605 * gtk/gtkstock.c: fix typo to make it compile
3607 Wed Oct 31 17:27:20 2001 Jonathan Blandford <jrb@redhat.com>
3609 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): if
3610 the widget is insensitive, draw the text insensitively, #63306
3612 2001-10-31 Matthias Clasen <matthiasc@poet.de>
3614 * gtk/gtkstock.c: Add stock items for most stock icons. (#61757)
3616 Wed Oct 31 16:53:48 2001 Jonathan Blandford <jrb@redhat.com>
3618 * gtk/gtktreednd.c (gtk_tree_set_row_drag_data): rename
3619 gtk_selection_data_set_tree_row, #60218
3620 (gtk_tree_get_row_drag_data): rename
3621 gtk_selection_data_get_tree_row, #60218
3623 * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): Actually
3624 get this right, after the third try, #63122.
3626 2001-10-31 jacob berkman <jacob@ximian.com>
3628 * gdk/gdkselection.h (GDK_TARGET_STRING):
3629 (GDK_SELECTION_TYPE_STRING): these should be 31, not 3. Hooray
3630 for Xatoms (and not using the XA_* macros)!
3632 Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
3634 * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
3635 gtk_window_get_focus() getter to determine the currently
3636 focused widget within the window. (#63145, request
3637 from Damian Ivereigh)
3639 Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
3641 * gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
3643 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Handle new
3644 GTK_SELECTION_NONE enum.
3645 (_gtk_tree_selection_internal_select_node): ditto
3647 * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): add
3650 * gtk/gtkcellrenderertoggle.c: more yummy constness.
3652 * gtk/gtkclist.c (gtk_clist_set_selection_mode): g_return_if_fail
3653 if mode == GTK_SELECTION_NONE
3655 Wed Oct 31 14:05:17 2001 Jonathan Blandford <jrb@redhat.com>
3657 * gtk/gtktreeview.c (gtk_tree_view_class_init): Added a
3658 "cursor_changed" signal, #62850.
3660 2001-10-31 Matt Wilson <msw@redhat.com>
3662 * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after
3663 allocating the treedatalist, zero it to make sure the values are
3664 cleared from any garbage that was in this chunk.
3666 2001-10-31 Murray Cumming <murrayc@usa.net>
3668 * gtk/cellrenderertext.h: "edited" default signal handler
3669 gchar* args are now const.
3670 gtk/cellrenderertoggle.h: "toggled" default signal handler
3671 gchar* arg is now const.
3672 Also changed other signal handlers for "edited" and "toggled" to
3673 have the same signature.
3675 Tue Oct 30 19:17:57 2001 Jonathan Blandford <jrb@redhat.com>
3677 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): massize
3678 rewrite. Static models now totally work. I'm not 100% sure about
3679 row_inserted and row_changed, but I'll get those later.
3681 2001-10-30 Sven Neumann <sven@gimp.org>
3683 * configure.in: use GLIB_AC_DIVERT_BEFORE_HELP() so we get proper
3684 output for configure --help.
3686 2001-10-30 Havoc Pennington <hp@pobox.com>
3688 * gtk/gtktextview.c (changed_handler): Update the IM spot location
3689 here, if text was invalidated in the visible area, because the
3690 scroll offset doesn't normally change in that case, and the mark
3691 isn't set, just implicitly moved over as text is added/removed
3693 Mon Oct 29 19:18:35 2001 Jonathan Blandford <jrb@redhat.com>
3695 * gtk/gtkseparatormenuitem.c: Code cleanup.
3696 (gtk_separator_menu_item_class_init): Fix bugs in this code.
3698 2001-10-29 jacob berkman <jacob@ximian.com>
3700 * gdk/Makefile.am (LDFLAGS):
3701 * gtk/Makefile.am (LDFLAGS): automake doesn't support conditionalized
3702 LDFLAGS, so put win32 flags in here
3704 Mon Oct 29 15:41:58 2001 Jonathan Blandford <jrb@redhat.com>
3706 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): Darn.
3707 I can't believe this took this long to fix.
3709 Mon Oct 29 13:54:49 2001 Jonathan Blandford <jrb@redhat.com>
3711 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered): fix
3714 Mon Oct 29 12:27:51 2001 Owen Taylor <otaylor@redhat.com>
3716 * gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
3717 the focus to the fileop entry for create dir / rename
3720 Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
3722 * configure.in: Don't use AC_CHECK_FILE to check for a
3723 file since it always spits warnings about cross compilation,
3724 use -f instead. It's not like we cross compile properly
3727 * configure.in (gtktargetlib): Move call to AC_PROG_CC
3728 to suppress autoconf warning.
3730 * acconfig.h: Add some missing #undefs from recent
3733 Mon Oct 29 11:31:40 2001 Owen Taylor <otaylor@redhat.com>
3735 * m4macros/gtk-2.0.m4: Don't try to use pkg-config
3736 when we didn't find it. (#62944, Eric Lemings)
3738 * m4macros/gtk-2.0.m4: Fix problem with spaces around =
3739 sign in assignment. (#63209, Arkadiusz Miskiewicz)
3741 2001-10-29 Anders Carlsson <andersca@gnu.org>
3743 * gtk/gtktreeview.c (gtk_tree_view_size_request): Calculate
3744 the buttons size request before using it. Fixes #61696.
3746 2001-10-29 Tor Lillqvist <tml@iki.fi>
3748 * README.win32: Updates.
3750 * gtk-zip.sh.in: New file, used to build distribution package for
3753 * gdk/gdkglobals.c: Mark gdk_threads_mutex for DLL export when
3754 applicable with GDKVAR.
3756 * gdk/win32/libwntab32x.la: New file, hand-written wrapper for the
3759 * gdk/win32/gdkwin32.h
3760 * gdk/win32/gdkprivate-win32.h: Reorganise to match corresponding
3761 X11 headers better, and to enable gdkwin32.h to be installed and
3762 included from applications, but not the *-win32.h headers.
3764 * gdk/win32/*.c: Corresponding small changes, simplifications of
3767 * gdk/win32/gdkregion-win32.c: Remove.
3769 * gdk/win32/gdkevents-win32.c (print_event): Add GDK_SETTING.
3771 * gdk/win32/gdkfont-win32.c
3772 * gdk/win32/gdkgeometry-win32.c: Remove unused variables.
3774 * gdk/win32/gdkproperty-win32.c (gdk_atom_intern): Don't insert
3775 GDK_NONE values into hash table.
3777 * gtk/gtk.def: Update.
3779 * gtk/gtkfilesel.c: Include <winsock.h> (if available) for
3783 * gtk/gtkrc.c: (Win32) Save actual DLL name for later use in DLL
3784 entry function. Avoid hardcoded paths GTK_LIBDIR, GTK_SYSCONFDIR,
3785 GTK_DATA_PREFIX and GTK_LOCALEDIR, instead add functions that call
3786 g_win32_get_package_installation_subdirectory() with the actual
3787 DLL name saved above. Redefine above directory name macros to call
3788 these functions. Remove some ifdefs.
3790 * gtk/maketypes.awk: Output GTKTYPEBUILTINS_VAR (that marks
3791 variable for export on Win32) also to the _vars file.
3793 Changes for autoconfiscated build on Win32, and addition of Win32
3794 backend to the related files:
3796 * configure.in: Like in GLib, set LT_CURRENT_MINUS_AGE for use
3797 when forming DLL name in some files. Set MS_LIB_AVAILABLE is
3798 lib.exe is available. Call AC_LIBTOOL_WIN32_DLL. Set
3799 PLATFORM_WIN32, OS_WIN32 and USE_WIN32 automake conditionals. Add
3800 win32 target, using pangowin32. Don't use the
3801 -export-symbols-regex option on Win32, we use .def files to list
3802 exported symbols. Check <winsock.h> (for gethostname() in
3803 gtkfilesel.c). Enclose nested AC_CHECK_* macros in brackets to
3804 prevent premature m4 expansion.
3806 * acconfig.h: Add HAVE_WINTAB.
3808 * gdk/Makefile.am: Add libgdk-win32-1.3.la target and associated
3809 macros and rules. Use -no-undefined on Win32. Use gdk.def file. If
3810 MS_LIB_AVAILABLE, build MS import library. Install the import
3811 libraries. If HAVE_WINTAB, link with the Wintab library.
3813 * gdk/win32/Makefile.am: Actually enable building the win32
3814 objects here, not just list all files in EXTRA_DIST. Link in the
3815 compiled resource file from rc/gdk-win32res.lo. If HAVE_WINTAB,
3816 copy the Wintab library into the .libs directory.
3818 * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Don't assume the
3819 name of the GDK DLL when fetching the icon. Use the HMODULE saved
3820 in gdk_dll_hinstance by DllMain.
3822 * gdk/win32/rc/Makefile.am: Build gdk-win32res.lo using the
3823 build/win32/lt-compile-resource script.
3825 * gdk/win32/rc/gdk.rc.in
3826 * gtk/gtk-win32.rc.in: Use the DLL name that libtool would use.
3828 * gtk/Makefile.am: Add libgtk-win32-1.3.la target and associated
3829 macros and rules. Use -no-undefined on Win32. Use gtk-win32.def
3830 file. Install import libraries.
3832 2001-10-29 Anders Carlsson <andersca@gnu.org>
3834 * gtk/gtkiconfactory.c (get_default_icons): Fix build.
3836 2001-10-28 Hans Breuer <hans@breuer.org>
3838 * gdk/gdk.c gdk/gdkevents.c
3839 gdk/win32/gdkcolor-win32.c gdk/win32/gdkdnd-win32.c
3840 gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
3841 gdk/win32/gdkfont-win32.c gdk/win32/gdkgc-win32.c
3842 gdk/win32/gdkim-win32.c gdk/win32/gdkmain-win32.c
3843 gdk/win32/gdkprivate-win32.h gdk/win32/gdkproperty-win32.c
3844 gdk/win32/gdkselection-win32.c gdk/win32/gdkwin32.h
3845 gdk/win32/gdkwindow-win32.c gdk/win32/gdkwindow-win32.h :
3846 static correct-ness, underscore prefixing of library internal
3848 (applied the undisputed and the win32 part. Of the latter
3849 I'm probably the one who will change it back again, if Owen
3850 decides that the Gdk*Impl types should not be private to Gdk)
3852 * gdk/gdk.def : added the remaining exported functions
3854 2001-10-28 Matthias Clasen <matthiasc@poet.de>
3856 * gtk/gtkcellrenderertoggle.c, gtk/gtkimcontextsimple.c,
3857 gtk/gtkimmulticontext.c, gtk/gtkimagemenuitem.c,
3858 gtk/gtkiconfactory.c, gtk/gtkwindow.c: Documentation updates.
3860 2001-10-28 jacob berkman <jacob@ximian.com>
3862 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): do not call
3863 gtk_settings_get_default() here as that requires an X connection
3864 (which breaks doc building with no X connection) and is not
3866 (gtk_color_selection_init): delay palette loading until realize
3868 (gtk_color_selection_realize): load the palette, and initialize
3869 the global palette if it hasn't been already
3871 * gtk/gtkpreview.c (gtk_preview_class_init): don't initialize the
3872 visual/cmap fields of klass->info since they are gone
3873 (gtk_preview_get_visual): just return gdk_rgb_get_visual ()
3874 (gtk_preview_get_cmap): just return gdk_rgb_get_colormap ()
3875 (gtk_preview_realize): don't set VISUAL and COLORMAP attributes
3877 * gtk/gtkpreview.h (struct _GtkPreviewInfo): remove visual and
3879 (gtk_preview_get_visual):
3880 (gtk_preview_get_cmap): mark as deprecated
3882 * docs/Changes-2.0.txt: add a little note about the GtkPreviewInfo
3885 Sun Oct 28 09:15:39 2001 Owen Taylor <otaylor@redhat.com>
3887 * gtk/gtkimcontext.h (struct _GtkIMContext): Fixed
3888 structure to have GObject not GtkObject as
3889 parent_instance. (Jeff Franks.)
3891 2001-10-27 Matthias Clasen <matthiasc@poet.de>
3893 * gdk/x11/gdkinput.c: Typo fix.
3895 2001-10-26 Havoc Pennington <hp@pobox.com>
3897 * gtk/gtktextview.c (gtk_text_view_mark_set_handler): Call
3898 update_im_spot_location here explicitly
3899 (gtk_text_view_reset_im_context): don't update the spot location
3902 2001-10-27 Anders Carlsson <andersca@gnu.org>
3904 * gtk/gtktreemodel.c (gtk_tree_model_get): Fix typo in docs.
3907 * gtk/gtkspinbutton.c (gtk_spin_button_new_with_range):
3908 Clarify that we're returning a spin button in the _new function.
3911 Fri Oct 26 20:55:57 2001 Owen Taylor <otaylor@redhat.com>
3913 * gtk/gtkbutton.c: Revert changes to GTK_RUN_LAST.
3914 Unfortunately, people apparently erroneously connect
3915 to ::clicked for GtkToggleButton and expect
3916 they know what happened in the default signal handler
3917 instead of appropriately connecting to notification
3918 signal ::toggled. When the revolution comes, such
3919 people will be first against the wall.
3921 We'll just have to go back to the old less-reliable
3922 set-it-back hacks for handling model-view check
3923 buttons and radio buttons. :-(.
3925 2001-10-27 Hans Breuer <hans@breuer.org>
3927 * gtk/gtkbbox.c gtk/gtkctree.c gtk/gtkhbbox.c
3928 gtk/gtkimmulticontext.c gtk/gtklabel.c gtk/gtkliststore.c
3929 gtk/gtkmenu.c gtk/gtkpaned.c gtk/gtkrc.c gtk/gtkscale.c
3930 gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
3931 gtk/gtktexttag.c gtk/gtktexttagtable.c gtk/gtktextview.c
3932 gtk/gtktreestore.c gtk/gtkvbbox.c :
3933 to simplify parsing for exported functions:
3934 - made implementation signature static, when the local
3935 prototype already was
3936 - put the functions return value on it's own line
3937 - added as space between the function name and the
3940 * gtk/gtk.def : added the remaining exported functions
3942 2001-10-27 Anders Carlsson <andersca@gnu.org>
3944 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
3945 Add note about width having to be greater than 0. This fixes
3948 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_start):
3949 Fix docs to say previous instead of next.
3950 (gtk_text_iter_backward_word_start): Likewise.
3951 This fixes bug #62980.
3953 * gtk/gtkcontainer.c (gtk_container_set_border_width): Mention
3954 that the valid width is in range 0-65535 pixels. Fixes bug
3957 * gtk/gtksizegroup.c (gtk_size_group_set_mode): Remove
3958 a dot in the documentation. Fixes bug #62632.
3960 * gdk/x11/gdkmain-x11.c: Replace int and guint with
3961 long and gulong in some places to make the code 64-bit
3963 (_gdk_windowing_init_check): Replace gint with gulong.
3964 This patch was made by George Lebl and fixes bug #62113.
3966 * tests/testgtk.c (create_range_controls): Don't set a
3967 fixed height on the hscale widget. This fixes "bug"
3969 (create_window_states): Set up destroy signals so that
3970 all windows will be destroyed when one is. This fixes
3973 2001-10-26 Anders Carlsson <andersca@gnu.org>
3975 * gtk/gtktreeview.c:
3976 (gtk_tree_view_class_init): Create new "indent_expander"
3979 (gtk_tree_view_get_arrow_xrange): Add a tree argument
3980 to the function since the xrange can change depending
3981 on where in the tree we are.
3983 (coords_are_over_arrow): Update function call to
3984 gtk_tree_view_get_arrow_xrange.
3985 (gtk_tree_view_draw_arrow): Likewise.
3987 (gtk_tree_view_real_expand_collapse_cursor_row):
3988 Call real_{expand|collapse}_row, so that we'll have an
3991 Fri Oct 26 20:13:36 2001 Kristian Rietveld <kristian@planet.nl>
3993 * tests/Makefile.am: fixed a small typo
3995 Fri Oct 26 18:27:11 2001 Kristian Rietveld <kristian@planet.nl>
3997 * demos/gtk-demo/list_store.c (create_model): Anders
3998 Carlsson suggested to use G_N_ELEMENTS here
4000 2001-10-26 Sven Neumann <sven@gimp.org>
4002 * gtk/gtkbutton.[ch]
4003 * gtk/gtkdnd.c: fixed inline comments
4005 * gtk/gtkgamma.c: gtk_entry_get_text() returns a const gchar.
4007 2001-10-26 Hans Breuer <hans@breuer.org>
4009 * gdk-pixbuf/gdk_pixbuf.def :
4011 * gtk/gtk.def : updated externals
4013 * gdk/win32/gdkpixmap-win32.c : removed duplicate of
4014 gdk_window_lookup implementation. It already was in
4015 gdk/win32/gdkwindow-win32.c
4017 * gdk/win32/gdkproperty-win32.c : made it compile again
4018 after GdkAtom API change
4020 * gtk/gtk/makefile.msc.in : updated
4022 Wed Oct 24 11:36:33 2001 Owen Taylor <otaylor@redhat.com>
4024 * configure.in (GTK_MICRO_VERSION): Version 1.3.10,
4025 require GLib 1.3.10.
4029 Thu Oct 25 16:27:29 2001 Jonathan Blandford <jrb@redhat.com>
4031 * gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
4033 (_gtk_rbnode_rotate_right): Ditto.
4034 (_gtk_rbtree_node_mark_invalid): New function.
4035 (_gtk_rbtree_node_mark_valid): New function.
4037 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
4038 GObject, not a GtkObject.
4039 (gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
4041 (gtk_tree_model_sort_row_deleted): ditto.
4042 (gtk_tree_model_sort_{un,}ref_node): Fix.
4044 * gtk/gtktreeview.c: Protean incremental reflow support (commented
4047 * gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
4050 * gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
4051 Important 1 line fix to fix a lot of refcounting woes.
4053 2001-10-25 Matt Wilson <msw@redhat.com>
4055 * gtk/gtktextview.c (gtk_text_view_destroy): call
4056 gtk_text_view_destroy_layout after gtk_text_view_set_buffer (which
4057 now invalidates) so that we remove our idle functions.
4058 (gtk_text_view_destroy_layout): remove the first_validate_idle as
4061 * gtk/gtktexttag.c (gtk_text_tag_class_init): the valid range for
4062 the 'indent' property is G_MININT to G_MAXINT. Don't use
4063 -G_MAXINT for the minimum of the 'rise' property, use G_MININT
4066 2001-10-24 Anders Carlsson <andersca@gnu.org>
4068 * gtk/gtktreeview.c:
4069 (gtk_tree_view_real_expand_row): add an animate argument
4070 (gtk_tree_view_real_collapse_row): likewise
4072 (gtk_tree_view_button_press), (gtk_tree_view_button_release),
4073 (gtk_tree_view_collapse_all), (gtk_tree_view_expand_row),
4074 (gtk_tree_view_collapse_row): update functions that call
4075 real_{expand|collapse}_row to set the animate argument
4078 2001-10-24 Alex Larsson <alexl@redhat.com>
4080 * gdk/linux-fb/gdkfont-fb.c:
4081 Update to new Pango APIs
4083 * gdk/linux-fb/gdkproperty-fb.c:
4084 Update to new GdkAtom APIs
4086 * gdk/linux-fb/gdkwindow-fb.c:
4089 Mon Oct 22 20:07:21 2001 Jonathan Blandford <jrb@redhat.com>
4091 * gtk/gtktreestore.c (gtk_tree_store_prepend): Fix docs, #62808
4093 Wed Oct 24 22:54:07 2001 Kristian Rietveld <kristian@planet.nl>
4095 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
4096 s_path as a child path
4098 Wed Oct 24 20:29:47 2001 Kristian Rietveld <kristian@planet.nl>
4100 * gtk/gtktreemodelsort.c: more changes in an attempt to get
4101 it right. It's not yet ready for general consumption.
4103 * tests/treestoretest.c: add a button and entry for the new
4104 iter_change function
4105 (iter_change): new function, to test
4106 the row_changed signal implementation of the GtkTreeModelSort
4108 * tests/testtreesort.c: cleanups, changes to test more features
4109 of the GtkTreeModelSort at once
4111 2001-10-24 Havoc Pennington <hp@redhat.com>
4113 * gtk/gtktextbuffer.c (clipboard_clipboard_buffer_received):
4114 remove hack to strip off the bogus newline, since we killed the
4115 bogus newline; fixes #61779
4117 2001-10-24 Havoc Pennington <hp@redhat.com>
4119 * gtk/gtktextview.c (gtk_text_view_update_adjustments): don't
4120 create layout if we didn't have one
4121 (gtk_text_view_set_buffer): invalidate so we get the idle handlers
4122 as appropriate, avoids blanking the screen
4123 (gtk_text_view_invalidate): new function to do invalidation,
4124 containing old guts of invalidated_handler
4126 Wed Oct 24 10:29:47 2001 Owen Taylor <otaylor@redhat.com>
4128 * gtk/gtkalignment.c (gtk_alignment_class_init): Improve
4131 Tue Oct 23 17:31:42 2001 Owen Taylor <otaylor@redhat.com>
4133 * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c: Always
4134 set window->parent (except or the root window itself); if
4135 the window's parent is not a GdkWindow, or is a window of
4136 type GDK_WINDOW_FOREIGN, set window->parent to the root parent.
4138 * gdk/gdkwindow.c (gdk_window_get_toplevels): Don't include
4139 windows of type GDK_WINDOW_FOREIGN.
4141 2001-10-24 Havoc Pennington <hp@pobox.com>
4143 * gtk/gtktextiter.c (gtk_text_iter_backward_chars): if we move to
4144 the front of a segment, use the "slow" technique for moving
4145 backward, so we don't mess up the any_segment field in the iter.
4148 * tests/testtextbuffer.c: add code to detect #57707, to avoid
4151 2001-10-23 Havoc Pennington <hp@redhat.com>
4153 * gtk/gtktextview.c (popup_targets_received): only sensitize Cut
4154 if selection contains some editable text, #60975
4155 (gtk_text_view_scroll_to_iter): remove warning about scrolling
4156 prior to map; it should actually be OK to do so in many cases,
4157 it would be nice to warn about scrolling when many lines have
4158 height 0, but I don't know what to do about that. Perhaps
4159 move part of flush_scroll into this function? comment added
4162 2001-10-23 Havoc Pennington <hp@redhat.com>
4164 * gtk/gtktextview.c (changed_handler): Correctly keep the same
4165 text on the top of the screen, considering that the changed region
4166 may have overlapped the first paragraph. Should fix msw's "text
4167 widget scrolled to wrong place on map" bug, and probably some
4168 other scrolling cases as well.
4169 (gtk_text_view_set_scroll_adjustments): start adjustments at 0.0,
4170 instead of some random value
4172 * gtk/gtktextview.c (gtk_text_view_class_init): actually override
4173 grab_focus, so #59708 is really fixed
4175 2001-10-24 Anders Carlsson <andersca@gnu.org>
4177 * gtk/gtkentry.c: (append_action_signal): Use an image menu item here
4178 (popup_targets_received): Call append_action_signal with stock items
4180 * gtk/gtklabel.c: (append_action_signal): Use an image menu item here
4181 (gtk_label_do_popup): Call append_action_signal with stock items
4183 * gtk/gtktextview.c: (append_action_signal): Use an image menu item here
4184 (popup_targets_received): Call append_action_signal with stock items
4186 2001-10-23 Havoc Pennington <hp@redhat.com>
4188 * gtk/gtktextview.c (changed_handler): queue a resize here; will
4189 temporarily slow down the widget a lot, until we figure out how to
4190 optimize to avoid full redraw everytime we queue a resize.
4192 2001-10-23 Havoc Pennington <hp@redhat.com>
4194 * gtk/gtktextiter.c (test_log_attrs): handle case where offset ==
4195 0 and char_len == 0, bug #61729
4197 2001-10-23 Havoc Pennington <hp@redhat.com>
4199 * gtk/gtktextiter.c (gtk_text_iter_forward_cursor_positions): fix
4200 return value, #61714 (Vitaly Tishkov)
4201 (gtk_text_iter_backward_sentence_starts): ditto
4202 (gtk_text_iter_backward_word_starts): ditto
4203 (gtk_text_iter_forward_word_ends): ditto
4204 (gtk_text_iter_forward_sentence_ends): ditto
4205 (gtk_text_iter_backward_cursor_positions): ditto
4207 2001-10-23 Havoc Pennington <hp@redhat.com>
4209 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_pixel): Apply
4210 fix from Dov Grobgeld, #61858
4212 2001-10-23 Havoc Pennington <hp@redhat.com>
4214 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
4215 Update IM spot location at appropriate times, #50626
4218 2001-10-23 Havoc Pennington <hp@redhat.com>
4220 * gtk/gtktextview.c (gtk_text_view_grab_focus): scroll to cursor
4221 on grab focus, unless it's caused by button click, #59708
4223 Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com>
4225 * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS.
4227 * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font()
4228 G_CONST_RETURN. (Murray Cumming)
4230 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text):
4231 Make G_CONST_RETURN.
4233 * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing
4234 results of g_get_home_dir().
4236 * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated
4237 copy. Storing the return from gtk_entry_get_text() is evil.
4239 * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c
4240 gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c
4241 gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c
4242 gtk/gtksignal.c: Add const.
4244 * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const.
4246 * gtk/gtktreeview.c: Namespace object data keys to be safe, even
4247 if we are setting them on private widgets.
4249 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4250 Duplicate entry->text before setting it as object data.
4252 2001-10-22 Havoc Pennington <hp@redhat.com>
4254 * gtk/gtktextbuffer.c (gtk_text_buffer_place_cursor): don't back
4255 up a char from the end iterator, fixes #61859 ("can't put cursor
4256 at the end of the buffer")
4258 * gtk/gtktextiter.c (gtk_text_iter_forward_to_line_end): fix this
4259 to work with delimiters other than newline.
4261 * tests/testtextbuffer.c: add some tests for get_chars_in_line,
4264 * gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): fix for the
4265 last line, since the newline is no longer counted.
4266 (gtk_text_iter_get_bytes_in_line): ditto
4268 2001-10-22 Havoc Pennington <hp@redhat.com>
4270 * gtk/gtktextbtree.c (_gtk_text_btree_insert): add assertion that
4271 #58290 would trigger if it reappeared, I think
4273 2001-10-22 Havoc Pennington <hp@redhat.com>
4275 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
4276 add temporary code to dump btree contents on assertion failure
4279 * gtk/gtktextbtree.c (ensure_end_iter_segment): add some
4280 assertions that we're getting the right end iter segment
4282 * gtk/gtktextiter.c (_gtk_text_iter_forward_indexable_segment):
4283 verify that we aren't on the end iterator after moving
4284 forward one segment - fixes return value in an obscure case.
4285 Also, some trivial code cleanup/rearranging.
4287 2001-10-22 Havoc Pennington <hp@redhat.com>
4289 * gtk/gtktextlayout.h: add a #error unless you define
4290 GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API, so people don't use this accidentally
4292 * gtk/gtktext*.c: #define GTK_TEXT_USE_INTERNAL_UNSUPPORTED_API as appropriate.
4294 2001-10-22 Havoc Pennington <hp@redhat.com>
4296 * gtk/gtktextview.c (gtk_text_view_get_border_window_size): fix
4299 2001-10-22 Havoc Pennington <hp@redhat.com>
4301 * gtk/gtktextview.c (gtk_text_view_get_window_type): fix
4304 2001-10-22 Havoc Pennington <hp@redhat.com>
4306 * gtk/gtktextview.c (gtk_text_view_set_border_window_size): Fix
4309 Mon Oct 22 11:47:47 2001 Owen Taylor <otaylor@redhat.com>
4311 * gtk/gtklabel.c: Add cursor-position, selection-bound
4312 properties. (#62148, reported by Padraig O'Briain)
4314 * gtk/gtkentry.c (gtk_entry_class_init): Rename text_position
4315 to cursor_position. (1.3.x addition, text_position is an awful
4316 name.) Make cursor_position read-only to avoid sticky questions
4317 of interaction with selection_bound. (#62636, reported by
4320 Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com>
4322 Fixing popup menus to have "Paste" sensitized correctly. Original
4323 patches from Damian Ivereigh, much mangled.
4325 * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(),
4326 gtk_selection_data_targets_include_text(). (#60854)
4328 * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if
4329 the clipboard has text" function gtk_clipboard_wait_is_text_available.
4332 * gtk/gtkentry.c: Only enable the paste item if the clipboard
4333 contains text. (#60973)
4335 * gtk/gtktextview.c: Only enable the paste item if the clipboard
4336 contains text. (#60975)
4338 2001-10-22 Havoc Pennington <hp@redhat.com>
4340 * gtk/gtktextview.c (gtk_text_view_class_init): rip out
4341 "height_lines" and "width_columns" properties, it doesn't make
4342 sense to set the size request on a text view really. #62103
4344 Mon Oct 22 15:17:05 2001 Jonathan Blandford <jrb@redhat.com>
4346 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): Realized
4347 g_node_depth is broken, and that it's not worth being consistent
4350 2001-10-22 Havoc Pennington <hp@redhat.com>
4352 * gtk/gtktextiter.c (gtk_text_iter_set_line): Clarify behavior in
4354 (gtk_text_iter_forward_search) (gtk_text_iter_backward_search):
4355 change the two boolean args to a flags field, so we can extend
4356 to add case insensitive, regexp searches later. #61852
4358 Mon Oct 22 15:07:17 2001 Jonathan Blandford <jrb@redhat.com>
4360 * gtk/gtktreestore.c (gtk_tree_store_iter_depth): update docs to
4361 reflect reality, #62810
4363 Mon Oct 22 14:08:26 2001 Jonathan Blandford <jrb@redhat.com>
4365 * demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
4367 * gtk/gtktreeview.c (size_allocate): Move to a different drawing
4368 system. Instead of having a window the size of the tree, we have
4369 a window the size of widget->allocation, and simply draw with the
4371 (coords_are_over_arrow): ditto. Move to window coordinates.
4372 (do_prelight): ditto
4373 (do_unprelight): ditto
4375 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
4376 Minor fix from Kristian Rietveld to fix unsorted case.
4378 2001-10-22 jacob berkman <jacob@ximian.com>
4380 * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
4381 a PIXMAP cell (fixes crash when using PIXTEXT cells)
4383 Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
4385 * gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
4386 (#58768, Vitaly Tishkov)
4388 * gtk/gtkobject.h: Deprecate with abandon.
4389 (#61942, Vitaly Tishkov, Matthias Clasen)
4391 * gtk/gtksignal.h: Deprecate everything.
4393 * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate
4394 all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE>
4395 (#61942, Matthias Clasen)
4397 * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140,
4400 * gtk/gtkitemfactory.h: Deprecate compat functions
4401 for GtkMenuFactory code. (#62071)
4403 * gdk/gdkdrawable.h: Deprecate gdk_draw_string,
4404 gdk_draw_text,gdk_draw_text_wc. (#62071)
4406 Mon Oct 22 10:12:08 2001 Owen Taylor <otaylor@redhat.com>
4408 * gdk/gdk.c docs/Changes-2.0.txt (gdk_threads_init): Don't call
4409 g_thread_init(), we don't want to link to -lgthread if we don't
4412 Mon Oct 22 08:51:02 2001 Owen Taylor <otaylor@redhat.com>
4414 * gdk/gdk.[ch] (gdk_threads_init) docs/Changes-2.0.txt:
4415 Add a function, gdk_threads_init() that must be explicitely
4416 called to enable the GDK thread mutex.
4418 2001-10-22 Jakub Steiner <jimmac@ximian.com>
4420 * gtk/stock-icons/stock_stop.png: no body parts
4422 Sun Oct 21 23:27:00 2001 Owen Taylor <otaylor@redhat.com>
4424 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
4425 problem with g_return_if_fail return value.
4427 * gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
4428 virtual atom code from the gdk-multihead branch, removing the per-display
4429 part. Virtualizing atoms needs to be done now to prevent compat
4430 breakage in direct Xlib accessing code in the future. (#62208)
4432 * gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
4433 gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
4435 * gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
4436 an opaque pointer type so the compiler catches attempts
4437 to mingle it with X atoms.
4439 * gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
4440 gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
4441 gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
4442 gtk/{gtkclist.c,gtkctree.c,gtkdnd.c,gtkplug.c,gtksocket.c}
4443 tests/testdnd.c,tests/testselection.c:
4444 Fix up for above atom changes.
4446 * gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
4447 now have the ability to add custom predefines.
4449 * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
4450 Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
4451 to gtk_clipboard_get().
4453 * gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
4454 for GdkAtom => pointer change.
4456 * gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
4457 atoms, fix for GdkAtom => pointer change.
4459 Mon Oct 22 00:26:46 2001 Kristian Rietveld <kristian@planet.nl>
4461 * gtk/gtkspinbutton.c: remove ARROW_SIZE constant, use
4462 new function spin_button_get_arrow_size() instead.
4464 * gtk/gtkstyle.c (gtk_default_draw_arrow): actual size of
4465 arrow was hardcoded, it's now variable.
4469 Sat Oct 20 18:16:04 2001 Manish Singh <yosh@gimp.org>
4471 * gtk/gtktreeview.c (gtk_treeview_get_property): PROP_MODEL and
4472 PROP_EXPANDER_COLUMN can be NULL, so don't do a object cast check
4475 Sat Oct 20 19:38:16 2001 Owen Taylor <otaylor@redhat.com>
4477 * demos/*.c demos/gdk-pixbuf/*.c: Eliminate gtk_signal_*
4478 in favor of g_signal_*, gtk_object_* in favor of
4481 Fri Oct 19 18:35:22 2001 Manish Singh <yosh@gimp.org>
4483 * gtk/{gtkentry.c,gtktextview.c}: since GtkIMContext derives directly
4484 from GObject now, we have to use the g_object_* functions, not
4487 Fri Oct 19 22:46:54 2001 Kristian Rietveld <kristian@planet.nl>
4489 * gtk/gtktreemodelsort.[ch]: we probably have rows_reordered
4490 nailed down now (this code is not yet ready for general consumption)
4492 Fri Oct 19 13:44:51 2001 Manish Singh <yosh@gimp.org>
4494 * gtk/gtktreeview.c (gtk_treeview_scroll_to_cell): correct docs
4497 Fri Oct 19 15:34:06 2001 Owen Taylor <otaylor@redhat.com>
4499 * gtk/gtk.h gtk/Makefile.am: Export GtkIMContextSimple publically. (#61862)
4501 Fri Oct 19 15:08:30 2001 Owen Taylor <otaylor@redhat.com>
4503 * gtk/{gtkimcontext.c,gtkimcontextsimple.c,gtkimmulticontext.c}
4504 modules/input/{gtkimcontextxim.c,imcyrillic-translit.c,iminuktitut.c,
4505 imipa.c,imthai-broken.c,imviqr.c}: Make GtkIMContext derive from
4506 GObject, not GtkObject. (#62621)
4508 Fri Oct 19 12:49:12 2001 Owen Taylor <otaylor@redhat.com>
4510 * tests/testsocket.c: Remove now useless include of unistd.h,
4511 fix wrong argument gtk_socket_steal. (Hans Breuer, #58541)
4513 Fri Oct 19 12:24:32 2001 Owen Taylor <otaylor@redhat.com>
4515 * gdk/linux-fb/gdkfont-fb.c: Fix up for change to
4516 Pango font API. #61933. (Untested, even for compilation.)
4518 Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com>
4520 * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually
4521 export gtk_disable_setlocale(). (Caught by Sven Neumann)
4523 2001-10-18 Havoc Pennington <hp@redhat.com>
4525 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_lookup): fix compilation
4527 2001-10-18 Havoc Pennington <hp@redhat.com>
4529 * gtk/gtkbutton.c (gtk_button_class_init): Change button signals
4530 to GTK_RUN_LAST, #50239
4532 2001-10-18 HideToshi Tajima <hidetoshi.tajima@sun.com>
4534 * gtk/gtkimmodule.c (match_locale):
4535 Support "*" for all locales with least priority
4536 when to select default im module, #58201
4538 2001-10-18 Matthias Clasen <matthiasc@poet.de>
4540 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode):
4543 * gtk/gtkplug.c (gtk_plug_get_id) : Fix docs. (#62144)
4545 * gtk/gtkliststore.c: Fix docs. (#61672, #61675)
4547 * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h,
4548 gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c,
4549 gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c,
4550 gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h,
4551 gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c:
4552 Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup
4553 and gkd_pixmap_foreign_new to the gdk frontend api. (#62063)
4555 * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
4557 * gtk/gtkspinbutton.c (gtk_spin_button_size_request):
4558 Don't restrict the width of the spinbutton entry field
4559 to 10 digits. (#58681)
4561 Thu Oct 18 14:58:14 2001 Jonathan Blandford <jrb@redhat.com>
4563 * tests/testtreeflow.c: new test program for the tree.
4565 Thu Oct 18 14:22:10 2001 Jonathan Blandford <jrb@redhat.com>
4567 * gtk/gtktreestore.c (gtk_tree_store_remove): fix small bug
4568 reported by (Oleg Maiboroda), #62600
4570 2001-10-18 Michael Meeks <michael@ximian.com>
4572 * gtk/gtkentry.c (gtk_entry_set_property),
4573 (gtk_entry_get_property): impl 'text'
4574 (gtk_entry_class_init): add the 'text' prop.
4575 (gtk_entry_insert_text): notify 'text' changed.
4576 (gtk_entry_delete_text): ditto.
4578 2001-10-17 Matthias Clasen <matthiasc@poet.de>
4580 * gtk/gtkdnd.c, gtk/gtkclipboard.c, gdk/x11/gdkmain-x11.c:
4581 Documentation updates.
4583 Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
4585 * gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
4586 in truncating length of text to MAX_SIZE. (Found by
4587 Padraig O'Briain, #62055)
4589 Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
4591 * gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to
4592 MNEMONIC_ACTIVATE; signal was changed a long time
4595 * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale):
4596 Fix wrong return statement. (Reported by HideToshi
4599 * gtk/gtklabel.h (struct _GtkLabelClass): Remove
4600 left over select_all vfunc.
4602 Tue Oct 16 15:50:03 2001 Owen Taylor <otaylor@redhat.com>
4604 * gtk/gtkwidget.c (gtk_widget_translate_coordinates): Add
4605 a utility function to translate coordinates relative to
4606 one widget's allocation to coordinates relative to another
4607 widget's allocation.
4609 * gtk/gtkradiobutton.c: Add a special ->focus() implementation
4611 - only accepts external focus if there is no active
4612 member of the group or the button is active.
4613 - makes arrow keys move the active button as well
4615 - make tab tab out directly.
4616 This makes a radio button group act as a single focus location.
4619 * gtk/gtkcontainer.c (gtk_container_focus): Remove prefiltering -
4620 it was only a small optimization that didn't matter and made
4621 things more complicated.
4623 * gtk/gtkcontainer.c (gtk_container_focus_tab): Get rid of custom
4624 sorter for FOCUS_TAB as we did for the other focus directions,
4625 sort by center of widgets, not upper-left corner. (Shouldn't
4628 * gtk/gtkcontainer.c: Restructure code to remove duplicate code
4629 from the different types of focusing: encapsulate sorting the
4630 widgets for the focus direction into one routine
4631 (gtk_container_focus_sort()) and then share the work of moving the
4632 focus between the different focus directions.
4634 * gtk/gtkcontainer.c: Fix bug where arrow navigation might not
4635 work correctly with focus chains containing non-immediate
4636 children. Sorting was being done using allocation coordinates for
4637 each widget in the focus chain, and if there were intermediate
4638 window-widgets, these allocations would not be in the same
4641 Tue Oct 16 15:12:26 2001 Jonathan Blandford <jrb@redhat.com>
4643 * gtk/gtkoptionmenu.c (gtk_option_menu_mnemonic_activate): add a
4644 mnemonic_activate function to option menu.
4646 2001-10-15 Murray Cumming <murrayc@usa.net>
4648 * gtk/gtkinputdialog.c, gtk/gtktoolbar.c, gtk/gtkwidget.c:
4649 Corrected the type names used in some calls to g_signal_new().
4651 Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org>
4653 * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern
4654 specs, use g_pattern_spec_equal() instead of direct field accesses.
4655 upon compressing two equal paths of the same type, the resulting
4656 priority has to be the maximum.
4657 * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the
4658 GtkPathPriorityType enum and make it a macro.
4660 2001-10-12 Matthias Clasen <matthiasc@poet.de>
4662 * gtk/gtkwidget.c: Fix some doc comments.
4664 Fri Oct 12 11:39:20 2001 Joshua N Pritikin <vishnu@pobox.com>
4666 * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work
4669 2001-10-11 Matthias Clasen <matthiasc@poet.de>
4671 * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c:
4672 Remove stale gdk backend includes.
4674 2001-10-10 Michael Meeks <michael@ximian.com>
4676 * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty
4677 and value_in_list properties.
4678 (gtk_combo_set_value_in_list): notify change.
4679 (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
4681 2001-10-11 James Henstridge <james@daa.com.au>
4683 * configure.in: add AS=CC and ASFLAGS=CFLAGS substitutions so
4684 that gtk+ can be built with automake 1.5 while not breaking
4685 things for automake 1.4.
4687 Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com>
4689 * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, "").
4692 * gtk/gtkmain.c (gtk_disable_setlocale): Add function
4693 to disable calling setlocale (LC_ALL, "").
4695 * gtk/gtkmain.c (gtk_set_locale): Indicate in the
4696 docs that this function is not typically useful.
4698 * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}:
4699 Automatically initialize GDK for the current locale
4700 on gdk_init(). Don't reset locale to C when
4701 XSupportsLocale() fails.
4703 * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove
4704 useless checks for UTF-8 locale breakage that mattered
4707 * examples/calendar/calendar.c
4708 tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to
4711 * gtk/gtkiconfactory.c gtk/gtkitemfactory.c:
4712 gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
4714 Wed Oct 10 21:13:46 2001 Kristian Rietveld <kristian@planet.nl>
4716 * gtk/gtktreemodel.[ch]: added gtk_tree_model_get_iter_from_string().
4720 Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com>
4722 * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected):
4723 new function, #61923
4724 (gtk_tree_selection_path_is_selected): Ditto
4726 Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com>
4728 * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject,
4729 not a GtkObject. Thanks andersca.
4731 * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
4733 Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com>
4735 * gtk/gtktreeviewcolumn.c
4736 (gtk_tree_view_model_sort_column_changed): fix broken code.
4738 2001-10-08 Matthias Clasen <matthiasc@poet.de>
4740 * gtk/gtkselection.c: s/succesfully/successfully/g
4742 2001-10-08 Havoc Pennington <hp@pobox.com>
4744 * demos/gtk-demo/stock_browser.c: remove unused enum
4746 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
4747 pass the current selection state of the node in to the user
4750 2001-10-06 Matthias Clasen <matthiasc@poet.de>
4752 * gdk/x11/gdkx.h (GDK_CURSOR_XCURSOR): Replace reference to
4753 non-existent function gdk_x11_cursor_get_xid
4754 by gdk_x11_cursor_get_xcursor.
4756 Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com>
4758 * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve
4761 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and
4762 unref nodes, #okay61676
4764 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen
4765 to the property; no need to clear the other columns. Also, we go
4766 to 'unsorted' if the model supports it.
4768 2001-10-05 Sven Neumann <sven@gimp.org>
4770 * demos/testpixbuf-save.c
4771 * demos/testpixbuf-scale.c: simple tests for the new PNG tEXt chunk
4774 Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl>
4776 * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should
4777 destroy the search dialog
4779 * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
4780 added check to prevent creation of a search dialog if there's
4783 * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use
4784 it instead of "search-dialog" (when getting/setting the search dialog
4787 2001-10-05 Jakub Steiner <jimmac@ximian.com>
4789 * gtk/stock-icons/stock_broken_image.png: broken images icon
4791 2001-10-04 Havoc Pennington <hp@pobox.com>
4795 * gtk/gtksettings.c (gtk_settings_class_init): move the F10
4796 accelerator setting here...
4798 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here,
4799 because we try to use it when a menu bar hasn't necessarily been
4802 2001-10-03 Havoc Pennington <hp@redhat.com>
4804 * tests/testtextbuffer.c (logical_motion_tests): fix test case,
4805 it previously verified incorrect behavior
4809 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
4811 (_gtk_text_btree_get_iter_at_line_char): don't return lines off
4813 (_gtk_text_btree_get_iter_at_line_byte): don't return lines off
4815 (gtk_text_iter_forward_lines): if on the last line, move to end of
4818 * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
4819 don't return a line off the end
4821 Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl>
4823 * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual
4824 functions to do_insert_text and do_delete_text, add signals
4825 insert_text, delete_text and changed
4827 * gtk/gtkentry.[ch]: remove signals insert_text, delete_text
4828 and changed. Updates to match new situation.
4830 * gtk/gtkspinbutton.c: updates to match new situation
4832 * gtk/gtkoldeditable.h: remove signals changed, insert_text
4835 * gtk/gtkoldeditable.c: updates to match new situation
4837 * gtk/gtktext.c: updates to match new situation
4841 2001-10-03 Havoc Pennington <hp@redhat.com>
4843 * gtk/gtktextiter.c (test_log_attrs): allow testing the end
4846 * gtk/gtktextbuffer.c (compute_log_attrs): update for pango
4849 * tests/testtextbuffer.c (logical_motion_tests): updates
4851 2001-10-03 jacob berkman <jacob@ximian.com>
4853 * gtk/gtkwidget.c (gtk_widget_style_get_property):
4854 * gtk/gtkstyle.c (_gtk_style_peek_property_value):
4855 * gtk/gtksettings.c (apply_queued_setting):
4856 * gtk/gtkmain.c (gtk_init_check):
4857 * gtk/gtkcontainer.c (gtk_container_child_get_property):
4860 Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl>
4862 * gtk/gtktreemodelsort.[ch]: preparation for surgery
4863 * tests/testtreesort.c: ditto
4865 2001-10-02 Havoc Pennington <hp@redhat.com>
4867 Throughout: assorted docs
4869 * gdk/gdkwindow.h: deprecate gdk_window_set_hints(), it's broken,
4870 gdk_window_set_geometry_hints() should be used instead.
4872 * gdk/gdkimage.h: deprecate gdk_image_ref, gdk_image_unref, and
4875 * gdk/x11/gdkx.h: remove gdk_get_client_window() since it doesn't
4876 seem to exist in any .c files
4878 * gdk/x11/gdkcolor-x11.c (gdk_colormap_query_color): docs,
4879 g_return_if_fail (pixel < colormap->size).
4881 Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com>
4883 * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow
4884 NULL for @target_list to mean, use
4885 gtk_drag_dest_get_target_list (widget).
4887 * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where
4888 drop could hang when calling gtk_drag_finish with
4889 success == FALSE and del == TRUE.
4891 * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where
4892 drops without a matching target found would propagate
4893 to the parent widget rather than being rejected.
4895 * gtk/gtktextview.c (gtk_text_view_drag_data_received):
4896 Use text_view->dnd_mark instead of mark name to be
4897 consistent with the rest of the code.
4899 * gtk/gtktextview.c (gtk_text_view_drag_motion): Make
4900 pendantically correct for a drop-only-in-some-places
4901 widget. (Check whether you can insert in drag_drop,
4902 not just in drag_motion ... matters in theory, and
4903 for Motif drag and drop in practice.)
4905 * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from
4906 Damian Ivereigh to not allow drops on non-editable
4909 * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow
4910 text to be moved from a non-editable entry.
4912 2001-10-03 James Henstridge <james@daa.com.au>
4914 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width):
4915 s/width/fixed_width/ in order to get things to compile.
4917 Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com>
4919 * gtk/gtkcelleditable.c: docs
4921 * gtk/gtktreemodel.h: more docs.
4923 2001-10-02 Havoc Pennington <hp@redhat.com>
4925 * gdk/x11/gdkwindow-x11.c: docs
4927 * tests/testtextbuffer.c (logical_motion_tests): add sentence
4930 Tue Oct 2 20:18:32 2001 Kristian Rietveld <kristian@planet.nl>
4932 * demos/gtk-demo/Makefile.am: add editable_cells.c,
4933 list_store.c and tree_store.c
4935 * demos/gtk-demo/appwindow.c: remove tearoff item from
4936 File menu, put menubar and toolbar in handle boxes.
4938 * demos/gtk-demo/genincude.pl: various changes to support trees
4940 * demos/gtk-demo/main.c: various changes to support trees
4942 * demos/gtk-demo/stock_browser.c: changed name of demo
4943 to Stock Item and Icon Browser, so geninclude.pl doesn't see
4946 * demos/gtk-demo/editable_cells.c: new file/demo
4947 * demos/gtk-demo/list_store.c: new file/demo
4948 * demos/gtk-demo/tree_store.c: new file/demo
4950 Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com>
4952 * gtk/gtkrc.c gtk/gtksettings.c:
4953 g_string_printfa => g_string_append_printf.
4955 Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com>
4957 * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize
4958 and destroy handler.
4960 * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963
4962 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add
4963 'start_editing' flag to select_cursor_row. Bug spotted by Manish
4964 Singh <yosh@gimp.org>.
4966 2001-10-01 Matthias Clasen <matthiasc@poet.de>
4968 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace
4969 g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.
4971 * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
4973 Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com>
4975 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change
4976 scroll_to_cell delayed code to happen in size_allocate.
4978 * gtk/gtkstyle.c (gtk_default_draw_expander): change
4979 prelight/normal arrow drawing.
4981 * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate
4983 * gtk/gtktreestore.c: refactor.
4985 Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org>
4987 * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
4988 patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
4989 centers the child in relation to the to indicator height.
4991 Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com>
4993 * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
4996 Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se>
4998 * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
4999 property code using g_param_spec_int and changed from
5000 g_value_get_enum to g_value_get_int instead. Probably a better way
5001 to fix the problem :-)
5003 Sun Sep 30 05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
5005 * gtk/gtkcellrenderertext.c changed "weight" property type from
5006 g_param_spec_int to g_param_spec_enum.
5008 Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org>
5010 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo
5011 fix: s/Wether/Whether/ in reorderable property description
5013 Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com>
5015 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only
5016 start editing when you select with a keyboard.
5018 (gtk_tree_view_button_press_event): much more graceful now.
5020 * gtk/gtkstyle.c: Draw togglebutton better.
5022 2001-09-26 Havoc Pennington <hp@redhat.com>
5024 * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo
5025 of passing non-stock label in to gtk_dialog_new_with_buttons
5027 * gtk/gtktextview.c (cursor_blinks): disable cursor blink when
5030 * gtk/gtktextiter.h: comment about how GtkTextIter struct contents
5033 * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't
5034 exist, fall back to mnemonic label, not plain label, bug #61184
5036 Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com>
5038 * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being
5039 stupid and emitting the signal every time.
5041 * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
5043 Wed Sep 26 16:35:59 2001 Owen Taylor <otaylor@redhat.com>
5045 Patch from Mark McLoughlin <mark@skynet.ie> (#61233)
5047 * contrib/gdk-pixbuf-xlib/Makefile.am: install
5048 gdk-pixbuf-xlib-2.0.pc.
5050 Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com>
5052 * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix
5053 problem where menmonic wasn't removed properly when
5054 setting a label when there already is a label.
5055 Also, handle setting the tab label back to the same
5056 value. (#61160, #61161)
5058 * gtk/gtkentry.c (paste_received): Patch from
5059 Damian Ivereigh to replace selection if there is
5062 2001-09-25 Darin Adler <darin@bentspoon.com>
5064 * tests/.cvsignore: Ignore new test program.
5066 2001-09-25 Havoc Pennington <hp@redhat.com>
5068 * gtk/gtktextview.c: fix for #50317
5070 2001-09-25 Havoc Pennington <hp@redhat.com>
5072 * gtk/gtktextview.c (gtk_text_view_key_press_event): use
5073 gtk_text_iter_can_insert
5075 * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert
5077 * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613
5078 (gtk_text_iter_can_insert): new function to fix #60282, should
5079 also fix msw's "can paste into empty buffer" bug.
5081 * gtk/gtktexttag.c (gtk_text_tag_event): change type check for
5082 "event object," #59091
5084 * gtk/gtktextbtree.c: indentation fixes
5086 * gtk/gtktextiter.c (find_by_log_attrs): fixes
5088 Tue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>
5090 * configure.in: Version 1.3.9, interface age 0, binary age 0.
5092 * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5.
5096 Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com>
5098 * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared
5099 function for drawing cursors between gtkentry/gtklabel/gtktextview.
5100 Should this be public? It has a bit of an odd interface, but
5101 custom editing widgets probably should be using it.
5102 Function will draw with wider width for taller cursors, and
5103 draws a little indicator arrow to indicate directoin for split
5106 * gtk/gtktextview.c: Add a "cursor_color" property.
5108 * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to
5109 gtk_text_layout_draw().
5111 * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use
5112 _gtk_draw_insertion_cursor().
5114 Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com>
5116 * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore
5117 the behavior where you could turn family_set (etc) back on
5118 and get back the values you had before.
5120 * demos/gtk-demo/stock_browser.c (id_to_macro): Use
5121 g_string_ascii_up() rather than looping through the
5124 Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com>
5126 * gtk/gtktreeviewcolumn.c
5127 (gtk_tree_view_column_set_cell_renderer): Removed
5128 (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012.
5130 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012
5131 Patch from Detlef Reichl
5133 2001-09-25 Havoc Pennington <hp@redhat.com>
5135 * tests/testtextbuffer.c (line_separator_tests): Add tests for
5136 line separators, addresses bug #57428
5138 Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com>
5140 * gtk/gtkentry.c: Make a GtkCellEditable
5141 (get_widget_window_size): Change to let it honor size_allocate
5142 when a CellEditable.
5144 * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and
5146 (gtk_tree_view_set_cursor): Now you can set the cursor
5147 horizontally, as well as start editing.
5149 * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
5150 code to look more like the other check buttons.
5152 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
5153 Change the way we calculate cell size.
5155 * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
5157 * demos/gtk-demo/sizegroup.c: Add mnemonics.
5159 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
5162 * gtk/gtkcellrenderertext.c: Change to be editable.
5164 * gtk/gtkcellrenderertoggle.c: Change to be activatable.
5166 * test/testtreesort.c: Fix misspelling
5168 * test/testreecolumns.c: Add mnemonics.
5170 * test/testreeedit.c: New test program.
5172 2001-09-25 Havoc Pennington <hp@pobox.com>
5174 * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(),
5175 etc. docs about how these are not going to do what you want for
5176 the X/win32 ports. Futile attempt to avoid a FAQ...
5178 2001-09-24 James Henstridge <james@daa.com.au>
5180 * gtk/gtkmarshal.list (VOID): add marshal function types.
5182 * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type
5183 GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than
5185 (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes
5186 with no-op copy/free functions.
5188 * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for
5189 GtkCTreeNode get_type function.
5191 2001-09-24 Havoc Pennington <hp@redhat.com>
5193 * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c,
5195 Get rid of the newline-that-could-not-be-deleted; buffers may
5196 now be zero-length. Much easier to fix than expected, once
5197 I figured out the right way to do it. However, there are
5198 various subtle bugs introduced by this that will have to get
5199 sorted out. Please use bugzilla.
5201 Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com>
5203 * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a
5204 response back from the window manager if our size hasn't changed
5205 since we won't get a response back from the window manager;
5206 there was code in there to do this, but it was in the wrong
5207 place so if the hints change and the size didn't we'd expect
5210 Also, optimize the position-only-changed case by running
5211 the resize queue immediately, and clean up some comments
5214 Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com>
5216 * gtk/gtknotebook.h: Add a compat macro that got lost.
5218 * gtk/gtktreestore.c: Doc fixes.
5220 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference
5221 leak for windows that receive events after being destroyed.
5222 (#60863, Joshua N. Pritikin)
5224 * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize
5225 rather than gtk_container_queue_resize().
5227 * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix
5228 gtk_container_queue_resize, gtk_container_queue_resize_widgets,
5229 gtk_container_child_composite_name. (#60217.)
5231 2001-09-22 Hans Breuer <hans@breuer.org>
5233 * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
5235 Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl>
5237 * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT):
5238 weight value should be an int
5240 Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl>
5242 * gtk/gtkmenu.c (gtk_menu_select_item): move most code
5243 to gtk_menu_scroll_item_visible(). Only call
5244 gtk_menu_scroll_item_visible() if the menu widget has been
5245 realized. Fixes bug #55310.
5247 2001-09-21 Havoc Pennington <hp@redhat.com>
5249 * gtk/gtktextview.c (gtk_text_view_key_press_event): don't pass
5250 key press to IM context if cursor isn't in an editable location;
5251 bug #58425, patch from Hidetoshi Tajima
5253 2001-09-21 Havoc Pennington <hp@redhat.com>
5257 * gtk/gtktextbtree.c (gtk_text_btree_node_destroy):
5258 (_gtk_text_btree_unref): fix up mark memory management
5260 * gtk/gtktextmark.c (mark_segment_delete_func): ditto
5262 2001-09-20 Havoc Pennington <hp@redhat.com>
5264 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): don't
5265 try to handle alignment here, because it's done by PangoLayout
5266 after we set the layout width. Fix from Dov.
5268 2001-09-21 Hans Breuer <hans@breuer.org>
5271 * gtk/gtk.def : updated externals
5273 * gtk/gtkmain.h : define get_gtk_win32_directoty ()
5274 * gtk/gtkmain.c (find_module) : don't use module_name after freeing it.
5275 Also handle that Win32 pathes cann't be hard-coded
5277 * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various
5278 module, themes etc directory calculations
5280 * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates
5281 >16 bit right. The size limit within Win9x appears _not_ to be 32767
5282 but slightly smaller ...
5284 * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid
5285 >16 bit clipping. Added dummy body for gdk_window_set_icon_list ()
5287 * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle ()
5289 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
5290 handling. I'm not sure if it is better now, but at least not worse
5292 * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup
5294 * gdk/win32/gdkwin32.h : reflect recent API restrictions
5296 2001-09-21 Matt Wilson <msw@redhat.com>
5298 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy): set
5299 radio_menu_item->group to NULL after removing it from the list, as
5300 it is no longer in the group. (#60869)
5302 * gtk/gtkradiobutton.c (gtk_radio_button_destroy): likewise
5304 2001-09-20 Havoc Pennington <hp@pobox.com>
5306 * configure.in (PANGO_REQUIRED_VERSION)
5307 (ATK_REQUIRED_VERSION): add variables and checks for specific
5308 versions of dependencies. Previously we didn't verify the
5309 Pango or ATk versions.
5311 2001-09-09 Havoc Pennington <hp@pobox.com>
5313 * gtk/gtktextiter.c: fool with indentation
5314 (gtk_text_iter_in_range): add g_return_if_fail
5316 Thu Sep 20 17:45:54 2001 Joshua N Pritikin <vishnu@pobox.com>
5318 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): Fix
5319 ref count on new tag to be 1. Update doc. (#60836)
5321 Thu Sep 20 16:20:47 2001 Owen Taylor <otaylor@redhat.com>
5323 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Remove unnecessary
5324 call to gdk_image_new_bitmap(). (#59094, reported by
5327 Thu Sep 20 15:31:35 2001 Owen Taylor <otaylor@redhat.com>
5329 * gtk/gtkcalendar.c (gtk_calendar_init): Use the current
5330 day, as well as the current month and year.
5331 (#59047, reported by Vitaly Tishkov)
5333 Thu Sep 20 15:10:30 2001 Owen Taylor <otaylor@redhat.com>
5335 * gtk/gtkdialog.c (gtk_dialog_init): Automatically set
5336 set dialogs to GTK_WIN_POS_CENTER_ON_PARENT. (#60554)
5338 Thu Sep 20 18:00:56 2001 Kristian Rietveld <kristian@planet.nl>
5340 * tests/testgtk.c (struct OptionMenuItem): get rid of it,
5342 (build_option_menu): add func argument, connect ::changed
5343 signal to option menu instead of connecting the ::activate
5344 signal to the menu items,
5346 (toplevel): get rid of RADIOMENUTOGGLED macro,
5348 (list_toggle_sel_mode), (clist_toggle_sel_mode),
5349 (ctree_toggle_line_style), (ctree_toggle_expander_style),
5350 (ctree_toggle_justify), (ctree_toggle_sel_mode),
5351 (progressbar_toggle_orientation), (progressbar_toggle_bar_style):
5352 use gtk_option_menu_get_history() instead of RADIOMENUTOGGLED,
5354 (notebook_type_changed): merged standard_notebook(),
5355 notabs_notebook(), scrollable_notebook() and borderless_notebook()
5356 into notebook_type_changed()
5358 (create_list), (create_ctree), (create_notebook),
5359 (create_progress_bar): changed OptionMenuItem arrays into
5360 gchar * arrays. Removed "Extended" item where used.
5364 2001-09-20 Sven Neumann <sven@gimp.org>
5369 * gtk/gtkselection.c
5371 * gtk/gtkwindow.c: removed remaining traces of nanox GDK backend.
5373 Thu Sep 20 11:19:42 2001 Owen Taylor <otaylor@redhat.com>
5375 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): Add
5376 a missing pango_layout_iter_free ().
5378 Thu Sep 20 11:03:51 2001 Owen Taylor <otaylor@redhat.com>
5380 * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
5381 gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
5383 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
5384 the function definition so we don't accidentally rely on
5385 the compat #define from gtk_radio_menu_item_group.
5386 (#60782, Jeff Franks)
5388 Thu Sep 20 16:51:02 2001 Kristian Rietveld <kristian@planet.nl>
5390 * gtk/gtkwindow.c (gtk_window_get_frame_dimensions): returned
5391 incorrect values for top, right and bottom due to cut-and-paste
5392 bug. Pointed out by Vitaly Tishkov, fixes bug #59008
5394 Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
5396 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
5397 _NET_WM_PID and WM_CLIENT_MACHINE properties on each
5398 window, not just on the client leader. (#58463)
5400 Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
5402 * gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
5404 * gtk/gtkmenuitem.[ch] gtk/gtkmenushell.c: Underscore prefix
5405 non-public _gtk_menu_item_set_placement.
5407 * gtk/gtktooltips.h: Deprecate gtk_tooltips_set_delay().
5409 Wed Sep 19 16:16:38 2001 Owen Taylor <otaylor@redhat.com>
5411 * gdk/win32/gdkcolor-win32.c gdk/x11/gdkcolor-x11.c
5412 gdk/linux-fb/gdkcolor-fb.c:
5413 Fix propagated (flags && GDK_COLOR_WRITEABLE) typo.
5416 Wed Sep 19 16:12:16 2001 Owen Taylor <otaylor@redhat.com>
5418 * gdk/gdkpixbuf-render.c: Allow -1 for width/height
5419 to mean "width/height of pixbuf" (Patch from Matthias Clasen,
5422 Wed Sep 19 16:01:27 2001 Owen Taylor <otaylor@redhat.com>
5424 Patch from Frank Belew #59037 for Solaris compilation.
5426 * gtk/maketypes.awk: Change syntax slightly for a call
5427 to sub(), apparently making awk on Solaris happier.
5429 * gtk/gtktreeview.c: Remove C++ comments.
5431 Wed Sep 19 15:46:29 2001 Owen Taylor <otaylor@redhat.com>
5433 * gtk/gtkwindow.c: Add xgettext:no-c-format comment to
5434 to handle '99% of the time. (#60473, reported by Christian Rose)
5436 * gtk/gtkwidget.h: Remove prototype for gtk_widget_get_usize()
5437 which no longer exists. (#60379, reported by Vitaly Tishkov)
5439 Wed Sep 19 11:06:24 2001 Tim Janik <timj@gtk.org>
5443 * gdk/Makefile.am: kill EXTRA_DIST clearing.
5445 Wed Sep 19 02:50:40 2001 Tim Janik <timj@gtk.org>
5447 * demos/Makefile.am ($(testpixbuf_OBJECTS)): don't use BUILT_SOURCES
5448 as its broken in automake 1.4, add explicit object rule to
5451 * gdk-pixbuf/Makefile.am: fix maintainer and normal cleanfiles.
5452 get rid of uneccessary stamps, group stuff more logically, and build
5453 sources due to object rules. fix srcdir!=builddir.
5455 Tue Sep 18 20:47:16 2001 Owen Taylor <otaylor@redhat.com>
5457 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Fix
5458 incorrect parameter to compute_double_length
5459 (#58680, patch from Matthias Clasen)
5461 Fixes for compilation with Forte cc. (#59734, Derek Rafter)
5463 * gtk/gtkwindow.h gtk/gtksizegroup.h: Remove extra ;.
5465 * gdk/gdktypes.h (GdkModifierType): Write 1u << 31
5466 for GDK_RELEASE_MASK to avoid warnings with Forte.
5468 * gtk/gtktexttag.c gtk/gtkcellrendertext.c: Add some missing
5471 2001-09-18 Alex Larsson <alexl@redhat.com>
5473 * gtk/gtkcheckbutton.c:
5474 * gtk/gtkradiobutton.c:
5475 Don't draw with GTK_STATE_ACTIVE.
5479 Draw lines between rows with base_gc[GTK_STATE_NORMAL].
5481 * gtk/gtktextdisplay.c:
5482 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5483 unfocused with base_gc [GTK_STATE_ACTIVE].
5486 Add select all menu-item.
5487 Default cursor color is red.
5488 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5489 unfocused with base_gc [GTK_STATE_ACTIVE].
5491 * gtk/gtklabel.[ch]:
5492 Add keynav + menu to selectable lables.
5493 Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and
5494 unfocused with base_gc [GTK_STATE_ACTIVE].
5497 Add drag and drop support.
5500 (This was checked in earlier)
5501 New default values for text/base SELECTED and ACTIVE
5503 Tue Sep 18 23:51:49 2001 Tim Janik <timj@gtk.org>
5505 * configure.in: up version to 1.3.8, interface age 0,
5506 binary age 0, depend on glib 1.3.8.
5508 * NEWS: 1.3.8 updates.
5510 Tue Sep 18 18:46:54 2001 Jonathan Blandford <jrb@redhat.com>
5512 * gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
5515 * gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
5516 reason to call it beyond emiting the two signals.
5518 * gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
5521 Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com>
5523 * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch]
5524 gtk/gtktextview.c tests/testgtk.c: Fix up for changes to
5525 PangoFontDescription.
5527 * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c
5528 gtk/gtkspinbutton.c: Fix up for change to PangoMetrics
5531 * gtk/gtkfontsel.c: Fix up for new Pango font listing API.
5533 * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace
5534 direct access to style->font. Deprecate gtk_style_ref/unref.
5536 * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c:
5537 Remove gtk_style_ref/unref with g_object_ref/unref.
5539 * gtk/gtkcalendar.c: Remove leftover macros accessing
5542 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused
5545 * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of
5548 Tue Sep 18 13:51:35 2001 Jonathan Blandford <jrb@redhat.com>
5550 * gtk/gtkcellrenderer.h (enum): Get rid of broken "can_edit" and
5551 "can_activate" properties in favor of
5552 GTK_CELL_RENDERER_MODE_INERT, GTK_CELL_RENDERER_MODE_ACTIVATABLE,
5553 and GTK_CELL_RENDERER_MODE_EDITABLE
5555 Tue Sep 18 12:12:43 2001 Jonathan Blandford <jrb@redhat.com>
5557 * gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
5558 editable widgets. This function is private, and should only be
5559 used by GtkTreeView.
5561 2001-09-18 Matt Wilson <msw@redhat.com>
5563 * docs/Makefile.am (EXTRA_DIST): don't use += before =
5565 * docs/faq/Makefile.am (EXTRA_DIST): likewise
5567 * docs/tutorial/Makefile.am (EXTRA_DIST): likewise
5569 * gdk/Makefile.am (MAINTAINERCLEANFILES): likewise
5570 (EXTRA_HEADERS): likewise
5572 * gtk/Makefile.am (MAINTAINERCLEANFILES): likewise
5573 (EXTRA_HEADERS): likewise
5574 (EXTRA_DIST): likewise
5575 (CLEANFILES): likewise
5577 * gtk/stock-icons/Makefile.am (CLEANFILES): likewise
5579 * tests/Makefile.am (EXTRA_DIST): likewise
5581 * Makefile.am (install-data-local): changed to use
5582 install-data-hook, which runs after install-pkgconfigDATA, so that
5583 the pkgconfigdir will have been created and populated first.
5585 Mon Sep 17 17:39:52 2001 Jonathan Blandford <jrb@redhat.com>
5587 * gtk/gtkcelleditable.[ch]: Add editable interface. This should
5588 be the last big GtkTreeView API change.
5590 * gtk/gtkcellrenderer.[ch]: Get rid of the "event" vfunc, and
5591 replace with "activate" and "start_editing". Also, added a
5592 "can_activate" and "can_edit" property.
5594 * gtk/gtktreeviewcolumn.c: modify to use above.
5596 2001-09-16 Alexander Larsson <alla@lysator.liu.se>
5598 * gtk/gtkoptionmenu.c: Handle scroll wheel events.
5600 Fri Sep 14 22:31:25 2001 Matthias Clasen <matthiasc@poet.de>
5602 * demos/gtk-demo/main.c (setup_default_icon): Use a shaped
5603 icon instead of one with ugly white background.
5605 Fri Sep 14 22:26:01 2001 Matthias Clasen <matthiasc@poet.de>
5607 * demos/gtk-demo/stock_browser.c (id_to_macro): make
5608 the uppercasing work. (#59550)
5610 2001-09-14 Jakub Steiner <jimmac@ximian.com>
5612 * gtk/stock-icons/dialog_error.png:
5613 * gtk/stock-icons/dialog_question.png: more road signs
5615 2001-09-13 Jakub Steiner <jimmac@ximian.com>
5617 * gtk/stock-icons/dialog_question.png:
5618 * gtk/stock-icons/dialog_warning.png: anders and jonathan seem to
5621 Wed Sep 12 19:01:05 2001 Jonathan Blandford <jrb@redhat.com>
5623 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
5624 signals to make them more clear. Also, change ::range_changed to
5626 * gtk/gtktreemodel.c: Adjust to interface change
5627 * gtk/gtktreemodel.h: ditto
5628 * gtk/gtktreemodelsort.c: ditto
5629 * gtk/gtktreestore.c: ditto
5630 * gtk/gtkliststore.c: ditto
5631 * gtk/gtktreeview.c: ditto
5632 * tests/testtreecolumns.c: ditto
5633 * gtk/gtkmarshal.list: Actually remove a marshaller!
5635 2001-09-12 Padraig O'Briain <padraig.obriain@sun.com>
5638 Add support for Ctrl+Up/Down arrow to move cursor to beginning
5639 of previous/next paragraph. If within a paragraph cursor moves to
5640 beginning of that paragraph.
5642 2001-09-12 Jakub Steiner <jimmac@ximian.com>
5644 * gtk/stock-icons/dialog_question.png: replacing the shaky
5645 question mark with a sans-serif one.
5646 * gtk/stock-icons/stock_top.png, stock_bottom.png,
5647 stock_first.png, stock_last.png: using the new style arrows
5648 * gtk/stock-icons/stock_font.png: simple one to replace the ugly
5650 * gtk/stock-icons/stock_refresh.png: anti-aliased and changed
5652 * gtk/stock-icons/stock_zoom*: anti-aliased
5653 * gtk/stock-icons/dialog_error.png, dialog_warning.png: confused
5654 '-' with a '_', removed the wrong files
5656 Sat Sep 8 16:19:02 2001 Owen Taylor <otaylor@redhat.com>
5658 * gtk/gtkmain.c: Implement a search path for GTK+ modules.
5660 * configure.in gtk/gtkrc.c gtk/Makefile.am: Look for modules
5661 in gtk-2.0/<type>/major.minor.(micro-binary_age) rather
5662 than in gtk-2.0/major.minor.micro/<type>/. This
5663 works better for a search path for modules.
5665 * gtk+-2.0.pc.in gtk+-2.0-uninstalled.pc.in: Add
5666 gtk_binary_version variable holding major.minor.(micro-binary_age).
5668 * modules/input/Makefile.am (moduledir): Fix installation
5669 directory to match change in lookup location.
5671 * gtk/gtkmain.c (gtk_init_check): Remove OS/2 code for dll
5672 suffixes. Needs to be handled in g_module_build_path().
5674 * gtk/gtkrc.c gtk/queryimmodules.c: Use g_build_filename() where
5677 Tue Sep 11 13:59:12 2001 Owen Taylor <otaylor@redhat.com>
5679 * gtk/gtkrc.c (insert_rc_property): Fixed reversed comparison
5680 causing RC properties not to work.
5682 2001-09-11 Jakub Steiner <jimmac@ximian.com>
5684 * gtk/stock-icons/dialog-error.png: less drastic
5685 * gtk/stock-icons/dialog-warning.png: no body parts. (I hope
5686 "STOP" is international enough.
5687 * gtk/stock-icons/stock_dnd*.png: get rid of the cursor
5688 * gtk/stock-icons/stock_menu_properties.png: 16x16 version
5690 Mon Sep 10 21:26:24 2001 Joshua N Pritikin <vishnu@pobox.com>
5692 * gtk/gtktextview.c (gtk_text_view_set_buffer): Make
5693 (add|remove)_selection_clipboard symmetric. (bug #59836)
5695 * gtk/gtktreeview.c (gtk_tree_view_unref_and_check_selection_tree):
5696 Avoid SEGV for empty tree. (bug #60243)
5698 Mon Sep 10 20:47:22 2001 Tim Janik <timj@gtk.org>
5700 * tests/testgtk.c (create_idle_test): slight fix for
5701 g_object_set() not usable for nesting anymore.
5703 * gtk/gtkhandlebox.c (gtk_handle_box_class_init):
5704 * gtk/gtkframe.c (gtk_frame_class_init): deprecate ::shadow
5705 properties, supply ::shadow_type properties instead as most
5708 2001-09-10 Alex Larsson <alexl@redhat.com>
5710 * demos/gtk-demo/stock_browser.c:
5715 * gdk/gdkrectangle.c:
5716 * gtk/gtktypeutils.c:
5717 Update to use the new g_boxed_type_register_static API.
5719 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
5721 * gtk/gtktreestore.c:
5722 Fix looping in gtk_tree_store_init() waiting for zero random int.
5724 Mon Sep 10 16:55:49 2001 Tim Janik <timj@gtk.org>
5726 * gtk/gtkalignment.c (gtk_alignment_init): fix xscale and yscale
5727 behaviour which havoc broke. they have to default to 1.0 for
5730 * gtk/gtkwindow.c (gtk_window_get_property): don't cast NULL objects.
5732 2001-09-10 Padraig O'Briain <padraig.obriain@sun.com>
5734 * gtk/gtkstyle.c (_gtk_style_peek_property_value)
5735 Amend previous change to avoid runtime error in g_param_spec_ref()
5737 Mon Sep 10 06:58:56 2001 Owen Taylor <otaylor@redhat.com>
5739 * gtk/gtkrc.c (insert_rc_property): Fix blank line
5742 Mon Sep 10 06:50:39 2001 Owen Taylor <otaylor@redhat.com>
5744 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Don't
5745 do a lookup immediately after creating style->property_cache,
5746 since bsearch crashes on zero length for Solaris.
5747 (Found by Padraig O'Briain.)
5749 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
5751 * gtk/gtkwidget.c (_gtk_widget_peek_colormap):
5752 Really return NULL if not set.
5753 (gtk_widget_init): Remove unused varaible.
5755 2001-09-09 Alexander Larsson <alla@lysator.liu.se>Â
5758 Remove gdk/nanox/Makefile from AC_OUTPUT(), since it is no longer
5761 2001-09-08 Havoc Pennington <hp@pobox.com>
5763 * gtk/gtkaccelgroup.c: add docs to functions that I can imagine
5764 people might want to use
5766 2001-09-08 Havoc Pennington <hp@pobox.com>
5768 * gtk/gtkalignment.c (gtk_alignment_class_init): default
5769 xscale/yscale to 0.0, not 0.5, 0.5 isn't useful
5771 * tests/testtextbuffer.c: fix usage of gtk_text_iter_spew
5773 * gtk/gtktextiter.c: fix docs
5774 (gtk_text_iter_spew): get rid of this
5776 * gtk/gtklayout.c: docs
5778 * gtk/gtkbutton.c (gtk_button_construct_child): add an alignment
5779 to center image and label together, instead of having image on
5780 left and label centered, patch/suggestion from Jacob
5782 * gtk/gtkdialog.c: docs
5784 Sat Sep 8 14:19:49 2001 Jonathan Blandford <jrb@redhat.com>
5786 * gtk/gtkliststore.c: Write documentation
5787 * gtk/gtktreestore.c: Write documentation
5789 Sat Sep 8 13:53:09 2001 Owen Taylor <otaylor@redhat.com>
5791 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch]: Replace uses of GBSearchArray
5792 with GArray and bsearch(), to remove dependency on a still
5793 evolving interface that we want to keep private to glib/gobject.
5795 2001-09-08 Havoc Pennington <hp@pobox.com>
5797 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_add_attribute):
5800 * gtk/gtktable.c (gtk_table_get_col_spacing): docs fixes
5802 * gtk/gtkspinbutton.c (gtk_spin_button_get_increments): docs fixes
5804 * gtk/gtksocket.c (gtk_socket_steal): docs fixes
5806 * gtk/gtkscrolledwindow.h: docs fixes
5808 * gtk/gtkimage.c (gtk_image_new): docs fixes
5810 Sat Sep 8 01:49:22 2001 Owen Taylor <otaylor@redhat.com>
5812 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check): Prevent a
5813 false alarm constness warning with a cast.
5815 * gdk/x11/gdkx.h: Undefine GDK_ROOT_PARENT before redefining it
5816 for the inside-gdk case.
5818 Sat Sep 8 01:44:18 2001 Jonathan Blandford <jrb@redhat.com>
5820 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_set_dirty):
5823 * gtk/gtktreeview.c (gtk_tree_view_set_model): unref model when we
5824 change models, #59899
5826 2001-09-07 Havoc Pennington <hp@pobox.com>
5828 * gtk/gtkmain.c: move some docs inline
5830 2001-09-07 Havoc Pennington <hp@pobox.com>
5832 * gtk/gtk.h: tsk tsk, jrb broke the build
5834 Fri Sep 7 20:45:29 2001 Jonathan Blandford <jrb@redhat.com>
5836 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_{start,end}):
5837 Removed 'fill' attribute. It was silly b/c that was a property of
5838 the cell renderer, anyway.
5839 (gtk_tree_view_column_render): Actually render the packed
5841 * doc/tree-column-sizing.txt: initial devel documentation.
5842 * gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix bug.
5843 * gtk/gtkcellrenderertextpixbuf.[ch]: removed.
5845 * tests/testtreefocus.c: fix up to reflect above changes.
5846 * tests/testtreeview.c: ditto
5847 * demos/gtk-demo/stock_browser.c: ditto
5849 2001-09-07 Alex Larsson <alexl@redhat.com>
5851 * gdk/linux-fb/gdkcolor-fb.c:
5852 Removed unused function.
5854 * gdk/linux-fb/gdkdrawable-fb2.c
5855 * gdk/linux-fb/gdkfont-fb.c:
5856 Use PangoLanguage functions.
5858 * gdk/linux-fb/gdkinput.c:
5859 * gdk/linux-fb/gdkselection-fb.c:
5862 * gdk/linux-fb/gdkwindow-fb.c:
5863 Fix warning. Implement gdk_window_set_icon_list() and
5864 gdk_window_get_frame_extents(). (No icon support yet though.)
5866 * gtk/gtkwindow.c (gtk_window_get_position):
5867 If window->frame is set get the extents of it instead.
5869 Fri Sep 7 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
5871 * gtk/gtkwidget.c (gtk_widget_get_default_colormap):
5872 Make the default default colormap the GdkRGB colormap,
5873 not the system colormap.
5875 * gtk/gtkinvisible.c (gtk_invisible_init)
5876 gtk/gtkwindow.c (gtk_window_init): Set the current
5877 colormap, as returned by _gtk_widget_peek_colormap()
5880 * gtk/gtkwidget.[ch]: Export _gtk_widget_peek_colormap
5881 to GTK+. Make it return %NULL instead of the default
5882 colormap if no colormap has explicitely been pushed.
5884 * gtk/gtkwidget.c (gtk_widget_get_colormap): Check for
5885 colormaps on ancestral widgets before defaulting the
5886 the system default colormap.
5888 * docs/Changes-2.0.txt: explain colormap changes.
5890 2001-09-07 Havoc Pennington <hp@redhat.com>
5892 * gtk/gtktextiter.c: add some lame code to handle G_MININT, fixes
5895 Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com>
5897 * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm,
5898 make gdk_set_use_xshm a noop. Remove --no-xshm command line
5899 option. If we aren't autodetecting properly, we need
5900 to fix the problem, or at least make it an environment
5901 variable setting, to avoid problems with propagating
5902 to embedded children, plugins, etc.
5904 * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size().
5906 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h
5907 (gdk_pixbuf_render_pixmap_and_mask_for_colormap):
5908 New function to render a pixmap and mask for a particular colormap.
5910 * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use
5911 gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead
5912 of internal implementation of the same.
5914 2001-09-07 Havoc Pennington <hp@redhat.com>
5916 * gtk/gtktextlayout.c (gtk_text_layout_get_lines): remove some
5917 debug code that seems to have caused a breakpoint in valid cases
5919 * gtk/gtktextbtree.c (_gtk_text_btree_add_view): set the prev
5920 pointer on the first view when adding the second view, fixes
5921 crash when closing gtk-demo text test with active selection
5923 * gtk/gtktextbuffer.c
5924 (gtk_text_buffer_remove_selection_clipboard): don't leave dead
5925 clipboards in the list of clipboards - probably fixes #59836
5927 Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com>
5929 Make gdkx.h the only installed header from gdk/x11.
5930 All structures in gdk/x11 are opaque.
5932 * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h:
5933 Don't install gdk{drawable,pixmap,window}-x11.h.
5935 * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c:
5936 Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11,
5937 GdkVisualClass into C files.
5939 * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static.
5941 * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c,
5942 gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c}
5943 Add public functions to replace previously exported direct
5945 gdk_x11_colormap_get_{xdisplay,xcolormap}
5946 gdk_x11_cursor_get_{xdisplay,xcursor},
5947 gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual,
5948 gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage},
5949 gdk_x11_gc_get_{xdisplay,ximage}
5951 * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo,
5952 GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals.
5954 Fix a number of variables and functions that were exported
5955 "accidentally" from GDK.
5957 * gdk/**.[ch]: gdk => _gdk for gdk_visual_init,
5958 gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit,
5959 gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data,
5960 gdk_event_notify, gdk_queued_events, gdk_queued_tail,
5961 gdk_event_new, gdk_events_queue, gdk_events_unqueue,
5962 gdk_event_queue_find_first, gdk_event_queue_remove_link,
5963 gdk_event_queue_append, gdk_event_button_generate,
5964 gdk_debug_flags, gdk_default_filters, gdk_parent_root.
5966 * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c,
5967 gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}:
5968 gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks,
5969 gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window,
5970 gdk_use_xshm, gdk_input_ignore_core.
5972 * gdk/x11/xsettings-common.h (xsettings_list_insert): Add
5973 #defines to namespace functions into the private _gdk_
5976 * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window ()
5977 to replace gdk_parent_root exported variable. Adjust and
5978 deprecate GDK_ROOT_PARENT().
5980 * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix
5981 GDK_ROOT_PARENT usage, remove includes of port-specific
5984 * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for
5985 _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core,
5986 gdk_input_devices, _gdk_input_windows, gdk_init_input_core.
5988 * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c}
5989 docs/Changes-2.0.txt: Remove gdk_wm_protocols,
5990 gdk_wm_delete_window functions, gdk_wm_take_focus,
5991 use gdk_atom_intern() instead.
5993 * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h}
5994 gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h}
5995 gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h}
5997 Unexport gdk_selection_property, just use
5998 gdk_atom_intern ("GDK_SELECTION").
6000 * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}:
6001 Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type,
6002 GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate,
6003 GdkVisualprivate, gdk_x11_gc_flush.
6005 Make a number of public exports of variables into functions
6006 to increase encapsulation.
6008 * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h
6009 gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer,
6010 move to gdkinternals.h. Add gdk_device_get_core_pointer ().
6012 * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h
6013 docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code,
6016 * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h}
6017 docs/Changes-2.0.txt:
6018 s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen()
6019 s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow()
6020 Add gdk_x11_get_default_xdisplay().
6022 * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c
6023 win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c
6024 gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class,
6025 Don't export gdk_progclass, move --class command line
6026 option and handling to common portion of GDK.
6028 Miscellaneous fixes:
6030 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix
6031 g_return_val_if_fail that should have been g_return_if_fail.
6033 * gdk/gdkinternals.h gdk/gdkprivate.h: Move
6034 gdk_synthesize_window_state() to the semi-public gdkprivate.h.
6036 * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded
6039 * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO:
6040 Remove unused gdk_key_repeat_disable/restore.
6042 * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c
6043 x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def:
6044 Remove unused gdk_null_window_warnings variable.
6046 * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox;
6047 it can be retrieved from the repository; it is too far
6048 from functional to be worth having people check out;
6049 it would be easier to start from scratch, I suspect.
6051 * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID().
6053 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
6054 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
6055 Fix some accidentally global variables and unused global variables.
6057 * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c
6058 gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c:
6059 Fix some accidentally global variables and unused global variables.
6061 Add some space for future expansion to multihead.
6063 * gdk/gdkdrawable.h: Add four reserved function pointers
6064 for future expansion of GdkDrawableClass.
6066 * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer
6067 where we can put a GdkScreen * later.
6069 2001-09-07 Havoc Pennington <hp@redhat.com>
6071 * gtk/gtktextview.c (gtk_text_view_flush_scroll): update
6072 adjustments after validating destination yrange; fixes #53918
6073 (This may cause other issues, but I hope it won't)
6075 2001-09-05 Havoc Pennington <hp@redhat.com>
6077 * gtk/gtktextbtree.c (_gtk_text_btree_delete): when merging end
6078 line into start line, update the character counts in parent nodes;
6079 caused a bug when end and start line had different parent nodes.
6081 2001-08-30 Havoc Pennington <hp@redhat.com>
6083 * gtk/gtktexttag.c (_gtk_text_attributes_fill_from_tags): add
6084 assertion that tag is in a table
6086 Fri Sep 7 12:48:56 2001 Matthias Clasen <matthiasc@poet.de>
6088 * gdk/x11/gdkkeys-x11.c (get_direction): Don't call
6089 g_strcasecmp on NULL strings. (#59058)
6091 2001-09-06 Alex Larsson <alexl@redhat.com>
6095 * gtk/gtkspinbutton.c:
6096 * gtk/gtktipsquery.c:
6097 Use GtkType/GType instead of uint.
6099 Tue Sep 4 18:13:43 2001 Jonathan Blandford <jrb@redhat.com>
6101 * gtk/gtkliststore.c (gtk_list_store_init): fix initial val for
6104 * gtk/gtktreestore.c (gtk_list_store_init): ditto
6106 * gtk/gtktreesortable.c: add docs.
6108 Tue Sep 4 09:37:19 2001 Owen Taylor <otaylor@redhat.com>
6112 * configure.in docs/Makefile.am docs/gtk-config.1.in: Remove
6115 * modules/input/Makefile.am (install-data-local): Don't
6116 run gtk-query-immodules if DESTDIR is set.
6118 * NEWS: Various additions.
6120 Tue Sep 4 03:12:25 2001 Tim Janik <timj@gtk.org>
6122 * NEWS: updates for 1.3.7 release.
6124 Mon Sep 3 18:03:56 2001 Jonathan Blandford <jrb@redhat.com>
6126 * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func):
6127 handle default sort feature
6129 * gtk/gtktreesortable.c (gtk_tree_sortable_set_default_sort_func):
6130 new function to handle default sort.
6131 (gtk_tree_sortable_has_default_sort_func): check if default sort
6134 * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func):
6135 handle default sort feature
6137 Sun Sep 2 20:32:36 2001 Jonathan Blandford <jrb@redhat.com>
6139 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): patch from
6140 vishnu@pobox.com (Joshua N Pritikin) to fix math and an assertion,
6143 Sun Sep 2 17:38:42 2001 Jonathan Blandford <jrb@redhat.com>
6145 * gtk/gtktreeview.c (gtk_tree_view_deleted): Patch from
6146 vishnu@pobox.com (Joshua N Pritikin) to emit signal at the correct
6149 * gtk/gtkbutton.c (gtk_button_update_state): Get depressed
6152 Sun Sep 2 21:41:21 2001 Owen Taylor <otaylor@redhat.com>
6154 * gdk/x11/gdkkeys-x11.c (update_keymaps): Set current serial
6155 so that we don't eternally update the keymap after we
6156 get a change notification.
6158 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Fix
6161 Sun Sep 2 23:27:16 2001 Kristian Rietveld <kristian@planet.nl>
6163 * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
6164 it working. It mostly works now, although there're still a few issues
6167 * tests/testtreesort.c (main): changes to have a better test
6168 application for the GtkTreeModelSort.
6170 Sun Sep 2 23:19:07 2001 Kristian Rietveld <kristian@planet.nl>
6172 * gtk/gtktreeview.c (gtk_tree_view_search_iter): code cleaup,
6175 * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): add
6176 gpointer search_data argument to function definition and
6177 prototype, to match GtkTreeViewSearchEqualFunc typedef.
6179 Sat Sep 1 21:57:27 2001 Kristian Rietveld <kristian@planet.nl>
6181 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): add warnings
6184 Fri Aug 31 20:01:23 2001 Jonathan Blandford <jrb@redhat.com>
6186 * gtk/gtktreeview.c (gtk_tree_view_search_iter): pass in user data.
6188 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy search_data.
6190 Wed Aug 29 20:40:58 2001 Owen Taylor <otaylor@redhat.com>
6192 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_add/remove_selection_clipboard):
6193 Instead of always mirroring the selection to a single PRIMARY
6194 selection, allow it to be mirrored to any number of clipboards.
6196 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_paste_primary): Remove,
6197 just use gtk_text_buffer_paste_clipboard with the appropriate clipboard.
6199 * gtk/gtktextbuffer.[ch] (gtk_text_buffer_cut/copy/paste_clipboard): Add a
6200 GtkClipboard argument, and for paste_clipboard, the
6201 @override_location argument from @paste_primary.
6203 * gtk/gtktextview.c: Adapt to above change.
6205 2001-08-30 Havoc Pennington <hp@redhat.com>
6207 * gtk/gtktextview.c (invalidated_handler): put validate idle at
6208 resize - 2 just for flexibility
6210 2001-08-30 Havoc Pennington <hp@redhat.com>
6212 * gtk/gtktextdisplay.c (render_layout_line): handle NULL shaped
6213 object from the empty-child-anchor case by drawing a little box.
6215 * gtk/gtktextlayout.c (add_child_attrs): Still set shape attribute
6216 if the child anchor has no anchored widgets - fixes #59328.
6218 Also, remove bizarre deletion of preedit string that seems to have
6219 gotten in here somehow.
6221 2001-08-30 Havoc Pennington <hp@redhat.com>
6223 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): apply fix
6224 to #58420 from Hidetoshi Tajima and Matthias Clasen
6226 Wed Aug 29 17:28:04 2001 Jonathan Blandford <jrb@redhat.com>
6228 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
6229 change color when the GtkTreeView loses focus.
6231 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render):
6234 * gtk/gtkstyle.c (gtk_default_draw_flat_box): ditto
6236 2001-08-28 Havoc Pennington <hp@pobox.com>
6238 * gtk/gtkwindow.c (gtk_window_set_icon_list): fix g_object_notify
6240 2001-08-28 Havoc Pennington <hp@pobox.com>
6242 * demos/gtk-demo/main.c (setup_default_icon): add default icon
6244 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic):
6246 (gtk_radio_button_new_with_label): warning fix
6248 * gtk/gtkdnd.c: used some random GtkImage private structs,
6249 update to reflect GtkImage changes
6251 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check
6252 whether the hint is supported, just always set the icon. A task
6253 list might want to use it even if the WM doesn't, and the WM may
6254 change over time. Also, XDeleteProperty() if list == NULL.
6256 * gtk/gtkwindow.c (gtk_window_set_icon_list)
6257 (gtk_window_get_icon_list)
6258 (gtk_window_set_icon)
6259 (gtk_window_get_icon)
6260 (gtk_window_set_default_icon_list)
6261 (gtk_window_get_default_icon_list):
6264 * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet
6266 * gtk/gtkimage.c: Implement property support, bug #59408
6268 * gtk/gtkcontainer.c (gtk_container_add): make the warning message
6269 on reparent-without-removing-first a bit more helpful.
6270 Let's just destroy this FAQ.
6272 Tue Aug 28 21:37:11 2001 Matthias Clasen <matthiasc@poet.de>
6274 * demos/gtk-demo/appwindow.c (do_appwindow): Use g_signal_connect_object
6275 instead of gtk_signal_connect, to avoid warnings at destruction time. (#58161)
6277 Tue Aug 28 21:00:44 2001 Matthias Clasen <matthiasc@poet.de>
6279 * gtk/gtkprogressbar.c (gtk_progress_bar_set_text): Move the setting
6280 of use_text_format to the end of the function. (#56447)
6282 Tue Aug 28 20:06:07 2001 Matthias Clasen <matthiasc@poet.de>
6284 * demos/testpixbuf.c (update_timeout): Use gdk_pixbuf_loader_get_pixbuf
6285 only in response to an area_prepared signal.
6287 2001-08-28 Alex Larsson <alexl@redhat.com>
6289 * gtk/gtkwidget.c (gtk_widget_class_init):
6290 Make unrealize GTK_RUN_LAST.
6292 Mon Aug 27 22:00:41 2001 Manish Singh <yosh@gimp.org>
6294 * gtk/gtkradiobutton.c: fix silly cut'n'paste error,
6295 with_label and with_mnemonic should create radio buttons, not
6298 Mon Aug 27 15:28:56 2001 Jonathan Blandford <jrb@redhat.com>
6300 * tests/testtreefocus.c (main): Fix to use GtkSelectionMode.
6301 * tests/treestoretest.c (make_window): ditto
6302 * demos/gtk-demo/main.c (create_tree): ditto
6303 * demos/gtk-demo/stock_browser.c (do_stock_browser): ditto.
6305 Mon Aug 27 15:18:14 2001 Jonathan Blandford <jrb@redhat.com>
6307 * gtk/gtktreeselection.c (gtk_tree_selection_set_mode): Use the
6308 GTK selection types rather than GtkTreeSelectionMode.
6310 * docs/Changes-2.0: Add comment about selection change.
6312 Mon Aug 27 14:21:30 2001 Jonathan Blandford <jrb@redhat.com>
6314 * gtk/gtkenums.h (GtkSelectionMode): deprecate
6315 GTK_SELECTION_EXTENDED.
6317 * gtk/gtkclist.c: Remove old GTK_SELECTION_MULTIPLE behavior.
6318 Make GTK_SELECTION_EXTENDED be GTK_SELECTION_MULTIPLE.
6320 * gtk/gtkctree.c: ditto
6322 * gtk/gtklist.c: ditto
6324 * gtk/gtktree.c: ditto
6326 Mon Aug 27 14:18:12 2001 Owen Taylor <otaylor@redhat.com>
6328 * gtk/gtkmenubar.h (gtk_menu_bar_prepend): Fix a cuple
6329 of typos in compat macros. (#59624, Skip Montaro)
6331 Sun Aug 26 20:00:00 2001 Owen Taylor <otaylor@redhat.com>
6333 * configure.in acinclude.m4: Use autoconf 2.13/2.50 compat
6336 (patch from ERDI Gergo <cactus@cactus.rulez.org>, #58920)
6338 * gtk/gtkmenuitem.c (gtk_menu_item_set_right_justified): Change
6339 interface to be a standard setter from gtk_menu_item_right_justify.
6340 (gtk_menu_item_get_right_justified): a getter to go with the setter
6342 * gtk/gtkmenuitem.h: Add a deprecated compat macro for
6343 gtk_menu_item_right_justify.
6345 * demos/gtk-demo/menus.c tests/testgtk.c: Switch to
6346 gtk_menu_item_set_right_justified.
6348 2001-08-27 Jens Finke <jens@gnome.org>
6350 * gtk+.spec.in: Updated to match gpp requirements, reworked the
6351 files section to make it work with 1.3.x releases.
6353 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
6355 * gtk/gtkbutton.[ch]:
6356 Add properties for labels, mnemonics and stock items.
6357 Added C accessor functions for the properties.
6358 Removed deprecated button->child.
6360 * gtk/gtkradiobutton.c:
6361 * gtk/gtktogglebutton.c:
6362 Update to use the functions in GtkButton.
6364 * gtk/gtkcheckbutton.c:
6365 Update to use the functions in GtkButton.
6366 Changed size allocation of child. Now only gets as much
6367 space as it requests.
6370 Don't use GtkButton->child
6375 2001-08-26 Alexander Larsson <alla@lysator.liu.se>
6378 * tests/Makefile.am:
6379 Ressurect the properties test.
6380 I don't care if it is inferior, I just want to test my property code.
6382 2001-08-25 Chema Celorio <chema@celorio.com>
6384 * gtk/gtktable.c (gtk_table_set_child_property): pass ->nrows to
6385 gtk_table_resize as the first argument for CHILD_PROP_RIGHT_ATTACH
6386 and CHILD_PROP_LEFT_ATTACH v.s. using ->ncols
6388 2001-08-24 Havoc Pennington <hp@pobox.com>
6390 * gtk/gtkcompat.h: remove gtk_menu_* compat defines;
6391 these are already in gtkmenu.h, and the copies
6394 Also, change GTK_DISABLE_COMPAT_H to GTK_DISABLE_DEPRECATED
6396 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_image):
6397 special-case bitmaps to allow no colormap
6398 (bitmap1): implement no-colormap bitmap-getting
6399 (bitmap1a): implement no-colormap bitmap-getting to pixbuf with
6402 (rgb1a, rgb1): change the way we read the data out of the image,
6403 old way didn't seem to work quite right.
6405 I'm pretty sure a lot of the rgbconvert code is still broken.
6407 * gtk/gtkwindow.c (gtk_window_move_resize): move hints comparison
6408 above position constraint (I really intended to do this before,
6409 don't know what's up with that)
6410 (gtk_XParseGeometry): shut up gcc
6412 * gdk/gdkpixbuf-drawable.c (rgb1a): fix bug where "x1" was used
6413 and "0" should have been. remove the attempted 4-bytes-at-once
6414 optimization, it was totally broken.
6416 Sat Aug 25 19:02:39 2001 Owen Taylor <otaylor@redhat.com>
6418 * gtk/gtkbutton.[ch] gtk/gtktogglebutton.c: Add optional movement
6419 on push to buttons (based on patch from Soeren Sandmann, #54720)
6421 - Add child_displacement_x/y style properties to control how far the
6422 child moves when the button is depressed.
6424 - Add non-exported function _gtk_button_set_depressed to clean
6425 up the handling of the in/out shadow and separate it frmo
6428 - Lots of code cleanup and simplification of state handling
6429 for GtkButton/GtkToggleButton.
6431 * tests/testgtkrc: Set the x/y displacement to 1 to provide a test
6432 of button movement. testgtk + testgtkrc == test ugly GTK+, as always.
6434 Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
6436 * gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
6437 and make gtk_image_new() take no arguments. The compiler will
6438 catch it, and it is vastly more useful than having
6439 gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
6441 * gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
6442 to add tearoff-title property (#51319, Lee Mallabone)
6444 Fri Aug 24 22:12:32 2001 Owen Taylor <otaylor@redhat.com>
6446 * gtk/gtkmenuitem.[ch]: Remove unused and useless function
6447 gtk_menu_item_configure(). (#58925)
6449 Fri Aug 24 16:03:45 2001 Jonathan Blandford <jrb@redhat.com>
6451 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
6452 "use_align" to give people the option to just make a cell visible.
6454 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
6455 we were scrolling past the end of the tree.
6457 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
6458 rename gtk_tree_view_column_pack_start_cell_renderer to
6459 gtk_tree_view_column_pack_start. Same for pack_end, and clear.
6461 Fri Aug 24 12:02:08 2001 Owen Taylor <otaylor@redhat.com>
6463 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Remove
6464 a stray g_object_ref() left over from gtk_object_ref/sink.
6465 (Pointed out by Josh Pritikin.)
6467 Thu Aug 23 19:33:54 2001 Owen Taylor <otaylor@redhat.com>
6469 * gtk/gtkcontainer.[ch]: Rename gtk_container_children()
6470 to gtk_container_get_children. Added deprecated compatibility
6471 macro. (Suggested by Vitaly Tishkov, #59051)
6473 * gtk/gtktoolbar.c gtkdialog.c: Fix gtk_container_children()
6476 Thu Aug 23 19:10:01 2001 Owen Taylor <otaylor@redhat.com>
6478 * gtk/gtkmenubar.h (gtk_menu_bar_insert): Deprecate
6479 gtk_menu_bar_append/prepend/insert, forgot to do this
6480 when we deprecated gtk_menu_append/prepend/insert.
6482 * gtk/gtkmenu.h (gtk_menu_insert): Add casts to deprecated
6485 * gtk/gtkmenu.c: Fix problem with static gtk_menu_insert() being
6486 renamed by compat macro.
6488 * gtk/gtkfontsel.h: Deprecated gtk_font_selection_get_font(),
6489 gtk_font_selection_dialog_get_font(). (Suggested by
6490 Vitaly Tishkov, #59383)
6492 Thu Aug 23 18:23:31 2001 Owen Taylor <otaylor@redhat.com>
6494 * gtk/gtktexttag.c (gtk_text_tag_table_get_size):
6495 Rename from gtk_text_tag_table_size(). (#59366)
6497 Thu Aug 23 20:01:41 2001 Kristian Rietveld <kristian@planet.nl>
6499 * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
6500 gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
6501 gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
6504 Thu Aug 23 16:26:47 2001 Tim Janik <timj@gtk.org>
6506 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize):
6507 * gtk/gtktextmark.c (gtk_text_mark_finalize): chain parent class
6508 handlers, pointed out by Joshua N Pritikin <vishnu@pobox.com>.
6510 Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com>
6512 [ Patch from Sebastian Wilhelmi, 52790 ]
6514 * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h
6516 * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h:
6517 Move compatibility macros from g[dt]kcompat.h to within
6518 #ifndef G[DT]K_DISABLE_DEPRECATED in each file.
6520 * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h.
6522 * demos/Makefile.am demos/gtk-demo/Makefile.am
6523 docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am
6524 tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED.
6526 * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c,
6527 testpixbuf.c}: Fix usages of deprecated functions.
6529 Wed Aug 22 19:03:27 2001 Jonathan Blandford <jrb@redhat.com>
6531 * gtk/gtktreeview.c (gtk_tree_view_set_model): clean up selection
6532 when changing models.
6534 Wed Aug 22 18:25:46 2001 Jonathan Blandford <jrb@redhat.com>
6536 * gtk/gtktreeview.c: Fix selection. I think it's all dandy now.
6537 We check the current event for modifiers rather than try to trap
6540 2001-08-22 Anders Carlsson <andersca@gnu.org>
6542 * gtk/gtkliststore.h (GTK_LIST_STORE_CLASS): Fix a small typo.
6543 It's LIST_STORE, not LISTSTORE.
6545 Tue Aug 21 12:43:29 2001 Owen Taylor <otaylor@redhat.com>
6547 * gtk/gtk.h: Remove commented out gtkpacker reference.
6549 2001-08-21 Matthias Clasen <matthiasc@waldgeist.poet.de>
6551 * configure.in (all_loaders): Add tga loader,
6552 patch by Nicola Girardi. (#56067)
6554 Tue Aug 21 02:57:13 2001 Jonathan Blandford <jrb@redhat.com>
6556 * gtk/gtktreeview.c (gtk_tree_view_button_press): Fix up selection
6557 a little. More needs to be done tomorrow.
6559 Tue Aug 21 00:45:55 2001 Jonathan Blandford <jrb@redhat.com>
6561 * gtk/gtktreeview.c (gtk_tree_view_destroy): Grr... Get it right.
6563 Mon Aug 20 23:48:18 2001 Jonathan Blandford <jrb@redhat.com>
6565 * gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Fix bug
6566 reported by Kristian Rietveld <kristian@planet.nl> to handle row
6568 (gtk_tree_view_destroy): Fix bug reported by Kristian Rietveld
6569 <kristian@planet.nl> to change destroy order.
6571 Mon Aug 20 11:39:44 2001 Jonathan Blandford <jrb@redhat.com>
6573 * gtk/gtktreeselection.c (gtk_tree_selection_class_init): Use
6576 Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
6578 * gtk/gtkliststore.c: Fix up warnings, #58928.
6580 * gtk/gtktreeselection.h: Change signal prototype, #58647
6582 * gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
6585 * gtk/gtkstyle.c: Actually prelight arrow, #50981
6587 2001-08-18 Hans Breuer <hans@breuer.org>
6589 * gdk/gdk.def : updated externals
6591 * gdk/win32/gdkselection-win32.c : returning TRUE with gdk_selection_set
6592 is required to get (at least) visible in entry fields. Some selections
6593 are really handled now - even on win32 - but copying via middle
6594 mouse button into a different app needs to wait ...
6596 * gdk/win32/gdkdnd-win32.c : implemented inter-app drag&drop
6597 mostly by stealling code from gdkdnd-fb.c. Thanks to who ever wrote it!
6599 * gdk/win32/gdkevents-win32.c : some tweaking to get better expose
6600 handling. I'm not sure if it is better now, but at least not worse
6602 * gdk/win32/gdkgeometry-win32.c : replaced every call to MoveWindow
6603 with SetWindowPos () which allows more fine-tuning backing-store wise
6605 * gdk/win32/gdkwindow-win32.c : allow unraised gdk_window_show ().
6606 Also changed move/resize to be more like the X version.
6608 * gtk/gtk.def : updated externals
6610 2001-08-19 Sven Neumann <sven@gimp.org>
6613 * tests/testtreesort.c
6614 * tests/treestoretest.c: inserted some casts to get rid of compiler
6617 Sun Aug 19 01:44:44 2001 Jonathan Blandford <jrb@redhat.com>
6619 * gtk/gtktreeviewcolumn.c
6620 (gtk_tree_view_column_pack_{start,end}_cell_renderer): sink cell.
6622 * gtk/gtktreeview.c (gtk_tree_view_insert_column): sink column.
6623 (_gtk_tree_view_find_node): If *node is NULL,
6624 *tree should be NULL too.
6626 * demos/gtk-demo/stock_browser.c (do_stock_browser): don't unref
6628 * tests/testtreecolumns.c: ditto
6629 * tests/testtreefocus.c: ditto
6630 * tests/testtreesort.c: ditto
6631 * tests/testtreeview.c: ditto
6632 * tests/treestoretest.c: ditto
6634 Sat Aug 18 04:34:31 2001 Jonathan Blandford <jrb@redhat.com>
6636 * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): 2 new
6637 signals; is_expander/is_expanded.
6639 * gtk/gtlcellrendererpixbuf.c: Allow other expanded and closed
6642 * gtk/gtktreeview.c: set above properties.
6644 Sat Aug 18 23:01:33 2001 Owen Taylor <otaylor@redhat.com>
6646 * gtk/gtkwidget.h: Really remove set_default_style().
6648 * docs/Changes-2.0.txt: added a note about
6649 gtk_widget_push/pop/set_default_style.
6651 2001-08-18 Havoc Pennington <hp@pobox.com>
6653 * gtk/gtkwindow.c (gtk_window_move_resize): constrain position on
6654 hints_changed in addition to the other cases.
6655 (gtk_window_move_resize): include last position from configure
6656 notify in debug spew
6658 2001-08-18 James Henstridge <james@daa.com.au>
6660 * gtk/gtkaccelgroup.c (gtk_accel_group_object_destroy): use the
6661 second argument to the weak ref notify, cleaning up some uglyness.
6662 (gtk_accel_group_attach): remove and add the weak notifier when
6663 changing the accel groups slist.
6664 (gtk_accel_group_detach): same here.
6666 2001-08-17 Darin Adler <darin@bentspoon.com>
6668 * gtk/gtktreeview.c: (gtk_tree_view_search_equal_func): Add
6669 missing parameters to utf8 functions to make it compile.
6671 Fri Aug 17 19:30:14 2001 Jonathan Blandford <jrb@redhat.com>
6673 * gtk/gtktreeprivate.h:
6674 * gtk/gtktreeview.c: (gtk_tree_view_class_init),
6675 (gtk_tree_view_init), (gtk_tree_view_set_property),
6676 (gtk_tree_view_get_property), (gtk_tree_view_destroy),
6677 (gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
6678 (gtk_tree_view_focus_out), (gtk_tree_view_set_model),
6679 (gtk_tree_view_set_destroy_count_func),
6680 (gtk_tree_view_set_enable_search),
6681 (gtk_tree_view_get_enable_search),
6682 (gtk_tree_view_get_search_column),
6683 (gtk_tree_view_set_search_column),
6684 (gtk_tree_view_get_search_equal_func),
6685 (gtk_tree_view_set_search_equal_func),
6686 (gtk_tree_view_search_dialog_destroy),
6687 (gtk_tree_view_search_position_func),
6688 (gtk_tree_view_interactive_search),
6689 (gtk_tree_view_search_delete_event),
6690 (gtk_tree_view_search_button_press_event),
6691 (gtk_tree_view_search_key_press_event),
6692 (gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
6693 (gtk_tree_view_search_iter), (gtk_tree_view_search_init):
6694 * gtk/gtktreeview.h:
6695 Add heavily modified patch from Kristian Rietveld to handle
6696 interactive searching.
6698 Fri Aug 17 17:30:34 2001 Tim Janik <timj@gtk.org>
6700 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): const correct
6703 * gtk/gtkoptionmenu.c (gtk_option_menu_set_menu): connect to
6704 GtkMenuShell::selection_done, now that we have it, instead of
6705 ::deactivate so we're not tearing the menu apart and notify
6706 the user prematurely.
6708 Thu Aug 16 05:22:01 2001 Tim Janik <timj@gtk.org>
6710 * gtk/gtkwindow.c (gtk_window_move_resize): if we actually move our
6711 window, clear window->need_default_position to avoid infinite loops.
6712 some comment fixups and GTK_RESIZE_IMMEDIATE fixups.
6714 Wed Aug 15 12:36:55 2001 Tim Janik <timj@gtk.org>
6716 * gtk/gtktreeview.c (gtk_tree_view_set_model): move all model setup
6717 code into this place. get rid of GTK_TREE_VIEW_MODEL_SETUP usage.
6718 (gtk_tree_view_set_property): don't cast possible NULL objects.
6719 (gtk_tree_view_destroy): reset the model to NULL.
6721 * gtk/gtktreeselection.c (gtk_tree_selection_finalize): chain
6722 parent_class handler.
6724 2001-08-17 Matthias Clasen <matthiasc@waldgeist.poet.de>
6726 * gtk/demos/gtk-demo/*: Remove all uses of deprecated functions.
6728 2001-08-17 Anders Carlsson <andersca@gnu.org>
6730 * gtk/gtkstyle.c (create_expander_affine): Divide with floating
6731 point numbers so that the result will be floating point.
6733 2001-08-16 Matthias Clasen <matthiasc@waldgeist.poet.de>
6735 * tests/testgtk.c (create_handle_box):
6736 (create_toolbar): Replace gtk_window_set_policy calls by
6737 gtk_window_set_resizable.
6739 2001-08-16 Jakub Steiner <jimmac@ximian.com>
6741 * gtk/stock-icons/dialog_info.png: new style bulb
6742 * gtk/stock-icons/dialog_error.png: maybe a little drastic ;)
6743 * gtk/stock-icons/dialog_warning.png: need a hand?
6744 * gtk/stock-icons/stock_add.png, stock_remove.png: I hope
6745 the aa border gets chopped off ok
6746 * gtk/stock-icons/stock_colorselector.png: using the new hand
6747 * gtk/stock-icons/stock_dnd_multiple.png: I'm not totally sure what
6748 this one is for, but the old icon was butt ugly.
6749 * gtk/stock-icons/stock*_insert_image.png: not sure if it belongs here
6750 * gtk/stock-icons/stock*_insert_object.png: "
6751 * gtk/stock-icons/stock_index.png: using new hand icon
6752 * gtk/stock-icons/stock*_new.png: the document template being used
6754 * gtk/stock-icons/stock*_print*.png: new print and print preview
6756 * gtk/stock-icons/stock*_save*.png, stock*_revert.png: new save/revert
6757 icons based on Tuomas' floppy image.
6758 * gtk/stock-icons/stock*_search*.png: search and s'n'r icons for panel/menu
6759 * gtk/stock-icons/stock*_stop.png: replacing the old 'x' button
6760 * gtk/stock-icons/stock*_trash.png: based on Tuomas' trash icon
6761 * gtk/stock-icons/stock*_undelete.png: "
6762 * gtk/stock-icons/stock_preferences.png: I have a version with a
6763 document base if the sliders are no good.
6764 * gtk/stock-icons/stock_properties.png: properties
6767 * gtk/stock-icons/stock*_copy.png, stock*_cut.png, stock*_paste.png: Tuomas'
6768 (tigert@ximian.com) clipboard icons
6769 * gtk/stock-icons/stock_{up,down,left,right}_arrow.png: tigert's new arrows
6770 * gtk/stock-icons/stock*_{undo,redo}.png: tigert's undo/redo icons.
6771 * gtk/stock-icons/stock_open.png: shaded open icon by Tuomas. we should make it a
6774 2001-08-16 Sven Neumann <sven@gimp.org>
6776 * gtk/gtkbox.c (gtk_box_class_init): removed unused widget_class.
6778 2001-08-15 Padraig O'Briain <padraig.obriain@sun.com>
6780 * gtk/gtkcellrenderertext.c:
6781 Avoid warning when specifying NULL for "attributes" property
6783 2001-08-15 Matthias Clasen <matthiasc@waldgeist.poet.de>
6785 * docs/debugging.txt: Add a warning about --enable-debug=no,
6786 some editorial changes.
6788 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
6790 * gtk/docs/debugging.txt, gdk/gdk.c, gdk/gdkinternals.h,
6791 gdk/x11/gdkmain-x11.c, gtk/gtkdebug.h, gtk/gtkmain.c: Update
6792 debugging info, remove unused debug flags. (#58330)
6794 Mon Aug 13 13:17:32 2001 Jonathan Blandford <jrb@redhat.com>
6796 * gtk/gtktreeselection.c (gtk_tree_selection_select_all):
6797 (gtk_tree_selection_select_all): Remove strict checking for rows.
6799 2001-08-13 Matthias Clasen <matthiasc@waldgeist.poet.de>
6801 * gtk/gtktooltips.c (gtk_tooltips_set_tip, gtk_tooltips_draw_tips):
6802 Don't remove the tooltip window when the tip text changes. (#15891)
6804 Sun Aug 12 12:02:09 2001 Owen Taylor <otaylor@redhat.com>
6806 * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): Remove extra
6809 Sun Aug 12 10:39:12 2001 Owen Taylor <otaylor@redhat.com>
6811 * Makefile.am (EXTRA_DIST): Fix problem with trying to
6812 dist files from intl/, which is no longer there.
6814 2001-08-11 Hans Breuer <hans@breuer.org>
6816 * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c,
6817 gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c,
6818 gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c,
6819 gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c,
6820 gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c,
6821 gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies
6823 * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c,
6824 gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all
6825 GDK_TYPE_EVENT signals
6827 * gtk/gtkalignment.c : removed 'direct allocation bug',
6828 which Tim discovered while reading the patch
6830 Sat Aug 11 14:32:14 2001 Owen Taylor <otaylor@redhat.com>
6832 * gtk/gtkwidget.h (gtk_widget_set_default_visual): Add some
6833 compat macros for push/pop/set_visual that were supposed
6834 to be added a long time ago, but got dropped.
6836 Fri Aug 10 16:55:53 2001 Tim Janik <timj@gtk.org>
6838 * gtk/gtkwindow.c (gtk_window_set_policy): coalesce multiple
6841 2001-08-07 Havoc Pennington <hp@pobox.com>
6843 * gtk/gtkfilesel.c (open_ref_dir): fix a typo.
6845 * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink;
6846 some fixage is needed here, but nothing simple. Owen understands
6849 * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window
6850 sizing and positioning. Also, fix bug in compute_geometry_hints
6851 (width/height confusion for setting min size).
6852 (gtk_window_move): new function
6853 (gtk_window_resize): new function
6854 (gtk_window_get_size): new function
6855 (gtk_window_get_position): new function
6856 (gtk_window_parse_geometry): new function
6858 * gtk/gtkwidget.c (gtk_widget_set_size_request): new function
6859 (gtk_widget_get_size_request): new function
6860 (gtk_widget_get_usize): delete, that was a short-lived function
6862 (gtk_widget_set_usize): deprecate
6863 (gtk_widget_set_uposition): deprecate, make it a trivial
6864 gtk_window_move() wrapper
6865 (gtk_widget_class_init): remove x/y/width/height properties,
6866 add width_request height_request
6868 * demos/*: update to avoid deprecated functions
6870 * gtk/gtklayout.c: add x/y child properties
6872 * gtk/gtkfixed.c: add x/y child properties, and get rid of
6875 * tests/testgtk.c (create_window_sizing): lots of tweaks to window
6878 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that
6879 configure events on toplevel windows are always in root window
6880 coordinates, following ICCCM spec that all synthetic events
6881 are in root window coords already, while real events are
6882 in parent window coords. Previously the code assumed that
6883 coords of 0,0 were parent window coords, which was
6886 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix
6889 * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS
6890 and GDK_HINT_USER_SIZE so we can set USSize and USPosition
6891 hints in gtk_window_parse_geometry()
6893 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support
6894 new USER_POS USER_SIZE hints
6896 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6898 * tests/prop-editor.c (properties_from_type): Use
6899 g_object_class_list_properties to get the param specs
6900 for a given type. (#58609)
6902 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6904 * gtk/gtkstyle.c (gtk_style_real_unrealize): Don't forget to
6905 free the text_aa parts. (#57549)
6907 2001-08-09 Matthias Clasen <matthiasc@waldgeist.poet.de>
6909 * gdk/gdkgc.c (gdk_gc_set_rgb_bg_color): Set the background color,
6910 not the foreground color. (#57621)
6912 2001-08-09 Alexander Larsson <alexl@redhat.com>
6914 * gdk/win32/gdkfont-win32.c:
6915 Update to the new pango win32 api.
6917 2001-08-08 HideToshi Tajima <tajima@eng.sun.com>
6919 * gtk/gtkclipboard.c (request_text_received_func): ask apps for
6920 COMPOUND_TEXT instead of TEXT
6921 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): correctly
6922 interpret the return value of g_string_to_compound_text()
6925 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
6927 * gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
6928 fail if iter is NULL. (#58347)
6930 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6932 * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
6933 some off-by-one issues, fixing selection of line-ends. (#50323)
6935 2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
6937 * gtk/gtkhsv.c (gtk_hsv_map, gtk_hsv_unmap): Reinstate these
6938 functions in order to make mouse operation work again in the
6939 color wheel. (#58604)
6941 2001-08-07 James Henstridge <james@daa.com.au>
6943 * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_object): refetch
6944 the accelerator when the accel object is changed. Fixes bug
6947 2001-08-06 HideToshi Tajima <tajima@eng.sun.com>
6949 * modules/input/gtkimcontextxim.c (mb_to_utf8), xim_text_to_utf8):
6950 Skip g_convert when to_codeset and from_codeset are both 'UTF-8'
6951 (gnome bugzilla #58202)
6953 2001-08-06 Havoc Pennington <hp@pobox.com>
6955 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): The whole
6956 GDK_IS_WINDOW() branch of this was a bit screwed up, because
6957 it was expecting a GdkWindow, not a GdkWindowImplX11.
6959 Also, we were getting the window rect in screen coords
6960 and the screen rect in window coords then intersecting
6961 them; instead, get window rect in window coords.
6963 Finally, there were codepaths that resulted in a stuck server grab
6964 (when the window was fully onscreen, or on gdk_image_new()
6965 failure); make the server ungrab thing a bit more
6968 2001-08-06 Sven Neumann <sven@gimp.org>
6970 * gdk/gdkpango.c (gdk_pango_context_destroy):
6971 check if info->colormap != NULL before unref'ing it. It might have
6972 been set to NULL using gdk_pango_context_set_colormap().
6974 Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
6976 * gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
6977 Fix conversion from float to int so that we don't get
6978 skew in the int => float => int roundtrip.
6979 (#58120, reported by Vitaly Tishkov). Also fix problem
6980 where if no alpha was set, the returned alpha
6981 from (say) set_current_alpha() was returned as 1, not 65535.
6983 Sun Aug 5 09:48:08 2001 Owen Taylor <otaylor@redhat.com>
6985 * gtk/gtklist.c (gtk_list_clear_items): Fix
6986 problem with selecting a new focus child.
6988 * gtk/gtklist.c (gtk_list_clear_items): Clear
6989 list->undo/list_focus_child after unparenting
6990 child, since unparenting the child can result
6991 in list->last_focus_child being set. (#58024)
6993 * Makefile.am (SUBDIRS): Add target specific pc
6994 files to DISTCLEANFILES.
6996 * gtk/Makefile.am: add @GTK_DEBUG_FLAGS@
6997 (58327, Matthias Clasen)
6999 Sat Aug 4 19:28:21 2001 Owen Taylor <otaylor@redhat.com>
7001 * tests/testgtk.c: Patch from Hans (with various modifications),
7002 to add the ability to use testgtk as a rough-and-ready
7003 benchmark. Try, 'testgtk --bench all:5' (if you want decent
7004 numbers, run without a window manager)
7006 2001-08-04 Alexander Larsson <alexl@redhat.com>
7008 * gdk/win32/gdkinput.c:
7009 Add #ifdef HAVE_WINTAB around wintab.h include.
7012 Removed marshals that have been moved to glib.
7013 Commented out plug and socket. They didn't compile for me
7016 2001-08-04 Hans Breuer <hans@breuer.org>
7018 * gtk/stocks-icons/makefile.msc : new file
7019 * gtk/makefile.msc.in : use it
7021 * gtk/gtkstyle.c : not all platforms do provide M_PI and
7022 friends, but luckily there is G_PI
7024 * gtk/gtk.def : updated
7026 * gdk/win32/gdkwindow.c (gdk_window_new) : don't make all TEMP
7027 windows WS_POPUP, but only those without a parent. This fixes the
7028 mis-alignment between the selectable (temp, input only) window and
7029 the window text of GtkLabel.
7031 (gdk_window_show) : respect private->state when actually showing
7034 (gdk_window_set_transient_for) : Implementation from Wolfgang
7035 Sourdeau <wolfgang@contre.com> ported to 2.0 and added some
7036 error handling. Should fix #50586.
7038 * gdk/win32/gdkevents-win32.c : beautify log output
7040 2001-08-04 Michael Natterer <mitch@gimp.org>
7042 * gtk/gtkitemfactory.c (gtk_item_factory_create_item):
7043 Need to show the image after adding it to the GtkImageMenuItem.
7044 This used to work without in testgtk because of the
7045 gtk_widget_show_all() at the end of the function.
7048 Tue Jul 31 22:59:33 2001 Tim Janik <timj@gtk.org>
7050 * gtk/gtknotebook.c (gtk_notebook_get_child_property):
7051 (gtk_notebook_set_child_property): fix finding of child's page,
7052 since we have to validly deal with labels and menus here as well.
7053 (gtk_notebook_get_child_property): fix warning.
7054 (gtk_notebook_class_init): property tab_pack is of type
7055 GTK_TYPE_PACK_TYPE (enum) not boolean.
7056 (gtk_notebook_find_child): don't always warn, we might be looking
7057 for a label or menu child.
7058 (gtk_notebook_map): fix mapping of panel.
7060 * gtk/gtkwidget.c (gtk_widget_set_child_visible): always constrain
7061 widget's mapped state, regardless of the value being set equals
7062 old settings, since things like REALIZED(parent) or MAPPED(parent)
7063 may have changed since the old value was set. make it an error to
7064 invoke this function on a toplevel widget.
7066 2001-07-31 Darin Adler <darin@bentspoon.com>
7070 Put all mentions of GdkFont inside #ifndef GDK_DISABLE_DEPRECATED.
7072 * demos/gtk-demo/menus.c: (do_menus): Cast to G_OBJECT, not
7075 Tue Jul 31 15:34:57 2001 Jonathan Blandford <jrb@redhat.com>
7077 * gtk/gtktreeview.c (gtk_tree_view_remove_column): Whoops. Stupid
7078 scoping error pointed out by matthiasc@poet.de.
7080 2001-07-31 Sven Neumann <sven@gimp.org>
7082 * demos/gtk-demo/appwindow.c
7083 * demos/gtk-demo/item_factory.c
7084 * tests/testgtk.c: gtk_accel_group_attach() takes a GObject.
7086 Mon Jul 30 10:49:16 PDT 2001 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com>
7088 * gtk/gtksignal.h (gtk_signal_handler_pending): corrected the wrong
7089 argument order for g_signal_has_handler_pending.
7091 Sun Jul 29 17:14:01 2001 Tim Janik <timj@gtk.org>
7093 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): use g_file_test()
7094 instead of long deprecated g_scanner_stat_mode().
7096 2001-07-29 Hans Breuer <hans@breuer.org>
7098 * gdk/makefile.msc : build in the backend dir after
7099 auto-generating files
7101 * gdk/win32/gdkfont-win32.c (gdk_font_load) : reimplement
7102 with code from win32-production-branch.
7104 * gdk/win32/gdkwindow-win32.c : set the private->destroyed flag
7105 before calling DestroyWindow, which indirectly calls
7106 gdk_window_destroy_notify ()
7108 (performance patch merged from win32-production-branch)
7109 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_segments):
7110 Use PatBlt() instead of LineTo() when possible (solid single-pixel pen,
7111 R2_COPYPEN rop). It is claimed to be much faster.
7113 Fri Jul 27 11:31:15 2001 Jonathan Blandford <jrb@redhat.com>
7115 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_property):
7116 add an "attributes" property to the text renderer for ATK.
7118 2001-07-26 Alex Larsson <alexl@redhat.com>
7120 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
7121 Initialize image->bits_per_pixel from the drawable, not from
7124 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth):
7125 Fix cast. argument is an IMPL already.
7127 2001-07-15 James Henstridge <james@daa.com.au>
7129 * gtk/gtkwindow.c (gtk_window_add_accel_group): cast to GObject.
7130 (gtk_window_remove_accel_group): same here.
7131 (gtk_window_key_press_event): same here.
7133 * gtk/gtkwidget.c (gtk_widget_add_accelerator): cast to GObject.
7134 (gtk_widget_remove_accelerator): same here.
7135 (gtk_widget_remove_accelerators): same here.
7137 * gtk/gtkplug.c (gtk_plug_accel_entries_changed): same here.
7139 * gtk/gtkmenushell.c (gtk_menu_shell_key_press): cast to GObject
7140 instead of GtkObject.
7142 * gtk/gtkmenu.c (gtk_menu_key_press): update since GtkAccelGroup
7145 * gtk/gtkitemfactory.c (gtk_item_factory_propagate_accelerator):
7146 pass a GObject to gtk_accel_group_entries_from_object.
7147 (gtk_item_factory_create_item): s/accel_widget/accel_object/
7149 * gtk/gtk-boxed.defs: remove GtkAccelGroup boxed def.
7151 * gtk/gtkaccellabel.c: convert to handle GObject accel objects.
7153 * gtk/gtkaccellabel.h: fix header to reflect that arbitrary
7154 GObjects can have accelerators set now. Add compatibility
7157 * gtk/gtkmarshal.list: add missing marshallers.
7159 * gtk/gtkaccelgroup.[ch]: convert to a GObject, and allow setting
7160 accelerators on plain GObjects. gtk_accel_group_object_destroy
7161 has been converted into a weak reference, and
7162 gtk_accel_group_delete_entries is now a destroy notify for that
7165 2001-07-23 Ron Steinke <rsteinke@w-link.net>
7167 * gdk/gdkdraw.c: Added a check on the colormap depth to
7168 gdk_drawable_set_colormap()
7169 * gdk/x11/gdkimage-x11.c: combination of Matthias Clasen's
7170 patch to fix colorsel and my patch to fix gdk_drawable_get_image()
7171 for pixmaps without visuals (more specifically, bitmaps)
7172 * gdk/x11/gdkpixmap-x11.c: Fixed gdk_pixmap_new() so it
7173 doesn't set a colormap with the wrong depth
7176 2001-07-22 Anders Carlsson <andersca@gnome.org>
7178 * gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
7179 expander_height and expander_width properties with a single
7180 property, expander_size.
7181 (gtk_tree_view_init): Set the tab_offset to expander_size
7183 (gtk_tree_view_unrealize): Remove the expand/collapse
7184 timeout if it exists.
7185 (coords_are_over_arrow): Fix a small bug.
7186 (gtk_tree_view_motion_draw_column_motion_arrow): Use
7188 (gtk_tree_view_draw_focus): Use "treeview" instead of
7189 "add-mode" as detail when drawing the focus.
7190 (gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
7191 instead of "add-mode" as detail when drawing the focus.
7192 (gtk_tree_view_deleted): If we have a node currently being
7193 expanded or collapsed, remove the timeout and set the node
7195 (gtk_tree_view_queue_draw_arrow): New function that just
7196 redraws the arrow of a node.
7197 (gtk_tree_view_draw_arrow): Use expander_size instead of
7198 expander_width/expander_height, also pass a different
7199 expander_style to gtk_paint_expander depending on the
7200 state of the node being drawn.
7201 (expand_collapse_timeout): New function for expanding
7202 or collapsing a node depending on the previous state.
7203 (gtk_tree_view_real_expand_row): Add timeout and set
7204 correct state for node being expanded.
7205 (gtk_tree_view_real_collapse_row): Add timeout and set
7206 correct state for node being collapsed.
7208 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
7209 information about the node currently being expanded or
7210 collapsed, and also a timeout id.
7212 * gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
7213 with expander_style for draw_expander.
7215 * gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
7217 (create_expander_affine): New function for creating an
7219 (apply_affine_on_point): New function for applying an
7221 (gtk_default_draw_expander): Modified to take expander_style
7222 instead of is_open, and to draw the rectangle rotated differently
7223 depending on the expander style.
7224 (gtk_paint_expander): Replace is_open with expander_style.
7226 * gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
7228 * gtk/gtkenums.h: Add expander style enum.
7230 2001-07-21 Jonas Borgström <jonas@codefactory.se>
7232 * gtk/gtktreemodel.c (gtk_tree_model_foreach): Check the return
7233 value from gtk_tree_model_get_iter, the model might be empty.
7235 2001-07-20 Hans Breuer <hans@breuer.org>
7237 * gdk/win32/gdkinput-win32.c : gdk_device_get_history moved to
7238 gdk/gdkinput.c like the other backends
7240 * gdk/win32/gdkinput-win32.h :
7241 * gdk/win32/gdkinput.c :
7242 * gdk/win32/gdkvisual-win32.c :
7243 * gdk/win32/gdkwin32.h : mechanical adaption to GdkDevice and
7244 GdkVisual GObjectification. UNTESTED for pen-devices because
7248 * gtk/gtk.def : updated externals
7250 * gtk/gtkiconfactory.c :
7251 * gtk/gtkoldeditable.c : GError *error needs to be initialized (= NULL)
7252 before passing &error to functions to avoid strange crashes
7254 * gtk/gtkcontainer.c (gtk_container_real_set_focus_child) : is static
7256 * gtk/gtkwidget.c (gtk_widget_get_child_visible): use g_return_val_if_fail
7258 * gtk/makefile.msc.in : updated
7260 Thu Jul 19 15:35:32 2001 Owen Taylor <otaylor@redhat.com>
7262 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
7263 Add property support. (#51858)
7265 Thu Jul 19 14:56:33 2001 Owen Taylor <otaylor@redhat.com>
7267 * gtk/gtkaccellabel.c (gtk_accel_label_class_init)
7268 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
7269 Use Shift/Ctrl instead of Shft/Ctl. (#53807)
7271 Thu Jul 19 11:41:00 2001 Owen Taylor <otaylor@redhat.com>
7273 * gtk/gtkcolorsel.c: Add propery support (roughly
7274 based on patch from Lee Mallabone, #51014)
7276 * gtk/gtkcolorsel.h: Mark gtk_color_selection_set_update_policy as
7277 deprecated, since we already g_warning() on it.
7279 Thu Jul 19 14:24:34 2001 Owen Taylor <otaylor@redhat.com>
7281 * gtk/gtkentry.c (gtk_entry_set_positions): Fix
7282 typo that sometimes caused selection not to work properly.
7284 * gtk/gtkentry.c (gtk_entry_grab_focus): Select text in
7285 entry when tabbing in. (#57743)
7287 * gtk/gtkentry.c (gtk_entry_motion_notify): If the
7288 user drags up above or down below the entry, move
7289 to the end or the beginning of the entry. (Suggestion
7290 from Jay Cox, #50940)
7292 * gtk/gtkentry.c (gtk_entry_move_cursor): If we have
7293 a current selection, then when moving by chars or
7294 words, move to the end of the selection rather than
7295 from entry->current_pos. (Suggestion from Jay Cox,
7298 Thu Jul 19 12:14:28 2001 Owen Taylor <otaylor@redhat.com>
7300 * gtk/gtkwindow.c (gtk_window_set_decorated): Actualy
7301 set window->decorated. (Patch from Hidetoshi Tajima,
7304 Sat Jul 7 02:50:14 2001 Owen Taylor <otaylor@redhat.com>
7306 * gtk/gtkwidget.c (gtk_widget_set_parent): Enforce
7307 the widget/child realization/mapping invariants.
7309 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add functions
7310 gtk_widget_[get/set]_child_visible() to control
7311 whether visible children of a mapped window are
7314 * docs/widget_system.txt: Updated for changes in
7315 container contract, and addition of GTK_CHILD_VISIBLE.
7317 * gtk/gtkcontainer.c: Add generic map()/unmap()
7318 functions that work for almost all containers.
7320 * gtk/gtknotebook.c gtk/gtkpacker.c: Use
7321 gtk_widget_set_child_visible() where necessary.
7323 * gtk/*.c: Remove excess map(), unmap(), and
7324 realization/mapping invariant enforcing code
7325 from many containers.
7327 Wed Jul 18 19:51:45 2001 Owen Taylor <otaylor@redhat.com>
7329 * gtk/gtktextview.c (gtk_text_view_set_attributes_from_style):
7330 Get the foreground color from 'text', nor 'fg'. (#57568)
7332 Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com>
7334 * gtk/*.c: Patch from Matthias Clasen to remove remove
7335 all instances of g_return_if_fail (foo != NULL); that are
7336 immediately before a g_return_if_fail (GTK_IS_FOO (foo));
7337 since the second check catches the NULL anyways.
7339 Wed Jul 18 18:23:05 2001 Owen Taylor <otaylor@redhat.com>
7341 * gtk/gtkbutton.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtktextview.c
7342 gtktreeview.c: Fix idles and timeouts to be properly surrounded by
7343 GDK_THREADS_ENTER()/LEAVE() pairs.
7345 * gtk/gtkdialog.c gtk/gtkclipboard.c: Surround calls
7346 to g_main_loop_run() with GDK_THREADS_LEAVE()/ENTER()
7347 pairs. (Problem found by M. Meeks)
7349 2001-07-18 Darin Adler <darin@bentspoon.com>
7351 * gtk/gtkiconfactory.c: (gtk_icon_size_register): Reorder code so
7352 that we don't get a g_warning message every time we register a new
7355 * gdk/x11/gdkcolor-x11.c: (gdk_colormap_alloc1): Fix warning by
7356 using pixel variable of the correct type.
7358 Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com>
7360 * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(),
7361 so that using X functions on a GdkWindow is possible, if
7364 * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip
7365 and ts_origin of a GC, so that external parties can offset/restore
7366 a GC, when using gdk_window_get_internal_paint_info().
7368 2001-07-17 Darin Adler <darin@bentspoon.com>
7370 * .cvsignore: Ignore the sgml directory made by gtkdoc.
7371 * demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
7372 instead of the deprecated gtk_window_set_policy.
7373 * demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
7374 * gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
7375 function to get rid of warning and some code too.
7376 * gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
7378 * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
7380 * gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
7382 * gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
7383 (gdk_utf8_to_compound_text): Add missing const.
7384 * gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
7385 * gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
7386 cast and get rid of an unnecessary one.
7387 * gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
7388 * gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
7390 * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
7391 Remove unused local.
7392 * modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
7394 * tests/testsocket.c: (add_child): Add cast so the printf format
7395 doesn't make us implicitly depend on what integer type
7396 gtk_socket_get_id returns.
7397 * tests/testtextbuffer.c: Add missing const.
7398 * tests/testtreefocus.c: (main): Remove unused local.
7399 * tests/treestoretest.c: (iter_remove): Remove unused local.
7400 (uppercase_value): Remove unused function.
7401 (make_window): Add statement to quiet the compiler's uninitialized
7404 Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
7409 (update_timeout): add GDK_THREADS_ENTER/GDK_THREADS_LEAVE.
7410 (gtk_range_calc_layout): compute the new layout based on an
7411 adjustment->value being passed in as argument.
7412 (gtk_range_button_press): for button2 slider warps, first recalc
7413 the layout, then adjust the value. also, use update_slider_position()
7414 for adjusting the value, so we keep pixel quantisation at which we
7415 usually operate (upon motion or button releases). the reason for this
7416 is that, we can't change the adjustment upon button2 presses to a non
7417 quantised value and upon button2 release re-quantise the value since
7418 that'd alter the value even if we didn't get any motion events (causing
7419 unexpected scroll area warps upon release and/or slider pixel-jitter).
7420 (gtk_range_motion_notify): update the slider position from queried
7421 coordinates, not event coordinates.
7423 Fri Jul 13 09:47:52 2001 Tim Janik <timj@gtk.org>
7425 * gtk/gtkstyle.c (gtk_default_draw_focus): fix line style resetting,
7426 the default gc values are: width=0, CapBut, JoinMiter.
7428 2001-07-13 Anders Carlsson <andersca@codefactory.se>
7430 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
7431 into account the xpad and ypad when calculating the width and the
7432 height of the pixbuf cel.
7434 Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
7436 * gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
7437 Rename to gtk_radio_menu_item_get_group(), add deprecated
7440 * gtk/gtkfilesel.c: Indentation fix.
7442 Thu Jul 12 17:33:00 2001 Owen Taylor <otaylor@redhat.com>
7444 * gtk/gtkbbox.h gtk/gtkcompat.h: Patch from Mathias
7445 Hasselmann to fix warnings in compat macros.
7448 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Fix
7449 stupid wrong cast added in last patch.
7451 Thu Jul 12 16:51:34 2001 Owen Taylor <otaylor@redhat.com>
7453 * gtk/gtkwidget.c: Replace a couple of inappropriate calls to
7454 GTK_WIDGET_HAS_FOCUS() with gtk_widget_is_focus(). (#57067)
7456 Thu Jul 12 14:06:19 2001 Owen Taylor <otaylor@redhat.com>
7458 * gtk/gtkmenubar.c (gtk_menu_bar_hierarchy_changed): Add
7461 * gtk/gtkcontainer.c (gtk_container_get_focus_chain): Fix
7462 NULL/FALSE return value confusion.
7464 * gtk/gtkrange.c (coord_to_value): Fix division-by-zero
7465 problem when scrollbar completely fills range. (Patch
7466 from Matthias Clasen, #57047)
7468 Thu Jul 12 13:53:28 2001 Owen Taylor <otaylor@redhat.com>
7470 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Properly
7471 clean up when handling events for move-resize emulation.
7472 (Problem traced down by Matthias Clasen, #57271)
7474 Thu Jul 12 13:43:27 2001 Owen Taylor <otaylor@redhat.com>
7476 * gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkcombo.c
7477 gtk/gtkctree.c gtk/gtkcurve.c gtk/gtkentry.c
7478 gtk/gtkfontsel.c gtk/gtkhandlebox.c
7479 gtk/gtkimcontextsimple.c gtk/gtkmain.c gtk/gtkmenu.c
7480 gtk/gtkmenuitem.c gtk/gtkoptionmenu.c gtk/gtkpixmap.c
7481 gtk/gtkselection.c gtk/gtktextdisplay.c gtk/gtktextview.c
7482 gtk/gtktooltips.c gtk/gtkwidget.c gtk/gtkwindow.c:
7483 Formatting fixes from multihead brnach. [ mostly foo(bar) => foo (bar) ]
7485 2001-07-09 Peter Williams <peterw@ximian.com>
7487 * gtk/Makefile.am ($(srcdir)/stamp-gtk.defs): Add a cd $(srcdir)
7488 for when srcdir != builddir
7490 Mon Jul 9 12:50:51 2001 Jonathan Blandford <jrb@redhat.com>
7492 * gtk/gtktreemodel.c: remove gtk_tree_model_get_first in favor of
7493 gtk_tree_model_get_iter_root.
7495 * gtk/gtkliststore.c: Add a bunch of g_return statements.
7496 (gtk_list_store_iter_n_children): Fix up.
7498 * gtk/gtktreestore.c: Add a bunch of g_return statements.
7500 Fri Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
7502 * gtk/gtkwidget.c (gtk_widget_class_init):
7503 G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to
7504 restore some workingness.
7506 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix
7507 handle of window type for input-only windows.
7509 Thu Jul 5 21:53:46 2001 Owen Taylor <otaylor@redhat.com>
7511 * gtk/gtkbbox.[ch] gtk/gtkbox.[ch] gtk/gtk[hv]bbox.c:
7512 Patch from Gregory Merchan to add
7513 gtk_button_box_set_secondary(), which separates
7514 the child into a separate group from the normal
7517 * gtk/gtkdialog.c: Make help buttons secondary by
7520 * gtk/gtkbbox.c: Added a child property "secondary".
7522 * gtk/testgtk.c: Turn on the help button for the
7523 color selector to check that it properly appears
7526 Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com>
7528 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c
7529 gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk:
7530 Add gdk_set_pointer_hooks() to allow pointer-querying to
7531 be hooked by an event record/playback system like GERD.
7534 Thu Jul 5 08:57:07 2001 Owen Taylor <otaylor@redhat.com>
7536 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Pass
7537 in the right value of initial_emission to
7538 gtk_widget_set_style_internal (#57091)
7540 Wed Jul 4 23:17:04 2001 Owen Taylor <otaylor@redhat.com>
7542 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed):
7545 * gtk/gtkwidget.c (gtk_widget_reset_rc_style): Fix problem
7546 with calling gtk_widget_set_style_internal() with
7547 the old style, not the new style. (#56989)
7549 Wed Jul 4 22:35:40 2001 Owen Taylor <otaylor@redhat.com>
7551 * gtk/gtklabel.c gtk/gtkmenubar.c gtk/gtktreeviewcolumn.c
7553 Check GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel (widget)),
7554 not GTK_WIDGET_GET_ANCESTOR ... see
7555 http://mail.gnome.org/archives/gtk-devel-list/2001-July/msg00072.html.
7556 Indicate the best practice in the docs for gtk_widget_get_toplevel().
7558 * gtk/gtkwidget.[ch]: Expose a private _gtk_widget_hierarchy_changed(),
7559 so GtkPlug can give the correct signals when transforming
7560 from a child to a toplevel.
7562 * gtk/gtkdnd.c (gtk_drag_dest_hierarchy_changed): Handle
7563 reparentation correctly.
7565 * gtk/gtkwidget.c (gtk_widget_propagate_hierarchy_changed):
7566 Propagate the previous_toplevel argument down properly.
7568 * gtk/gtklabel.c (gtk_label_finalize): Fix unrefing
7571 * gtk/gtkplug.[ch]: Add an "embedded" signal.
7573 * gtk/gtksocket.[ch]: Add "child_added", "child_removed"
7576 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]: Add
7577 functions gtk_plug_get_id(), gtk_socket_get_id(),
7578 to avoid the user having to worry about realization,
7581 * tests/testsocket.c: Extend to try out the new signals
7582 and gtk_plug/socket_get_id().
7584 * gtk/gtklabel.c (gtk_label_set_pattern_internal): Fix
7585 setting of underline attributes.
7587 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
7588 DestroyNotify events from SubstructureNotifyMask
7590 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent):
7591 Switch GDK_WINDOW_TYPE (window) as needed.
7593 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Clean up,
7594 allow creation of toplevel windows as children of
7597 * gtk/gtkplug.c: Remove hacks involving changing private
7598 fields of GdkWindow.
7600 * gtk/gtkplug.[ch] gtk/gtksocket.c: Work to make
7601 exactly the same signals and notification
7602 be emitted for local embedding as for inter-process
7605 2001-07-04 James Henstridge <james@daa.com.au>
7607 * gtk/gtkliststore.h: add missing gtk_list_store_newv prototype.
7609 Mon Jul 2 16:53:25 2001 Owen Taylor <otaylor@redhat.com>
7611 * gtk/xembed.h gtk/gtkplug.c gtk/gtksocket.c: For
7612 XEMBED embedding add a _XEMBED_INFO property to the
7613 client with version number and a "mapped" flags.
7614 Use the mapped flag instead of the racy MapRequestEvent
7616 * gtk/gtksocket.c: Clean up the gtk_socket_steal()
7617 code to reliably set things (when the child is a passive
7618 embedder participating in the XEMBED protocol) intead
7619 of just being a hack for embedding non-participating
7620 programs. Fix various bugs and race conditions.
7622 * gtk/gtksocket.[ch] gtk/gtkplug.[ch]: Make local embedding
7623 work by simply making the GtkSocket the gtk parent
7624 of the GtkPlug. Set a flag in this case and make
7625 the GtkPlug work like a normal container by overriding
7626 methods such as check_resize and "chaining past" GtkWindow
7629 * gtk/gtkentry.c (gtk_entry_real_activate)
7630 gtk/gtkmain.c (gtk_propagate_event):
7631 Eliminate use of gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW).
7633 * gtk/gtkwidget.c (gtk_widget_get_toplevel,
7634 gtk_widget_get_ancestor):
7635 Explain why gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)
7636 might not give the expected result and recommend
7639 * tests/testsocket.c tests/testsocket_child.c
7640 tests/testsocket_common.c tests/Makefile.am: Extended
7641 to test different type of adding plugs to sockets
7642 (local,active,passive), and to test mapping/unmapping
7645 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Don't
7646 mark the window as destroyed until after we
7647 called _gdk_windowing_window_destroy().
7648 (_gdk_windowing_window_destroy() may use GDK functions
7651 * gdk/x11/gdkinput.c: Remove the check for finalization -
7652 devices can be finalized under some circumnstances.
7654 * gdk/x11/gdkinput-x11.c (gdk_input_device_new): Fix
7655 small problem with GDK_TYPE_DEVICE.
7657 2001-07-02 Havoc Pennington <hp@pobox.com>
7659 * gdk/x11/gdkwindow-x11.c (gdk_wmspec_change_state): fix to
7660 use constants not atoms.
7662 2001-07-02 James Henstridge <james@daa.com.au>
7664 * gtk/gtktextview.c (gtk_text_view_class_init): same here for
7665 PANGO_TYPE_TAB_ARRAY.
7667 * gtk/gtktexttag.c (gtk_text_tag_class_init): same here, but also
7668 for PANGO_TYPE_TAB_ARRAY.
7670 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
7671 s/GTK_TYPE_PANGO_FONT_DESCRIPTION/PANGO_TYPE_FONT_DESCRIPTION/
7673 * gtk/gtk-boxed.defs: move all the boxed definitions to the top of
7674 the file. Remove Pango types from defs -- they are now defined in
7677 Mon Jul 2 06:35:10 2001 Tim Janik <timj@gtk.org>
7679 * gdk/gdkkeys.c (gdk_keymap_class_init): s/signal_newc/signal_new/
7681 * gtk/gtkobject.c (gtk_object_destroy): invoke
7682 g_object_run_dispose().
7687 * gtk/gtklist.c: s/shutdown/dispose/ for the GObject
7690 Sat Jun 30 20:44:48 2001 Owen Taylor <otaylor@redhat.com>
7692 * gtk/gtktypeutils.c (gtk_type_class): Remove
7693 change check for GTK_TYPE_OBJECT derivation to
7694 G_TYPE_OBJECTS - it's Tim-approved to use this
7695 for arbitary objects.
7697 * gtk/gtkwindow.c gtk/gtkcontainer.[ch]: underscore
7698 prefix gtk_container_dequeue_resize_handler().
7700 * gtk/gtkwidget.[ch]: Add a previous_toplevel argument
7701 to the hierarachy_changed signal, since you otherwise
7702 have to always keep that around.
7704 * gtk/gtkmenubar.c gtk/gtklabel.c gtk/gtksocket.c: Adapt
7705 for extra argument to hierarchy_changed.
7707 Tue Jun 26 19:39:03 2001 Owen Taylor <otaylor@redhat.com>
7709 * gtk/gtkwidget.c (gtk_widget_set_style): Allow %NULL
7710 for style to mean "revert to default style"
7712 * gtk/gtkwidget.[ch] (gtk_widget_set_rc_style,
7713 gtk_widget_restore_default_style): Make this functions
7714 deprecated aliases for gtk_widget_set_style (widget, NULL).
7716 * gtk/gtkwidget.[ch]: Remove:
7717 gtk_widget_set_default_style ()
7718 gtk_widget_push_style ()
7719 gtk_widget_pop_style ()
7720 These functions interact are overriden by RC files, and
7721 thus virtually useless, and complicated.
7723 Fri Jun 22 18:49:48 2001 Owen Taylor <otaylor@redhat.com>
7725 * gtk/gtkrc.c: Add a GtkRcContext structure to hold
7726 most of the previous global variables in gtkrc.c. This is
7727 in preparation for multi-head, since each screen can
7728 have different GtkSettings and RC information.
7732 * gtk/gtkrc.h (struct _GtkRcStyleClass): Add a
7733 GtkSettings parameter to GtkRcStyle::parse.
7735 * gdk/x11/gdkevents-x11.c gtk/gtksettings.c gtk/gtkrc.c:
7736 Add two new settings gtk-theme-name, gtk-key-theme-name,
7737 for RC files that are loaded by name after reading
7738 the default RC files.
7740 * gtk/gtkrc.c: Allow priorities for styles, as wll as
7743 * gtk/gtkenums.h gtk/gtkrc.c: Add GTK_PATH_PRIO_THEME,
7744 and use it by default for RC files loaded via
7745 gtk-theme-name, gtk-key-theme-name.
7747 * gtk/gtkiconfactory.c (gtk_icon_source_set_filename)
7748 gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string)
7749 tests/testgtkrc: Require pathnames to be absolute.
7751 * gtk/gtkrc.c gtk/gtkiconfactory.c: Look up the full filename for
7752 the source when parsing, since the operation of looking up a
7753 pixmap from an RC file depends on the parsing context.
7755 * gtk/gtkrc.c (gtk_rc_context_reparse_all): Automatically
7756 reset RC styles on all widgets when files are reparsed.
7758 * tests/testgtk.c (create_rc_file)
7759 gtk/gtkwindow.c (gtk_window_read_rcfiles):
7760 Simplify, now that gtk_rc_reparse_all() resets styles on
7763 * gtk/gtkmain.c (gtk_get_default_language): Fix broken
7766 * gtk/gtksettings.[ch] (gtk_settings_install_property[_ch]): Remove
7767 GtkSettings argument.
7769 * gtk/gtksettings.[ch] (gtk_settings_get_default): Rename from
7770 gtk_settings_get_global().
7772 * gtk/gtkwidget.[ch]: Add a function gtk_widget_Get_settings()
7773 to get the appropriate GtkSettings for a widget. (For now,
7774 just gets the default GtkSetttings.)
7776 * gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtkmenu.c gtk/gtkmenubar.c
7777 gtk/gtktextview.c gtk/gtktoolbar.c: Fixes for GtkSettings
7780 * gtk/gtkrc.[ch]: Add gtk_rc_get_style_by_paths() to allow
7781 getting a style for a path without actually having a widget.
7782 (Allows using a style for a subpart of a widget, for
7785 * gtk/gtkrc.[ch]: Add gtk_rc_reparse_all_for_setting() to allow forcing
7786 the RC files to be reloaded for just one GtkSettings
7787 (not sure how useful this really is.)
7789 * gtk/gtkrc.h: Deprecate
7790 gtk_rc_add_widget_name/widget_class/class_style
7792 2001-06-30 Alex Larsson <alexl@redhat.com>
7794 * gdk/linux-fb/gdkinput-none.c:
7795 * gdk/linux-fb/gdkinput.c:
7796 * gdk/linux-fb/gdkinputprivate.h:
7797 Convert GdkDevice to a GObject.
7799 * linux-fb/gdkprivate-fb.h:
7800 * linux-fb/gdkvisual-fb.c:
7801 Convert GdkVisual to a GObject.
7803 2001-06-29 Alex Larsson <alexl@redhat.com>
7808 * gdk/x11/gdkvisual-x11.c:
7809 Convert GdkVisual to a GObject.
7813 * gdk/x11/gdkinputprivate.h:
7814 * gdk/x11/gdkinput-gxi.c:
7815 * gdk/x11/gdkinput-none.c:
7816 * gdk/x11/gdkinput-x11.c:
7817 * gdk/x11/gdkinput-xfree.c:
7818 * gdk/x11/gdkinput.c:
7819 Convert GdkDevice to a GObject.
7821 Fri Jun 29 22:13:28 2001 Jonathan Blandford <jrb@redhat.com>
7823 * gtk/gtktreestore.c (gtk_tree_store_new): changed new_with_types
7824 to just plain new, fixing the number of columns, and column types
7827 * gtk/gtkliststore.c (gtk_list_store_new): ditto.
7829 * gtk/gtkcellrenderertext.c
7830 (gtk_cell_renderer_text_set_fixed_height_from_font): FIX the
7831 height to a specific font.
7833 * gtk/gtktreeview.c (gtk_tree_view_is_expander_column): fix brokenness.
7835 * tests/*c: change to work with new store models.
7837 2001-06-29 Havoc Pennington <hp@redhat.com>
7839 * Throughout: fixes to compile with G_DISABLE_COMPAT
7840 (s/g_signal_connectc/g_signal_connect/,
7841 s/g_signal_newc/g_signal_new/,
7842 s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
7844 Fri Jun 29 03:14:16 2001 Jonathan Blandford <jrb@redhat.com>
7846 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
7847 add path argument to selection callbacks.
7849 Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com>
7851 * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to
7852 walk through a model in a depth first manner, with the option to
7855 Fri Jun 8 18:52:10 2001 Jonathan Blandford <jrb@redhat.com>
7857 * gtk/gtktreeview.[hc]: Patch Thomas Broyer from
7858 <tbroyer@ltgt.net>. Expander arrows are now attached to a specific
7859 column and follow it when draged, rather than a location in the
7860 view. "expander_column" property and drawing functions changed
7861 accordingly. Fixes bug #55942.
7863 (gtk_tree_view_{set,get}_expander_column): Now works with a
7864 GtkTreeViewColumn* instead of int.
7866 Thu Jun 28 22:53:18 2001 Owen Taylor <otaylor@redhat.com>
7868 * gdk/gdk.c gtk/gtktypeutils.c: Fix args to g_type_init().
7870 2001-06-28 Havoc Pennington <hp@pobox.com>
7872 * gdk/x11/gdkimage-x11.c (_gdk_x11_get_image): Clip the retrieved
7873 image data to the screen, using a server grab to avoid race
7876 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
7877 check for NULL return from gtk_image_new_from_stock(), it never
7879 (gtk_item_factory_create_item): fix bug where we parsed the stock
7880 ID as an inline pixbuf
7882 * gtk/gtktext.c (gtk_text_key_press): numeric keypad support
7884 * gtk/gtkspinbutton.c (gtk_spin_button_key_press): numeric keypad
7885 support (should be using binding set here)
7887 * gtk/gtkoptionmenu.c (gtk_option_menu_key_press): numeric keypad
7888 support (should be using binding set here)
7890 * gtk/gtkmenushell.c (gtk_menu_shell_class_init): numeric keypad
7893 * gtk/gtkmenu.c (gtk_menu_class_init): numeric keypad support
7895 * gtk/gtkmenubar.c (gtk_menu_bar_class_init): numeric keypad
7897 * gtk/gtklistitem.c (gtk_list_item_class_init): numeric keypad
7899 * gtk/gtkimcontextsimple.c
7900 (gtk_im_context_simple_filter_keypress): keypad
7902 * gtk/gtkfilesel.c (gtk_file_selection_key_press): keypad
7904 * gtk/gtkentry.c (gtk_entry_class_init): numeric keypad fixes
7906 * gtk/gtkctree.c (gtk_ctree_class_init): numeric keypad support
7908 * gtk/gtkcolorsel.c (palette_activate): keypad support (of course,
7909 should be binding-setted)
7911 * gtk/gtkwindow.c (gtk_window_class_init): numeric keypad fixes
7913 * gtk/gtkclist.c (gtk_clist_class_init): numeric keypad fixes
7915 * gtk/gtkcalendar.c: numeric keypad fixes
7917 * gtk/gtktextview.c (gtk_text_view_class_init): numeric keypad
7920 * gdk/gdkwindow.c (gdk_window_get_clip_region): fix infinite loop
7923 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7924 clip the render area to the drawable's clip region in advance,
7925 so we don't get data from the server that we don't need.
7927 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
7928 check return value of gdk_pixbuf_get_from_drawable(), fall back
7929 to bilevel alpha if we can't get the pixbuf to composite against.
7931 * gdk/gdkdraw.c (gdk_drawable_get_image): set the image colormap
7933 * gdk/gdkimage.c (gdk_image_get_colormap): add
7934 gdk_image_set_colormap, gdk_image_get_colormap
7936 * gdk/gdkpixbuf-drawable.c (rgbconvert): Change all converters to
7937 take a region of the image, instead of converting the entire
7940 * gtk/gtkwidget.h (struct _GtkWidgetClass): add show_help
7941 keybinding signal. Add default bindings for it. Add default
7942 handler for show_help that shows the tooltip for the widget.
7944 * gtk/gtkdialog.c (gtk_dialog_class_init): add binding set and
7945 "close" keybinding signal, remove key press handler.
7947 * gtk/gtktooltips.c (gtk_tooltips_set_colors): Just remove this,
7948 it's not our usual practice to leave a deprecated function around
7949 with a runtime warning, plus we don't want it to appear in docs,
7950 plus if we make them yellow no one will want to change them
7953 Thu Jun 28 23:53:31 2001 Tim Janik <timj@gtk.org>
7955 * gtk/gtkwidget.c (gtk_widget_hide): !GTK_OBJECT_DESTROYED() ->
7956 GTK_WIDGET_REALIZE() for resize queueing.
7958 * gtk/gtkmain.c (gtk_main_do_event): !GTK_OBJECT_DESTROYED() ->
7959 GTK_WIDGET_REALIZE() for post event delivery destruction upon
7962 * gtk/gtkwidget.c: added GtkWidget::event-after notification signal, to
7963 sompensate for former (pre-2.0) connect_after() facility.
7964 (gtk_widget_send_expose):
7965 (gtk_widget_event): assert the widget is realized, since event delivery
7966 to non-realized widgets is essentially a bug. event handlers should
7967 be able to unconditionally rely on widget->window (unless they
7968 emit events on their own which can trigger widget destruction).
7969 (gtk_widget_event_internal): removed old outdated GTK_OBJECT_DESTROYED()
7970 logic. event delivery happens as follows:
7971 a) emission of GtkWidget::event (RUN_LAST handler). returns was_handled.
7972 b) if !was_handled in (a) and the widget is still realized, emit event-
7973 specific signal (RUN_LAST handler). returns was_handled.
7974 c) emission of GtkWidget::event-after for notification if the widget is
7975 still realized (regardless of was_handled from previous stages, no
7976 class handler). no return value.
7977 d) was_handled gets passed on to caller, to determine further
7978 propagation. if the widget got unrealized meanwhile, was_handled
7979 is returned as TRUE.
7981 * gdk/gdkevents.[hc]: added gdk_event_get_root_coords() and
7982 gdk_event_get_coords().
7984 Thu Jun 28 17:18:41 2001 Tim Janik <timj@gtk.org>
7986 * configure.in (GTK_MICRO_VERSION): up version to 1.3.7, interface
7987 age 0, binary age 0. depend on glib 1.3.7.
7989 * gtk/gtkcontainer.c: remove g_signal_handlers_disconnect_by_func() hack.
7991 * gtk/gtkmenubar.c: same here.
7993 * gtk/gtkcontainer.c (gtk_container_focus_tab): fix param-spec retrival.
7995 * gtk/gtkcolorsel.c (gtk_color_selection_init): fix connect_data() usage.
7997 * gtk/gtkentry.c (gtk_entry_focus_in): same here.
7999 * gtk/gtkmenubar.c (add_to_window): likewise.
8001 * gtk/gtktextbtree.c: and here...
8003 * gtk/gtktextview.c (gtk_text_view_ensure_layout): same thing.
8005 * gtk/gtktoolbar.c (gtk_toolbar_init): once more.
8007 * gtk/gtktreemodel.c (connect_ref_callbacks): and another time.
8009 * gtk/gtktreeviewcolumn.c:
8010 (_gtk_tree_view_column_set_tree_view): yet again.
8012 * demos/gtk-demo/images.c (progressive_timeout): demonstrate
8013 signal connections without g_signal_connect_data().
8015 * demos/gtk-demo/stock_browser.c (do_stock_browser): second
8018 * demos/testpixbuf.c (main): running out of equality phrases for the
8019 ChangeLog, but had to adapt connections here as well.
8021 * demos/testanimation.c (progressive_timeout): and for the fun of it,
8022 tackled this the same way.
8024 * tests/testtext.c (create_view): ok, it's becoming a pain at this
8025 point, but had enough enery for one more fix.
8027 * tests/testtreecolumns.c (main): stand up man, do your work!
8029 * tests/testtreeview.c (set_columns_type): ok, this is the last file i
8030 fix, either that's been all of it or CVS gtk is broken yet again.
8032 2001-06-29 James Henstridge <james@daa.com.au>
8034 The following changes correspond to bug #56812
8036 * gdk/gdkinput.h, gdk/gdkevents.c (GDK_TYPE_DEVICE): register type
8039 * gdk/gdkcursor.[ch] (GDK_TYPE_CURSOR): register type code for
8042 2001-06-19 Havoc Pennington <hp@pobox.com>
8044 * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function
8045 for mapping a window without fooling with stacking order, but
8046 updating the "withdrawn" flag
8048 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event
8049 filtering as soon as possible, moving move resize and wmspec_check
8050 handling after the event filter. Make default filter apply to all
8051 events, not just those with no GdkWindow wrapped around the X
8052 window. Fix a FIXME about how the window could be a pixmap using
8053 RTTI; this of course assumes GDK_IS_WINDOW() is optimized.
8055 Also, be robust against events not on a known GdkWindow.
8057 * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server,
8058 gdk_x11_ungrab_server): export reference-counted server grabs, so
8059 other people can grab server over a GDK function that also does
8062 Wed Jun 27 19:40:31 2001 Jonathan Blandford <jrb@redhat.com>
8064 * gtk/gtktreeviewcolumn.c
8065 (gtk_tree_view_column_pack_start_cell_renderer): New function to
8066 reflect that you can (hypothetically) pack cell renderers into a
8068 (gtk_tree_view_column_pack_end_cell_renderer): ditto.
8069 (gtk_tree_view_column_cell_is_visible): Move more functionality to
8071 (gtk_tree_view_column_cell_can_focus): Move more functionality to
8074 * gtk/gtktreeview.c: Move to use new column-packing code.
8075 (gtk_tree_view_real_expand_row): remove totally braindead code.
8076 (gtk_tree_view_real_collapse_row): ditto.
8078 2001-06-27 Kjartan Maraas <kmaraas@gnome.org>
8080 * gtk/gtktreeviewcolumn.c: Fix a typo.
8082 2001-06-26 Joel Becker <jlbec@evilplan.org>
8084 * gdk-pixbuf/gdk-pixbuf-csource.c: remove '#include "x"' line
8085 at the end of the file
8087 2001-06-26 Havoc Pennington <hp@redhat.com>
8089 * gtk/gtkwindow.c (gtk_window_set_policy): forgot a notification
8091 2001-06-26 Havoc Pennington <hp@redhat.com>
8093 * gtk/gtkwindow.c (gtk_window_class_init): add "resizable"
8096 Tue Jun 26 12:59:28 2001 Jonathan Blandford <jrb@redhat.com>
8098 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
8099 stupid missing statement
8101 * gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
8102 private function for ATK. It notifies you of how many _visible_
8103 children are deleted when a node is deleted. Should be used by
8106 Tue Jun 26 11:06:34 2001 Owen Taylor <otaylor@redhat.com>
8108 * gtk/gtkclist.c gtk/gtkentry.c gtk/gtkspinbutton.c:
8109 Use new pango_context_get_metrics() to fix problems
8110 with font lists in descriptions. (#56184, reported by
8113 Tue Jun 26 10:04:30 2001 Tim Janik <timj@gtk.org>
8115 * gtk/gtkiconfactory.c:
8116 * gtk/gtkitemfactory.c: use gdk_pixbuf_new_from_stream(). fixed up
8117 item factory so inlined pixbufs actually work.
8119 2001-06-25 Havoc Pennington <hp@redhat.com>
8121 * gtk/gtktreeviewcolumn.h, gtk/gtktreeviewcolumn.c:
8122 s/RESIZEABLE/RESIZABLE/
8124 * gtk/gtkwindow.c, gtk/gtkwindow.h: s/resizeable/resizable/
8126 2001-06-25 Alexander Larsson <alexl@redhat.com>
8129 Added --enable-fbmanager. This is some experimental code
8130 that lets several GtkFB apps coordinate their access to the
8134 Added ENABLE_FB_MANAGER.
8136 * gdk/linux-fb/Makefile.am:
8137 Added gdkfbmanager and gdkfbswitch.
8139 * gdk/linux-fb/gdkkeyboard-fb.c:
8140 * gdk/linux-fb/gdkmouse-fb.c:
8141 * gdk/linux-fb/gdkprivate-fb.h:
8142 Split device init and open so that
8143 they can be opened and closed while switched
8146 * gdk/linux-fb/gdkmain-fb.c:
8147 Add the basic manager communication.
8149 * gdk/linux-fb/gdkrender-fb.c:
8150 Don't update to the shadow fb if we're
8151 blocked by the fb manager.
8153 Sun Jun 24 22:15:16 2001 Owen Taylor <otaylor@redhat.com>
8155 * docs/Changes-2.0.txt: Add note about child property
8158 Sun Jun 24 21:34:32 2001 Owen Taylor <otaylor@redhat.com>
8160 * gtk/gtkenums.h gtk/gtkiconfactory.c: Add a special size for
8161 drag-and-drop GTK_ICON_SIZE_DND (Default to 32x32)
8163 * gtk/gtkdnd.c (gtk_drag_dest_set_target_list): Fix problem
8164 with un'reffing wrong list reported by Jeff Franks.
8166 * gtk/gtkdnd.[ch] (_gtk_drag_{source,}dest_handle_event): _prefix.
8168 * gtk/gtkdnd.c (gtk_drag_set_icon_default): Use GTK_STOCK_DND
8169 for the default icon. Remove inline XPM.
8171 * gtk/gtkstock.h gtk/gtkiconfactory.c:
8172 Add GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE (Currently, stock_new
8173 is used for GTK_STOCK_DND, but it is a bit too small.)
8175 * gtk/stock-icons/stock_dnd_multiple.png
8176 gtk/stock-icons/Makefile.am: New stock icon moved from gnome-libs.
8178 * gtk/gtkdnd.c (gtk_drag_source_event_cb): Only return
8179 TRUE when starting a drag. In other cases, we are
8180 just observing. (#52995)
8182 * gtk/gtkdnd.[ch] (gtk_drag_set_icon_{stock,pixbuf}): Add
8183 function to set the icon for a drag from a GdkPixbuf
8186 * gtk/gtkdnd.[ch] (gtk_drag_source_set_icon_{stock,pixbuf}):
8187 Likewise, for drag sources.
8189 * gtk/gtkdnd.h: Deprecate gtk_drag_set_default_icon.
8190 (Now should be done using the stock system.)
8192 Sun Jun 24 12:06:47 2001 Owen Taylor <otaylor@redhat.com>
8194 * gtk/gtktextview.[ch] (gtk_text_view_set_text_window_size):
8195 Removed - didn't work and not particularly useful anyways
8198 Sun Jun 24 11:29:35 2001 Owen Taylor <otaylor@redhat.com>
8200 * gdk/x11/gdkimage-x11.c (gdk_image_new): Fix stupid error
8201 introduced last night that was making things decidedly not work.
8203 * gtk/*.[ch]: Patch from Kristian Rietveld adding 80 getters
8204 so that we have getter/setter pairing everywhere it makes
8207 * gtk/gtkradiobutton.[ch] gtk/gtktoolbar.c tests/testgtk.:
8208 Rename gtk_radio_button_group to gtk_radio_button_get_group, add a
8209 deprecated compat macro. (#55516)
8211 * gtk/gtklabel.[ch]: Add functions
8212 gtk_label_set/get_use_underline(), gtk_label_set/get_use_markup(),
8213 gtk_label_set_label(), which mirror the property API for GtkLabel.
8214 Make gtk_label_get_attributes() only reflect the attributes
8215 set by gtk_label_set_attributes.
8217 * gtk/gtknotebook.c (gtk_notebook_set_current_page) gtk/gtkcompat.h: Rename
8218 from gtk_notebook_set_page().
8220 Sat Jun 23 18:02:46 2001 Owen Taylor <otaylor@redhat.com>
8222 * configure.in: Fix tests for XShm.h.
8224 * gdk/x11/gdkimage-x11.c: Cleanup error handling in
8225 gdk_image_new() by use of goto, properly use g_object_unref().
8227 Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
8229 * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
8230 calls, as GdkImage is an object. these should be g_obejct_unref()
8231 instead but that won't work because of the g_error() statement
8232 in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
8233 to spot these places.
8235 Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
8237 * modules/input/gtkimcontextxim.c: Fixup some problems with
8238 text length handling in error cases.
8240 * gtk/gtkwidget.c (gtk_widget_size_allocate): Reorder
8241 a bit to make test actually warn on attempt to allocation
8242 a negative size. (#56101, Matthias Clasen)
8244 Fri Jun 22 14:06:08 2001 Jonathan Blandford <jrb@redhat.com>
8246 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8247 noticed by Brian Cameron.
8248 (gtk_tree_view_real_expand_row): Fix bug noticed by Brian
8251 2001-06-22 Hans Breuer <hans@breuer.org>
8253 * gdk/gdk.def : updated externals
8255 * gdk/win32/gdkdrawable-win32.c : corrected some casts
8258 * gdk/win32/gdkevents-win32.c : use _gdk_windowing_window_get_offsets
8259 to translate coordinates to the internal > 16 bit system
8260 Try to handle WM_WINDOWPOSCHANGED to get better performance for
8261 when moving/resizing
8263 * gdk/win32/gdkkeys-win32.c : implement gdk_keymap_get_default ()
8264 and gdk_keymap_get_direction (). The latter is untested for
8267 * gtk/gtk.def : updated externals
8269 * gtk/gtkmain.c : gtk_get_default_language () should reurn the result
8270 from pango_language_from_string (), not an already freed pointer
8272 * gtk/stock-icons/stock_menu_sort_ascending.png : PNGs need to be
8273 binary (-kb) to be useable on windoze
8275 2001-06-21 Alexander Larsson <alexl@redhat.com>
8277 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
8278 Update to new PangoLanguage changes.
8280 * gtk/gtkwindow-decorate.c:
8281 * gtk/gtkwindow.[ch]:
8282 Added setting argument to gtk_window_set_has_frame ()
8284 Thu Jun 21 13:42:01 2001 Owen Taylor <otaylor@redhat.com>
8286 * gdk/x11/gdkkeys-x11.c (gdk_keymap_get_direction): Handle
8287 the case without XKB properly.
8289 * gtk/gtkrc.c (gtk_rc_set_default_files): Remove
8290 unused gtk_rc_auto_parse variable.
8292 * gtk/gtkrc.[ch] gtk/gtkstyle.c docs/Changes-2.0.txt:
8293 Remove gtk_rc_set_image_loader(), gtk_rc_load_image(), no
8294 longer needed with GdkPixbuf.
8296 * gtk/gtkrc.c (_gtk_rc_init): Make private.
8298 Fri Jun 15 16:26:12 2001 Owen Taylor <otaylor@redhat.com>
8300 * gtk/gtkentry.h: Mark deprecated functions with
8301 GTK_DISABLE_DEPRECATED.
8303 Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com>
8305 * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype.
8307 * gtk/gtk[hv]scale.c: Include math.h, stdlib.h
8309 * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch]
8310 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c
8311 gtk/gtktextdisplay.c gtk/gtktextiter.[ch]
8312 gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt
8313 to recent changes in Pango.
8315 * tests/testgtk.c: Set language tags with gtk_label_set_markup()
8316 to test whether the basic engine honors them.
8318 Thu Jun 21 02:13:40 2001 Tim Janik <timj@gtk.org>
8320 * gtk/gtkcontainer.[hc]: added gtk_container_child_set_property() and
8321 gtk_container_child_get_property().
8323 Wed Jun 20 19:19:15 2001 Jonathan Blandford <jrb@redhat.com>
8325 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): clean up
8326 (gtk_tree_view_move_cursor_page_up_down): implement.
8328 Wed Jun 20 05:32:05 2001 Tim Janik <timj@gtk.org>
8330 * gtk/gtkspinbutton.c: make maximum digits compile time configurable
8331 via MAX_DIGITS and up to 20. 5 was just ridiculously small.
8332 don't use automatic fixed size buffer for printf-ing floats, doubles
8333 can expand to really _huge_ strings, use g_strdup_printf() instead.
8335 Wed Jun 20 04:28:24 2001 Tim Janik <timj@gtk.org>
8337 * gtk/gtkrange.c (gtk_range_class_init): hum, "adjustment" was a
8338 construct property in 1.2 and still needs to be.
8340 * gtk/gtkwidget.c: "composite_child" is not a settable property.
8342 Tue Jun 19 19:13:19 2001 Jonathan Blandford <jrb@redhat.com>
8344 * gtk/gtkliststore.c (gtk_list_store_clear):
8345 * gtk/gtktreestore.c (gtk_tree_store_clear): New functions to
8348 Mon Jun 18 02:00:49 2001 Tim Janik <timj@gtk.org>
8350 * gtk/gtkwidget.c (gtk_widget_get_property): fix PROP_EVENTS.
8353 * gtk/gtk.h: disabled GtkPacker compilation.
8355 * gtk/gtkarg.[hc], gtk/gtkargcollector.c: got rid of these.
8357 * gtk/gtknotebook.c:
8359 * gtk/gtkbox.c: ported this over to child properties.
8361 * gtk/gtksettings.c: fetch class properties via
8362 g_object_class_list_properties().
8364 * gtk/gtkcontainer.[hc]: implemented child properties, got rid of the
8365 child arg interface. use gobjectnotifyqueue.c for child property
8368 * gtk/gtkwidget.[hc]: provide necessary means for container child
8369 properties, i.e. ::child_notify signal,
8370 gtk_widget_freeze_child_notify(),
8371 gtk_widget_child_notify(),
8372 gtk_widget_thaw_child_notify().
8374 * tests/testgtk.c: removed inferior property handling code, for
8375 property editing, a generic module should be used, and GLE
8376 coincidentally fullfills that purpose.
8378 * docs/reference/Makefile.am: disabled gtk docs building, gtk-doc
8379 needs to be adapted to g_object_class_list_properties() before this
8382 Mon Jun 18 20:06:10 2001 Jonathan Blandford <jrb@redhat.com>
8384 * gtk/gtktreeview.c (gtk_tree_view_row_expanded): New function to
8385 test if a node is expanded.
8387 Mon Jun 18 19:41:38 2001 Jonathan Blandford <jrb@redhat.com>
8389 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
8390 where collapsing a selected row would result in the cursor/anchor
8393 Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com>
8395 * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename
8396 gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
8397 * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!!
8398 Now I can really reorder/sort all Store widgets. treesorttest
8399 seems to just work now.
8400 * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops.
8401 testtreesort worked through a big coincidence all this time.
8402 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty
8404 * tests/testtreecolumns.c: Big 'ol warning at the top letting
8405 people know that this code should never ever ever be copied.
8407 2001-06-15 Jonas Borgström <jonas@codefactory.se>
8409 * gtk/gtkwindow.h: Fixed a small typo, it should be
8410 GTK_WINDOW_GROUP_GET_CLASS and not GTK_WINDOW_GET_CLASS
8413 2001-06-14 Havoc Pennington <hp@redhat.com>
8417 * gtk/gtkcompat.h: remove GTK_DISABLE_COMPAT_H, replace with
8418 GTK_DISABLE_DEPRECATED
8420 Thu Jun 14 19:21:27 2001 Jonathan Blandford <jrb@redhat.com>
8422 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Whoops. Forgot
8423 this a couple months ago. Now GtkTreeStore sort of sorts. I'll
8424 finish it off tonight, though it basically works now when it's a
8425 list. Also, I have a sinking feeling neither GtkTreeStore or
8426 GtkListStore actually resort when adding a new item. I'll look
8429 2001-06-14 Havoc Pennington <hp@redhat.com>
8431 * demos/gtk-demo/main.c (load_file): fix bug identified by
8432 warnings I just added to gtktextbuffer
8434 2001-06-14 Havoc Pennington <hp@redhat.com>
8436 * gtk/gtkwindow.c (window_group_cleanup_grabs): fix other typo
8438 * gtk/gtkwidget.c (gtk_widget_propagate_state): fix typo
8440 * gtk/gtktextbtree.c: don't leak node data all over the place.
8442 * demos/gtk-demo/main.c (main): create fontify tags for the right
8445 * gtk/gtktextbuffer.c, gtk/gtktexttagtable.c: enhance docs
8446 to mention tags in the same table can't have the same name,
8447 suggested by Skip Montanaro
8449 2001-06-11 Havoc Pennington <hp@redhat.com>
8451 * gtk/gtktexttagtable.c (gtk_text_tag_table_add): improve warning
8452 for trying to add two tags with same name to the tag table
8454 * demos/gtk-demo/main.c (main): fix colors ;-)
8456 `Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com>
8458 * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct
8459 that allows grouping together multiple windows so that grabs
8460 within that set of windows only affect those windows.
8462 * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify"
8463 signal for notification when a widget becomes shadowed
8464 by a grab or is no longer shadowed by a grab.
8466 * gtk/gtkwidget.c (gtk_widget_propagate_state)
8467 gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow
8468 insenstive widgets to maintain a grab.
8470 2001-06-14 Alexander Larsson <alexl@redhat.com>
8472 * docs/README.linux-fb:
8473 Add some example config files that can be used with the URW fonts.
8475 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
8476 Set up the color ramps for DirectColor mode.
8478 2001-06-11 Havoc Pennington <hp@redhat.com>
8482 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
8484 * gdk/linux-fb/gdkwindow-fb.c:
8485 Unify shaped window code and make it repaint the area that used
8486 to be part of the shape, but isn't anymore.
8488 2001-06-11 Havoc Pennington <hp@redhat.com>
8492 * configure.in (GTK_MINOR_VERSION): bump version to 1.3.6
8494 * gtk/Makefile.am: glib_genmarshal already contains top_builddir
8496 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
8498 * gdk/linux-fb/gdkdnd-fb.c (gdk_drag_status):
8499 Don't pass on GDK_ACTION_DEFAULT. The Xdnd code
8500 passes zero instead, so do we.
8502 2001-06-13 Alexander Larsson <alla@lysator.liu.se>
8504 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
8505 Deep copy dash_list too.
8506 (_gdk_fb_gc_new): Set default cap_style before
8509 2001-06-12 Alexander Larsson <alla@lysator.liu.se>
8511 * gdk/linux-fb/gdkkeyboard-fb.c (gdk_keymap_get_default,
8512 gdk_keymap_get_direction): New functions.
8514 Tue Jun 12 12:41:27 2001 Jonathan Blandford <jrb@redhat.com>
8516 * gtk/gtktreemodel.h (GTK_TREE_MODEL_LIST_ONLY): further justify
8517 gtk_tree_model_get_flags by adding a second flag for atk.
8519 * gtk/gtktreemodel.c: make cursor behavior interact better with
8522 Mon Jun 11 12:43:08 2001 Jonathan Blandford <jrb@redhat.com>
8524 * gtk/gtktreeview.c (gtk_tree_view_class_init): changed
8525 expand_row/collapse_row to be 2 signals each -- test_expand_row
8526 and row_expanded as well as test_collapse_row and row_collapsed.
8528 2001-06-10 Anders Carlsson <andersca@codefactory.se>
8530 * demos/gtk-demo/stock_browser.c (do_stock_browser): Update
8531 signal name to be changed instead of selection_changed.
8533 2001-06-08 Havoc Pennington <hp@redhat.com>
8535 * gtk/gtkentry.c (gtk_entry_class_init): add read-only
8536 "scroll_offset" property for notification when the layout offsets
8538 (gtk_entry_adjust_scroll): add notify for scroll_offset
8539 (gtk_entry_layout_index_to_text_index): function to compensate for
8540 preedit string when doing coordinate stuff on the entry's layout
8541 (gtk_entry_text_index_to_layout_index): inverse function
8542 (gtk_entry_get_layout_offsets): hook to get current position of
8544 (gtk_entry_get_layout): hook to get the layout itself.
8546 * gtk/gtklabel.c (gtk_label_get_layout): new function
8548 Fri Jun 8 19:49:29 2001 Jonathan Blandford <jrb@redhat.com>
8550 * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): New
8552 (gtk_tree_view_focus): Fix merge conflict.
8554 Fri Jun 8 18:41:30 2001 Jonathan Blandford <jrb@redhat.com>
8556 * gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
8557 clean up cursor handling.
8559 2001-06-08 Havoc Pennington <hp@redhat.com>
8561 * gtk/gtktextbuffer.c (gtk_text_buffer_get_start_iter): added this
8564 * gtk/gtktextview.c (gtk_text_view_get_default_attributes): added
8567 2001-06-08 Alex Larsson <alexl@redhat.com>
8569 * gtk/gtkcompat.h.in:
8570 Added compat macros for all old GTK_TYPE_GDK_xxx types.
8573 2001-06-08 Havoc Pennington <hp@redhat.com>
8575 * gtk/gtkhsv.h (struct _GtkHSVClass): had GtkContainerClass as
8578 2001-06-08 Havoc Pennington <hp@redhat.com>
8580 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): geez,
8581 don't call g_list funcs on GSList
8583 * gtk/gtkwidget.c (gtk_widget_child_focus): replaces
8584 gtk_container_focus(), since some widgets have focusable locations
8585 which are not other widgets. These widgets should not have to be
8586 containers just to manage the focus. For example, GtkHSV is
8587 currently a container for no good reason. Also, this cleans
8588 up the "if (is_container && is_sensitive && is_drawable)
8589 container_focus ()" mess in widget implementations.
8591 * gtk/gtkcontainer.c (gtk_container_focus): deprecate this
8592 function, and have it just call gtk_widget_child_focus().
8594 * gtk/gtkhsv.c: derive from widget not container
8596 Throughout: fix to reflect GtkContainer::focus change
8598 Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
8600 * gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
8601 range. Fix bug #55921
8603 * gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
8606 Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
8608 * gdk/gdkkeys.[ch]: Add a direction-changed signal,
8609 and gdk_keymap_get_current_direction().
8611 * gdk/x11/gdkevents-x11.c gdk/x11/gdkkeys-x11.c
8612 gdk/x11/gdkmain-x11.c gdk/x11/gdkprivate-x11.h: Track
8613 the current locked group, use it to set the keymap
8616 * gtk/gtksettings.c: Add a new gtk-split-cursor setting
8617 to determine whether we draw a split cursor or use
8618 a jumping cursor based on the current direction.
8620 * gtk/gtkentry.c gtk/gtktextview.c gtk/gtktextlayout.[ch]:
8621 Obey the split cursor setting.
8623 Fri Jun 8 11:57:50 2001 Owen Taylor <otaylor@redhat.com>
8625 * gtk/gtkimmulticontext.c (activate_cb): Only activate
8626 when toggling on, not when toggling off... (#55906)
8628 Wed Jun 6 10:37:07 2001 Owen Taylor <otaylor@redhat.com>
8630 * gtk/gtkwidget.c (gtk_widget_set_double_buffered):
8631 s/gdk_window_begin_paint/gdk_window_begin_paint_region/
8632 in docs. (#55812, Vitaly Tishkov)
8634 2001-06-08 Anders Carlsson <andersca@codefactory.se>
8636 * demos/gtk-demo/main.c (create_tree): Changed signal name from
8637 selection_changed to changed in signal connection to GtkTreeSelection,
8638 also used g_signal_connectc since GtkTreeSelection is now a GObject.
8640 Thu Jun 7 18:25:42 2001 Jonathan Blandford <jrb@redhat.com>
8642 * gtk/gtktreeselection.c: Now it's a GObject instead of a
8643 GtkObject. The GtkTreeSelection::selection_changed signal is now
8644 the GtkTreeSelection::changed signal.
8646 * gtk/gtktreeview.c: Modified to deal with new GtkTreeSelection
8649 * tests/gtktree*.c: Modified to deal with new GtkTreeSelection
8652 2001-06-07 Havoc Pennington <hp@redhat.com>
8654 * gtk/Makefile.am: fix glib-mkenums and glib-genmarshal again
8656 2001-06-07 Havoc Pennington <hp@redhat.com>
8658 * gtk/Makefile.am: fixups for glib-mkenums and glib-genmarshal
8659 (not tested yet because with absolute path to srcdir I can't build
8660 atk, but it was broken anyway so this may help)
8662 2001-06-07 Havoc Pennington <hp@redhat.com>
8664 * configure.in: output m4macros/Makefile
8666 Wed Jun 6 21:59:16 2001 Jonathan Blandford <jrb@redhat.com>
8668 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): hook up arrow
8669 buttons. Fixes #55460 reported by matthiasc@poet.de.
8671 Wed Jun 6 21:18:54 2001 Jonathan Blandford <jrb@redhat.com>
8673 * gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): centralize
8674 expansion/collapsing so it only happens in one place.
8675 (gtk_tree_view_real_expand_row): ditto.
8677 2001-06-07 Havoc Pennington <hp@redhat.com>
8679 * tests/Makefile.am: add missing -I flag
8681 * gtk/Makefile.am: use @GLIB_MKENUMS@, @GLIB_GENMARSHAL@, etc.
8683 * configure.in: use pkg-config to see if GModule is
8684 supported; fix to properly turn on included loaders
8685 when GModule isn't supported; don't use AC_CHECK_LIB
8686 when libs are not installed yet
8688 * autogen.sh: add support for AUTOGEN_SUBDIR_MODE
8690 * Makefile.am (SUBDIRS): add m4macros subdir
8692 * gtk/Makefile.am: $(srcdir)/foo targets must be $(srcdir)/foo in
8695 Wed Jun 6 19:31:11 2001 Jonathan Blandford <jrb@redhat.com>
8697 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix silly bug
8698 reported by "Padraig O'Briain" <Padraig.Obriain@Sun.COM>.
8700 Wed Jun 6 20:01:38 2001 Jonathan Blandford <jrb@redhat.com>
8703 (gtk_tree_view_real_expand_collapse_cursor_row): Handle key
8704 bindings to expand and collapse rows.
8705 (gtk_tree_view_real_select_cursor_parent): New key binding.
8706 (gtk_tree_view_real_toggle_cursor_row): New key binding.
8708 * gtk/gtkmarshal.list: new
8709 marshaller. (VOID__BOOLEAN_BOOLEAN_BOOLEAN)
8711 2001-06-06 Havoc Pennington <hp@redhat.com>
8713 * gtk/gtkrange.c (gtk_range_class_init): add "inverted" property
8715 * gtk/gtkscale.c (gtk_scale_class_init): Change Page Up and Page
8716 Down to move visually rather than logically, since it confuses
8717 people. Add -/+ and Ctrl--/+ bindings for logical movement.
8719 2001-06-06 Alex Larsson <alexl@redhat.com>
8721 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
8722 Fix up error messages.
8724 Wed Jun 6 10:34:42 2001 Owen Taylor <otaylor@redhat.com>
8726 * gtk/gtktooltips.h: Include gtkwidget.h
8727 (#55798, Karl Nelson)
8729 * gdk/x11/gdkwindow-x11.c (utf8_is_latin1): 0xff is
8730 a valid latin-1 character. (Marc Lehmann, #35467)
8732 * gdk/x11/gdkwindow-x11.c: Fix minor typo in comment.
8733 (Marc Lehmann, #35467)
8735 2001-06-05 Alex Larsson <alexl@redhat.com>
8737 * demos/gtk-demo/appwindow.c (do_appwindow):
8738 Don't swap the order of the args to gtk_widget_destroyed.
8740 * tests/testgtk.c (destroy_properties):
8741 Don't crash when the properties window is destroyed.
8743 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
8744 Use with_mnemonics to handle the case of stock items with
8745 underscores in them.
8747 2001-06-05 Havoc Pennington <hp@redhat.com>
8749 * gtk/gtktextiter.c (gtk_text_iter_order): rename from
8750 gtk_text_iter_reorder
8752 2001-06-05 Havoc Pennington <hp@redhat.com>
8754 * gtk/gtktoolbar.c (gtk_toolbar_remove_space): new function
8756 2001-06-05 Havoc Pennington <hp@redhat.com>
8758 * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value
8759 to the range that was set
8761 * gtk/gtkrange.c: add value_changed signal, primarily
8762 intended for use with GtkScale
8763 (gtk_range_set_increments): new function
8764 (gtk_range_set_range): new function with weird name
8765 (gtk_range_set_value): new function
8766 (gtk_range_get_value): new function
8768 * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename
8769 from gtk_spin_button_get_value_as_float(). Compat #define
8770 added for get_value_as_float.
8772 * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function
8774 * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function
8776 Tue Jun 5 14:57:18 2001 Jonathan Blandford <jrb@redhat.com>
8778 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_size): Fix bug #55573
8780 Mon Jun 4 12:41:25 2001 Owen Taylor <otaylor@redhat.com>
8782 * gtk/gtkwidget.h: Deprecate gtk_widget_set().
8784 * tests/testgtk.c (create_tooltips): Remove usage of
8787 2001-06-05 Havoc Pennington <hp@redhat.com>
8789 * gtk/gtkcolorsel.c: Use new mnemonic convenience functions
8791 Applying patch from Jeff Franks, with function docs added.
8793 * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic):
8794 remove call to set_mnemonic_widget, change docs a bit.
8796 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic):
8799 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic):
8802 * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function
8804 * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new
8806 (gtk_radio_button_new_with_mnemonic_from_widget): new function
8808 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic):
8811 * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new
8814 * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on
8815 auto-selection of mnemonic widget.
8817 Mon Jun 4 15:05:24 2001 Jonathan Blandford <jrb@redhat.com>
8819 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_max_width):
8820 Fix segfault found by Vitaly Tishkov <tvv@sparc.spb.su>.
8821 (gtk_tree_view_column_set_min_width): ditto.
8823 Tue Jun 5 11:04:06 2001 Owen Taylor <otaylor@redhat.com>
8825 * gdk/gdkpixmap.h (GDK_PIXMAP_GET_CLASS):
8826 s/GdkPixmapClass/GdkPixmapObjectClass/. (#51890, Jeff Franks)
8828 Mon Jun 4 12:50:11 2001 Owen Taylor <otaylor@redhat.com>
8830 * gtk/gtkctree.c (gtk_ctree_insert_gnode): Add a missing
8833 2001-06-04 Havoc Pennington <hp@pobox.com>
8835 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ignore
8836 r eleases for buttons 6, 7
8838 2001-06-04 Havoc Pennington <hp@redhat.com>
8840 * gtk/gtkseparatormenuitem.h: Fix a search-and-replace screwup
8841 (s/CHECK/SEPARATOR/ gone awry). Patch from Jeff Franks, bug
8844 2001-06-04 Havoc Pennington <hp@redhat.com>
8846 * gtk/gtktextview.c (gtk_text_view_size_request): handle case
8847 where text_view->layout == NULL by assuming its size is 0,
8848 i.e. same as if we haven't done any reflow. Reported by
8849 Hidetoshi Tajima #55448
8851 2001-06-04 Havoc Pennington <hp@redhat.com>
8853 * gdk/x11/gdkevents-x11.c (gdk_event_translate): support button 6
8854 and 7 for scroll left/right, from Thomas Broyer
8856 2001-05-10 Havoc Pennington <hp@redhat.com>
8858 * gtk/gtksettings.c (gtk_settings_get_property): Handle case where
8859 we need to parse the xsetting as if it were an RC file string.
8861 * gtk/gtkcolorsel.c (gtk_color_selection_class_init): load initial
8862 value of palette from settings, not from static variable
8864 * gdk/x11/gdkevents-x11.c: add color palette, toolbar mode to
8865 xsettings translation table
8867 * gtk/gtktoolbar.c (gtk_toolbar_new): Remove arguments, because
8868 hardcoding the toolbar style conflicts with new customizable
8869 toolbar style philosophy
8870 (gtk_toolbar_class_init): add settings for default toolbar style;
8871 these are used unless the app specifically forces a toolbar style
8873 * gtk/gtksettings.c (settings_install_property_parser): only
8874 return at the start if we warn and parser == NULL
8876 * gtk/gtkcolorsel.c (gtk_color_selection_finalize): disconnect the
8877 palette changed handler so we don't notify dead color selections
8879 * gtk/gtkstyle.c (gtk_default_draw_shadow): handle
8880 xthickness/ythickness of 0 or 1 properly
8881 (gtk_default_draw_resize_grip): clear the background behind the
8882 resize grips, and align to bottom right if we square the
8885 * gtk/gtkstatusbar.c (gtk_statusbar_init): set horizontal usize on
8886 statusbar label to 1, so it doesn't make toplevels resize oddly
8887 (gtk_statusbar_size_request): add grip size to request
8888 (gtk_statusbar_size_allocate): hack so the hbox still works with
8889 the grip size in the request
8891 * gtk/gtktoolbar.c (gtk_toolbar_show_all): override to fix
8892 bug where showing all on a toplevel makes the toolbar
8893 button text appear despite the toolbar mode
8895 * gtk/gtkmenubar.c: add internal padding style property
8897 * gtk/gtktoolbar.c: Add internal padding style property; add
8898 shadow type style property
8900 * gtk/gtkmenubar.c (gtk_menu_bar_paint): paint box with widget
8901 state; and put Container::border_width outside the frame
8903 * gtk/gtktextview.c: don't draw focus rectangle if we're in
8904 interior focus mode, we just use blinking cursor
8906 2001-06-04 Havoc Pennington <hp@redhat.com>
8908 * configure.in: Make gdk-pixbuf have same version number as GTK
8910 2001-06-04 Havoc Pennington <hp@redhat.com>
8912 * gtk/gtkspinbutton.c: Get rid of stupid g_return_if_fail on
8913 digits greater than 6. If there actually are limits (which there
8914 likely aren't), should clamp to them not warn.
8915 (gtk_spin_button_new_with_range): don't take log of 0
8916 (gtk_spin_button_size_request): use digits to compute size
8917 request, rather than step increment.
8919 * tests/testgtk.c (create_spins): test larger values of digits
8921 * gtk/gtkfontsel.c (gtk_font_selection_init): scroll to selected
8922 font on map not expose, so we don't get weirdness during scrolling
8924 2001-06-04 Havoc Pennington <hp@redhat.com>
8926 * gtk/gtkclist.c (vadjustment_value_changed): Apply fix from
8927 Sam Solon, bug #54577, update value even if not drawable.
8929 2001-06-04 Havoc Pennington <hp@redhat.com>
8931 * gtk/gtkrange.c (gtk_range_scroll_event): change SCROLL_RIGHT to
8932 SCROLL_LEFT, reported by Thomas Broyer.
8934 2001-06-04 Havoc Pennington <hp@redhat.com>
8936 * gtk/gtkrange.c (gtk_range_adjustment_value_changed):
8937 Process updates immediately, to prevent funny lag effect
8938 when scrolling, at some mild potential efficiency cost.
8940 2001-06-04 Havoc Pennington <hp@redhat.com>
8942 * gtk/gtkrange.c (gtk_range_button_press): on middle click, center
8943 slider on the click.
8945 2001-06-03 Havoc Pennington <hp@pobox.com>
8947 * gtk/gtkstyle.c (gtk_default_draw_slider): make this special-case
8948 hscale/vscale details, so we can use it for scrollbar as well.
8950 * tests/testgtk.c (reformat_value): honor digits from GtkScale
8952 * gtk/gtkenums.h (GtkTroughType): Remove this enum
8953 (GtkScrollType): add START and END from GtkTroughType
8955 * gtk/gtkstyle.c (gtk_default_draw_slider): was not properly using
8958 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkscrollbar.h,
8959 gtk/gtkscrollbar.c, gtk/gtkscale.h, gtk/gtkscale.c,
8960 gtk/gtkhscrollbar.h, gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.h,
8961 gtk/gtkvscrollbar.c, gtk/gtkhscale.h, gtk/gtkhscale.c,
8962 gtk/gtkvscale.h, gtk/gtkvscale.c: Rewrite GtkRange and subclasses.
8964 Notable changes in the process:
8966 - stepper_size style property is the height for vertical
8967 ranges, width for horizontal; the other dimension matches
8969 - add ability to do NeXT-style steppers (and several other styles
8970 that don't make any sense)
8971 - added min_slider_length, fixed_slider_length properties to
8973 - cleaned some private (or at least useless) functions out of
8975 - moved bindings to GtkScale from subclasses, even arrow keys,
8976 since blind users don't know scale orientation.
8977 - change move_slider action signal to use new GtkScrollType,
8978 remove GtkTroughType argument
8979 - digits rounds the values a range will input to the given
8980 number of decimals, but will not try to force adjustment
8981 values set by other controllers. That is, we no longer
8982 modify adjustment->value inside a value_changed handler.
8983 - added getters for GtkScale setters
8984 - middle-click begins a slider drag
8986 Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com>
8988 * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at
8989 getting the focus code to work.
8990 (gtk_tree_view_class_init): Add a bunch of keybindings.
8992 * gtk/gtktreeviewcolumn.c
8993 (gtk_tree_view_column_set_cell_data_func):
8994 s/GtkCellDataFunc/GtkTreeCellDataFunc.
8995 (_gtk_tree_view_column_set_tree_view): Use "notify::model" instead
8996 of "properties_changed" to help justify the death of the latter
8999 * tests/testtreefocus.c (main): Let some columns be focussable to
9002 2001-06-01 Havoc Pennington <hp@redhat.com>
9004 * gtk/gtkentry.c (gtk_entry_commit_cb): implement overwrite mode
9006 * gtk/gtktextview.c (gtk_text_view_commit_handler): don't
9007 overwrite in overwrite mode if we already deleted the selection
9008 and replaced it with new text.
9010 * gtk/gtklabel.c (gtk_label_select_region_index): if you set the
9011 selection to an empty range, clear the clipboard if we owned it.
9012 (gtk_label_set_selectable): give up selection if we become
9014 (gtk_label_state_changed): override state changed to unselect text
9016 (get_text_callback): add paranoia check that indexes aren't
9017 outside of label->text
9018 (gtk_label_select_region): make -1 for start_offset mean "end of
9019 label," for consistency with GtkEditable
9021 * gtk/gtkmessagedialog.c (gtk_message_dialog_new): honor
9022 GTK_DIALOG_NO_SEPARATOR flag
9024 Fri Jun 1 11:47:11 2001 Owen Taylor <otaylor@redhat.com>
9026 * gtk/gtkcombo.c (gtk_combo_set_use_arrows_always): Fix
9027 notifications on non-existant "enable_arrow_keys".
9028 (#53753, Skip Montanaro)
9030 Fri Jun 1 11:31:55 2001 Owen Taylor <otaylor@redhat.com>
9032 * gdk/gdkrectangle.c (gdk_rectangle_get_type): Add
9035 * gtk/gtkwidget.c (gtk_widget_class_init): Fix type
9036 of allocation argument be GDK_TYPE_RECTANGLE.
9038 Thu May 31 12:43:57 2001 Owen Taylor <otaylor@redhat.com>
9040 * gtk/gtkoptionmenu.c: Account for the fact that the border
9041 width is _outside_ the window. (Fixes #54585, bug found
9044 Wed May 30 15:56:30 2001 Owen Taylor <otaylor@redhat.com>
9046 * gtk/gtksettings.c (gtk_settings_get_property): Validate
9047 value from GDK settings against parameter spec.
9049 * gdk/x11/gdkevents-x11.c (gdk_setting_get): Add assignments
9050 to temporary values and use g_value_transform(), since
9051 thinking that GValue was going to be easy or efficient
9052 to use was, of course, a mistake.
9054 * gtk/gtksettings.c: Add cursor blink setting.
9056 * gdk/x11/gdkevents-x11.c: Add cursor blink X settings.
9058 * gtk/gtkentry.c: Add cursor blinking.
9060 * gtk/gtktextview.c (gtk_text_view_check_cursor_blink): Use
9061 cursor blink global settings.
9063 * gtk/gtkentry.c (gtk_entry_button_press): Add notification
9064 for :text_position in places where it is missing.
9066 Tue May 29 18:17:11 2001 Owen Taylor <otaylor@redhat.com>
9068 * autogen.sh (have_libtool): Fix GNU sedism (#55430)
9070 Tue May 29 17:40:29 2001 Owen Taylor <otaylor@redhat.com>
9072 * configure.in (GTK_DEP_CFLAGS): Use $PKG_CONFIG,
9073 not pkg-config. (#51032)
9075 * gdk/gdkproperty.h: Remove inappropriate G_GNUC_CONST
9076 (fixes #51952, James Henstridge)
9078 2001-05-27 Alexander Larsson <alla@lysator.liu.se>
9080 * gtk/gtkstock.h (GTK_STOCK_GO_UP):
9081 Rename to the more correct gtk-go-up.
9083 * gtk/stock-icons/stock_menu_sort_ascending.png:
9086 * gtk/stock-icons/stock_menu_sort_descending.png:
9087 Changed to show descending instead of ascending.
9089 * gtk/gtkiconfactory.c:
9090 Added menu size icon to sort ascending.
9092 * gtk/stock-icons/Makefile.am:
9093 Added stock_menu_sort_ascending.png.
9095 * gtk/gtkseparatormenuitem.c:
9096 Use correct typenames.
9098 Sun May 20 20:07:35 2001 Tim Janik <timj@gtk.org>
9100 * gtk/gtksignal.[hc] (gtk_signal_connect_full): make hanlder id a
9101 gulong as in GSignal.
9103 Fri May 25 19:04:17 2001 Jonathan Blandford <jrb@redhat.com>
9105 * gtk/gtktreeview.c (gtk_tree_view_calc_size): Remove almost all
9106 instances of GtkCellRenderer in code (all but dnd icon code).
9107 Virtualized in GtkTreeViewColumn. Now I need to move focus in
9108 there, and I can do multiple Cells per column.
9110 * gtk/gtktreeviewcolumn.c: Proxy all cell calls correctly
9112 * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): fix bug
9113 when model was unreffed prior to removing the row reference.
9115 2001-05-25 Havoc Pennington <hp@redhat.com>
9117 * gtk/gtkiconfactory.c: fix so that default icons are created if
9118 you call gtk_stock_list_ids()
9120 * demos/gtk-demo/stock_browser.c (create_model): sort stock items
9123 2001-05-25 Havoc Pennington <hp@redhat.com>
9125 * gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
9126 set can render without falling back to missing image icon
9128 * gtk/gtktextview.c (gtk_text_view_size_request): request full
9129 size of text, instead of random values
9131 * gtk/gtktreeview.c (gtk_tree_view_size_request): request full
9132 size of tree view, instead of random values
9134 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
9135 image in an appropriate size
9137 * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
9138 etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
9140 Throughout: fix GTK_STOCK_BUTTON_ instances
9142 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
9143 gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
9144 Add a bunch of new stock items/icons
9146 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
9147 new function, convenience for inserting columns with a data func
9149 * gtk/gtkiconfactory.c: keep a list of all existing icon factories
9150 (_gtk_icon_factory_list_ids): use list of all factories to
9151 generate a list of all known IDs
9153 * gtk/gtkstock.c (gtk_stock_list_ids): replace
9154 gtk_stock_list_items() with a function that returns all IDs known
9155 including those for GtkIconFactory.
9157 2001-05-25 Hans Breuer <hans@breuer.org>
9159 * gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
9160 work -> check boxes and radio buttons are drawn now, even on win9x.
9161 Improved line settings a bit, still no clue how to get really dotted
9162 lines on win9x, on NT it's PS_ALTERNATE.
9164 * gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
9165 GDK_HINT_MIN_SIZE as well
9167 * gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
9169 * gtk/gtk.def : updated
9171 * gtk/gtktreeprivate.h : change column_drop_func to be a function
9172 pointer not a function pointer pointer
9174 * tests/testdnd.c : include <stdlib.h> for putenv prototype
9176 * tests/testsocket.c : made it compile on win32 again
9178 * tests/makefile.msc : one more test-app uses prop-editor.obj
9180 2001-05-22 Havoc Pennington <hp@pobox.com>
9182 * gtk/gtkbin.c (gtk_bin_get_child): New function
9184 Wed May 23 20:07:53 2001 Owen Taylor <otaylor@redhat.com>
9186 * gtk/gtkimcontextsimple.c: Add Mode_Switch to list of keys
9187 to ignore when doing compose processing.
9189 2001-05-22 Joe Shaw <joe@ximian.com>
9191 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_last_toggle):
9192 Simplify as suggested by Havoc. Just get the last iter and work
9193 backward to the tag instead of getting a line and working back from
9194 there. Fixes passing in an invalid offset to
9195 iter_init_from_byte_offset().
9197 Tue May 22 16:25:27 2001 Jonathan Blandford <jrb@redhat.com>
9199 * gtk/gtktreeview*.h:
9202 Added patch from Jeff Franks <jcf@tpg.com.au> to add GET_CLASS
9203 macros to all objects.
9205 Tue May 22 15:13:52 2001 Jonathan Blandford <jrb@redhat.com>
9207 * gtk/gtkcellrenderertext.c
9208 (gtk_cell_renderer_text_set_fixed_size): Evil function to deal
9209 with very large (TM) amounts of text. May be moved to
9210 GtkCellRenderer in the future, though I'm not sure it wants to be
9213 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
9214 More sanity brought to this class. I like it.
9216 * tests/testtreecolumns.c (ViewColumnModel): Amazingly scary test
9217 case. Kids, don't try this at home.
9219 * gtk/gtktreemodel.c (gtk_tree_model_get_iter_root): new
9220 convenience function.
9222 * gtk/gtkwindow.c (gtk_window_set_geometry_hints): Fix typo in docs.
9224 2001-05-21 Alexander Larsson <alexl@redhat.com>
9227 Added properties. Based on patch by Lee Mallabone.
9233 * gtk/gtktextview.c:
9234 Converted GtkArg to GParam. Based on patches by John Margaglione.
9236 * tests/Makefile.am:
9238 Add a property editor to testtext.
9240 Mon May 21 11:29:21 2001 Owen Taylor <otaylor@redhat.com>
9242 * gtk/gtk{h,v,}paned.c: Only show the separator if
9244 * configure.in: Fixed reversed conditional causing all image
9245 libraries to be linked in.
9247 2001-05-21 Joe Shaw <joe@ximian.com>
9249 * gtk/gtklayout.c (gtk_text_layout_get_lines): Remove the assertion
9250 that top_y needs to be >= 0.
9252 2001-05-11 Havoc Pennington <hp@pobox.com>
9254 * gdk/x11/gdkmain-x11.c: Improve error messages for X errors and
9255 losing connection to the X server.
9257 Sun May 20 13:59:20 2001 Owen Taylor <otaylor@redhat.com>
9259 * configure.in: Start checks for X from pangox/pangoxft
9260 CFLAGS to avoid duplicate libraries.
9262 * gdk/Makefile.am (LDFLAGS): Remove extra -lm.
9264 * configure.in (GDK_PIXBUF_PACKAGES): Fix GDK_PIXBUF_PACKAGES
9267 2001-05-18 Alexander Larsson <alexl@redhat.com>
9269 * gtk/gtkspinbutton.c:
9270 Convert GtkArgs to GParams. Based on patch by John Margaglione.
9271 Also do size request reasonable for MAXDOUBLE. Previously it printed
9272 the limits to a buffer and overran it. Instead do it using log10() and
9273 limit the width to 10 digits.
9275 * gtk/gtkwidget.c (gtk_widget_get_property):
9276 Correctly handle setting the parent property to NULL.
9278 Fri May 18 15:26:26 2001 Owen Taylor <otaylor@redhat.com>
9280 * gtk/gtktextview.c (gtk_text_view_style_set): Reset
9281 style attributes even if the widget isn't realized.
9283 * demos/gtk-demo/main.c: Use a slightly smaller font.
9285 Fri May 18 14:25:20 2001 Owen Taylor <otaylor@redhat.com>
9287 * gtk/gtkcontainer.c: Remove reallocate-redraws property.
9288 This is something that only a widget writer would ever want
9291 * gtk/gtksignal.c: Handle G_SIGNAL_TYPE_STATIC_SCOPE for
9292 gtk_signal_emit_by_name().
9294 * gtk/gtkviewport.c: Fix some warnings.
9296 * gtk/gtkwidget.c gtk/gtksizegroup.c: Add "size group" facility
9297 allowing the requisitions of multiple widgets to be grouped
9300 * tests/testgtk.c: Add GtkSizeGroup test
9302 * demos/gtk-demo/sizegroup.c: Add GtkSizeGroup demo.
9304 * demos/gtk-demo/main.c demos/gtk-demo/pixbufs.c: Fix some
9307 * configure.in: Switch to using AM_GLIB_GNU_GETTEXT.
9309 2001-04-28 Martin Baulig <baulig@suse.de>
9311 * gtk/gtkimagemenuitem.[ch]: Renamed gtk_image_menu_item_add_icon()
9312 to gtk_image_menu_item_set_icon() and made it work if there's already
9314 (gtk_image_menu_item_new): This function doesn't take any arguments anymore.
9315 (gtk_image_menu_item_new_with_label): New function.
9317 Thu May 17 16:20:04 2001 Jonathan Blandford <jrb@redhat.com>
9319 * demos/gtk-demo/main.c (fontify): It's the worlds ugliest
9320 highlighting code!!!! The result is okay so long as you don't try
9321 to stress it. It also highlights a bug in the TextView so it's in
9322 an unproportional font right now until it's fixed.
9324 *demos/gtk-demo/*.c: Clean up code a bit to make it
9325 ugly-parser(TM) friendly. (-:
9327 2001-05-17 Joe Shaw <joe@ximian.com>
9329 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove the assertions
9330 that x_offset and y_offset must be >= 0. Clip the cursor being drawn
9331 if it is only partially onscreen.
9333 Thu May 17 17:10:13 2001 Owen Taylor <otaylor@redhat.com>
9335 * gtk/gtkentry.c: Make logical motion and deletion by graphemes,
9338 * gtk/gtkentry.c: Handle "trailing" returns from Pango when they
9339 are not zero or one; that is, when graphemes of multiple characters
9342 * gtk/gtktextlayout.c (line_display_index_to_iter): Remove unnecessary
9345 2001-05-17 Alexander Larsson <alla@lysator.liu.se>
9348 Add properties, based on patch by Lee Mallabone.
9350 * gtk/gtknotebook.c:
9352 Convert from GtkArg to GParam, based on patch by John Margaglione.
9356 * gtk/gtkhscrollbar.c:
9357 * gtk/gtkvscrollbar.c:
9359 Move adjustment property to GtkRange.
9362 Setup mnemonics on property changes
9364 * gtk/gtkwidget.c (gtk_widget_get_property):
9365 GdkExtensionMode is an enum, not a flag. Set it with
9366 g_value_set_enum ().
9368 * tests/prop-editor.c:
9369 Better propery editor.
9372 Add new property test. Pass zero to the property editor to
9373 get properties from all derived types.
9375 Sun May 13 12:01:12 2001 Owen Taylor <otaylor@redhat.com>
9377 * autogen.sh (have_automake): Require libtool-1.4,
9380 * acinclude.m4: Remove libtool macros.
9382 * gdk-pixbuf/Makefile.am: Add dependencies to loade
9385 * gdk/Makefile.am: Add dependency on libgdk_pixbuf.la
9388 * gtk/Makefile.am: Add dependency on libgdk_pixbuf.la
9389 libgdk.la for libgtk.
9391 * modules/input/Makefile.am: Make modules have full
9394 Wed May 16 14:06:01 2001 Jonathan Blandford <jrb@redhat.com>
9396 * gtk/gtktreemodel.c (gtk_tree_path_new_from_string): fix bug
9397 #54699 where paths weren't being checked for correctness.
9399 Tue May 15 20:13:24 2001 Jonathan Blandford <jrb@redhat.com>
9401 * gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
9402 in any order you wan, whether or not the column is added to the
9403 tree, or the tree is realized. Yay!
9405 * gtk/gtktreeviewcolumn.c
9406 (gtk_tree_view_column_setup_sort_column_id_callback): handle
9407 sorting columns a lot saner
9409 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
9410 new function to actually set wether or not a column is
9413 * gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
9416 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
9417 Fix nasty bug where we were showing the button just before
9418 realizing it. As a result, the parent window was
9419 tree_view->window instead of tree_view->priv->header_window.
9421 * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
9422 to let you easily reorder a list or tree.
9424 2001-05-15 Alexander Larsson <alla@lysator.liu.se>
9426 * gtk/gtkpacker.c: Apply patch from John Margaglione that converts
9427 from args to properties.
9429 Tue May 15 10:11:59 2001 Owen Taylor <otaylor@redhat.com>
9431 * gtk/gtkpreview.c: Apply patch from John Margaglione converting
9432 from args to properties. (#51957)
9434 * gtk/gtkscale.c (gtk_scale_class_init): Move install property
9435 calls to after ->set_property call.
9437 Mon May 14 14:56:21 2001 Owen Taylor <otaylor@redhat.com>
9439 * tests/prop-editor.c: Block against redundant changes.
9441 * gtk/gtkpaned.c gtk/gtk[hv]paned.c: Add position, position_set
9444 Sun May 13 18:40:04 2001 Owen Taylor <otaylor@redhat.com>
9446 * gdk/gdkpixmap.h: Remove creative formatting.
9448 Thu May 10 19:22:28 2001 Owen Taylor <otaylor@redhat.com>
9450 * gtk/gtktogglebutton.c: Patch from John Margaglione converting to
9451 property API. (#51669)
9453 * gtk/gtkscale.c: Patch from John Margaglione converting to
9454 property API. (#51891)
9456 * gtk/gtkaccellabel.c: Applied patch from Lee Mallabone, converting
9457 to property API. (#50985)
9459 Fri May 11 20:13:44 2001 Tim Janik <timj@gtk.org>
9461 * gtk/gtkmain.c (gtk_main_do_event): remember widget's double
9462 buffering state across expose event, so we still call end_paint().
9464 2001-05-11 Alexander Larsson <alexl@redhat.com>
9466 * gtk/gtkhsv.c (paint_triangle):
9467 Expose the ring in the triangle at the correct place when
9468 exposing just a part of the triangle.
9470 * gtk/gtkwindow-decorate.c (gtk_decorated_window_focus_change):
9471 Return FALSE, or window focusing will not work.
9473 2001-05-11 Havoc Pennington <hp@pobox.com>
9475 * gtk/gtkimage.c (gtk_image_new_from_stock): docs, fixes bug
9478 * gtk/gtkcolorsel.c (gtk_color_selection_new): docs, fixes
9481 Fri May 11 02:53:57 2001 Tim Janik <timj@gtk.org>
9483 * gtk/gtktogglebutton.c (gtk_toggle_button_expose): don't
9484 propagate exposes to NULL child.
9486 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed): guard
9487 against not having one of the scrollbars.
9489 * gtk/gtklabel.c (gtk_label_setup_mnemonic): clean up after us,
9490 we don't keep a mnemonic window if we have no mnemonic installed.
9492 Fri May 11 01:05:00 2001 Tim Janik <timj@gtk.org>
9494 * gtk/gtktypeutils.h: grum, gtk_type_class() is not GNUC_CONST
9495 it has the _important_ side effect of initializing a class.
9497 2001-05-10 Alexander Larsson <alexl@redhat.com>
9499 * gdk/linux-fb/gdkprivate-fb.h:
9500 Make sure you can compile out the implementation/wrapper assert
9503 * gdk/linux-fb/gdkdrawable-fb2.c:
9504 Check implementation/wrappers, initialize type for pixmap dummys.
9506 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image):
9507 Hide the cursor if reading from the screen.
9509 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9510 Fix sign bug in tiling code.
9512 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
9513 Handle background pixmaps.
9515 Wed May 9 15:27:22 2001 Jonathan Blandford <jrb@redhat.com>
9517 * gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
9518 function to let user control where columns are dragged.
9520 * gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
9523 Wed May 9 09:08:44 2001 Jonathan Blandford <jrb@redhat.com>
9525 * gtk/gtktreeview.c (gtk_tree_view_class_init): New
9526 "columns_changed" signal.
9527 (gtk_tree_view_motion_draw_column_motion_arrow): Change column
9528 motion code to draw arrows to the side if indicator is outside the
9530 (gtk_tree_view_map_expanded_rows): Implement.
9532 2001-05-07 Alexander Larsson <alexl@redhat.com>
9534 * demos/testpixbuf-save.c:
9535 * demos/testpixbuf-drawable.c:
9536 Include gdkfb.h on linux-fb.
9538 2001-05-07 Alexander Larsson <alexl@redhat.com>
9540 * gdk/linux-fb/gdkdnd-fb.c (get_toplevel_window_at):
9541 New function for getting toplevel window at position.
9542 (gdk_drag_find_window): Use get_toplevel_window () instead
9543 of gdk_window_get_pointer(). (gdk_drag_status): Use
9544 correct context for getting window.
9546 * gdk/linux-fb/gdkproperty-fb.c (gdk_atom_name):
9547 g_strdup the atom name.
9549 * gdk/linux-fb/gdkwindow-fb.c:
9552 * gtk/gtkdnd.c (gtk_drag_source_handle_event):
9553 Add code for changing cursor on linux-fb backend (same as
9556 2001-05-07 Federico Mena Quintero <federico@ximian.com>
9558 * gtk/gtkwindow.c (gtk_window_focus): Test for bin->child being
9559 present before doing anything with it. Patch from Håvard Kvålen
9560 <havardk@netcom.no>. Fixes Ximian bugzilla #2492 (OK, the bug
9561 report was not for the development branch of GTK+, but it applies
9564 2001-05-04 Havoc Pennington <hp@redhat.com>
9566 * configure.in: fix some shell typos
9568 * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix
9570 * gtk/gtkimage.c: handle animations
9572 * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request
9573 border_width * 2, not just border_width
9575 * gtk/gtkscale.c: add "format_value" signal to allow people
9576 to override the way values are drawn.
9577 (gtk_scale_get_value_size): fix width/height mistake,
9578 and compute size from actual displayed text, not
9581 * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in
9584 * tests/testtext.c: Add "Remove all tags" menu item for testing
9586 * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement
9588 * demos/gtk-demo/main.c (main): add hack so we can find modules
9589 without installing gtk
9591 * demos/gtk-demo/textview.c (insert_text): demo font scaling
9593 * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling
9595 (gtk_cell_renderer_text_set_property): remove some bogus
9598 * gtk/gtktexttag.c: add "scale" property which is a font scaling
9601 * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute
9604 * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from
9605 gtk_text_iter_is_first
9607 2001-01-06 Hans Breuer <hans@breuer.org>
9609 * gdk/gdk.def : updated exports
9611 * gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
9612 gdk won't compile anymore
9614 * gdk/win32/gdkevents-win32.c : initialize ret_val when
9615 processing GDK_FILTER functions, initialize event.key->hardware_keycode.
9616 Improved gdk_flush () to not only do pending drawing operations
9617 but also process all currently pending events. This should make
9618 the behaviour more similar to the X11 version.
9620 * gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
9621 option needs to be set even if there is no GDK_GC_BACKGROUND.
9622 (gdk_win32_hdc_get) : use predraw_set_background () independent
9623 of value_mask. This allows to draw dashed lines leaving the original
9626 * gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
9627 after processing, because we can't reuse it as the X11 version does.
9629 * gtk/gtk.def : updated exports
9631 * gtk/makefile.msc.in : added ATK, removed all test apps. (I
9632 would like to get rid of this file again, and use straight
9633 makefile.msc again, as the other Gtk+ subdirs do)
9635 * test/makefile.msc (new file) : build the test apps here
9637 2001-05-05 ERDI Gergo <cactus@cactus.rulez.org>
9639 * gdk/gdkpango.c (gdk_pango_get_item_properties): Peek
9640 strike-through setting
9641 (gdk_draw_layout_line_with_colors): Render strike-through
9643 Sat May 5 10:06:24 2001 Owen Taylor <otaylor@redhat.com>
9647 * configure.in (GTK_MICRO_VERSION): Up to 1.3.5
9651 * demos/gtk-demo/Makefile.am (EXTRA_DIST): Fix minor
9654 Sat May 5 09:18:30 2001 Owen Taylor <otaylor@redhat.com>
9656 * demos/gtk-demo/images.c (progressive_timeout): Fix
9659 * gtk/gtktreeview.c (gtk_tree_view_row_activated): Comment
9660 out FIXME warning; just too annoying.
9662 2001-05-04 Alex Larsson <alla@lysator.liu.se>
9664 * gdk/linux-fb/gdkcolor-fb.c:
9665 Better error messages.
9667 * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_new):
9668 Initialize abs_x and abs_y.
9670 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic):
9671 Correct handling of stipple offset.
9673 * gdk/linux-fb/gdkvisual-fb.c (gdk_visual_init):
9674 Treat directcolor framebuffers as truecolor.
9676 Thu May 3 14:13:49 2001 Owen Taylor <otaylor@redhat.com>
9678 * INSTALL.in HACKING gtk/gtkaccessible.[ch] gtk/gtk.c: Add
9679 dependency on Atk for accessibility support.
9681 * configure.in **/Makefile.am: Major reworking of substituted
9682 variables for CFLAGS/LIBS to make a lot more sane and
9683 keep the the compile/link lines a bit shorter.
9685 * gdk/x11/gdkkeys-x11.c: Fix #endif with trailing stuff.
9687 Thu May 3 08:10:54 2001 Owen Taylor <otaylor@redhat.com>
9689 * gtk/gtktexttag.c (gtk_text_tag_class_init): Fix return
9690 value to be G_TYPE_BOOLEAN, not G_TYPE_INT, also,
9691 use _gtk_boolean_handled_accumulator.
9693 Thu May 3 07:00:09 2001 Owen Taylor <otaylor@redhat.com>
9695 * gtk/gtktextview.c: Patch from Juan Pablo Mendoza Mendoza
9696 to fix things so clicking inside selection leaves cursor
9697 at point where clicked. (#50324)
9699 * gtk/gtksettings.c (gtk_settings_class_init): Restore
9700 sane value for default double click time.
9702 * tests/testtext.c (test_init): Really path to input modules.
9704 2001-05-03 Sven Neumann <sven@convergence.de>
9706 * demos/testpixbuf-save.c: include target-specific headers as
9707 done in testpixbuf-drawable.c
9709 Wed May 2 20:36:38 2001 Owen Taylor <otaylor@redhat.com>
9711 * gtk/gtkentry.c (gtk_entry_real_insert_text): Reduce
9712 new_text_length appropriately when we run into the
9713 size limit for the entry. (#53445, reported by Jeff Franks)
9715 * tests/testgtk.c (create_entry): Remove most of the
9716 property toggle buttons. Replace with a "Props" button
9717 that brings up a property editor.
9719 * tests/prop-editor.[ch] test/testtreeview.c tests/Makefile.am:
9720 Split the property editor code out for reuse, improve.
9722 Wed May 2 17:26:22 2001 Owen Taylor <otaylor@redhat.com>
9724 * gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.c: Always
9725 trap errors around calls to XSetInputFocus since we have
9726 no way of knowing reliably whether we are viewable or
9729 Tue May 1 09:21:23 2001 Jonathan Blandford <jrb@redhat.com>
9731 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9732 fix bug in dropping columns. Moving columns now basically works
9733 modula some fine tuning.
9735 Tue May 1 19:09:21 2001 Jonathan Blandford <jrb@redhat.com>
9737 * gtk/gtktreeview.c (gtk_tree_view_horizontal_autoscroll): Add
9738 autoscroll support. It mostly works, but could use some fine
9740 * gtk/gtktreeview.c (gtk_tree_view_button_release_drag_column):
9741 Actually move the column.
9743 Mon Apr 30 20:29:27 2001 Owen Taylor <otaylor@redhat.com>
9745 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtkoptionmenu.c
9746 gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtkwidget.c:
9747 New default theme! A slighly improved version of the 2.0 Raleigh
9748 theme, with Windows-esque focus/drawing default.
9749 (GtkWidget::interior_focus defaults to TRUE.)
9751 * gtk/gtkstyle.[ch]: Add a text_aa color halfway between text and base.
9753 2001-04-30 Havoc Pennington <hp@pobox.com>
9755 * tests/testtext.c (line_numbers_expose): fix to work with
9756 gtk_paint_layout change
9758 Mon Apr 30 19:18:07 2001 Owen Taylor <otaylor@redhat.com>
9760 * gtk/gtkstyle.[ch] gtk/gtkaccellabel.c gtk/gtkcellrenderertext.c
9761 gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c gtk/gtkprogressbar.c
9762 gtk/gtkvruler.c gtk/gtkvscale.c: Add an extra parameter
9763 use_text to gtk_paint_label() to deal with style->bg[] vs style->text[].
9765 * gtk/gtkbbox.c gtk/gtkdialog.c: Tweak padding some to deal
9766 with GtkWidget::interior_focus = TRUE better.
9768 * gtk/gtkbutton.c: Switch ::default_spacing to ::default_border,
9769 ::default_outside_border for more flexibility.
9771 * gtk/gtkwidget.c (gtk_widget_style_get_valist): Remove
9772 G_VALUE_NO_COPY_CONTENTS, to correspond with the recent
9773 change that had to be made with g_object_get.
9775 Sun Apr 29 20:13:40 2001 Jonathan Blandford <jrb@redhat.com>
9777 * gtk/gtktreeview.c (gtk_tree_view_get_columns): new function.
9778 (gtk_tree_view_move_column_after): Clean up interface.
9780 Sun Apr 29 03:02:02 2001 Tim Janik <timj@gtk.org>
9783 * gtk/gtkenums.h: moved GtkAnchorType and GtkSideType from gtkpacker.h
9786 * gtk/gtkmain.c (gtk_main_do_event): silence compiler (GDK_SETTING not
9790 (gtk.defs): generate enum portions with glib-mkenums.
9791 (gtktypebuiltins_evals.c): generate this with glib-mkenums.
9792 got rid of makeenums.pl and makeenums.awk in distributed tarballs.
9794 * gtk/gtkaccelgroup.c (gtk_accel_group_add): refined havocs warning
9797 * docs/Changes-2.0.txt: keep a note on signal handlers now
9798 not getting emitted during the emission they were connected within.
9800 2001-04-28 Havoc Pennington <hp@pobox.com>
9802 * gtk/gtkcolorsel.c (palette_new): fix bug in tooltip
9804 2001-04-24 Havoc Pennington <hp@redhat.com>
9806 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_previous_line):
9807 (gtk_text_layout_move_iter_to_next_line): fix these two for
9808 invisible text, lots of other stuff still hosed.
9810 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
9811 new function, replaces the get/set palette stuff. This function
9812 is intended for use by libgnomeui which should set the hook to a
9813 thing which sets the palette in GConf, and we need the
9814 GConf-to-xsettings proxy which will result in the change being
9815 propagated back to the GTK app.
9817 * gtk/gtkaccelgroup.c (gtk_accel_group_add): add note to warning
9818 about unusable signals that it may be because the signal has
9821 * gtk/gtkwidget.c (gtk_widget_modify_style): always copy the
9822 style, otherwise gtkrc.c won't know to create a new GtkStyle for
9824 (gtk_widget_modify_color_component): call
9825 gtk_widget_modify_style() so the rc style will get copied.
9826 (gtk_widget_modify_font): ditto
9828 * gtk/gtkrc.c: make a couple variables static
9830 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): hide
9831 help button by default, since it does nothing
9833 * gtk/gtkcolorsel.c: add tooltips, work on key navigation, fool
9836 * gtk/gtkentry.c (gtk_entry_realize): request enter/leave notify
9837 so we can have tooltips
9839 * gtk/gtkhsv.c (gtk_hsv_realize): request enter/leave notify so we
9842 * gdk/gdkimage.h: mark gdk_image_new_bitmap with
9843 GDK_ENABLE_BROKEN, because its memory behavior is completely
9846 * gtk/gtknotebook.c: remove key press handler, replace with
9847 binding set, add numeric keypad support
9849 * gtk/gtktextview.c (gtk_text_view_class_init): accept KP_Delete
9851 * gtk/gtktext.c (gtk_text_key_press): add a bunch of KP keysyms
9853 * gtk/gtkentry.c (gtk_entry_class_init): accept GDK_KP_Delete in
9854 addition to plain Delete
9856 * gtk/gtktextview.c (gtk_text_view_key_press_event): accept
9857 GDK_KP_Enter in addition to GDK_Return
9859 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): connect to
9860 activate on entry instead of key press
9861 (gtk_font_selection_on_clist_key_press): get
9862 rid of this signal handler, not needed with new font sel.
9864 * gtk/gtkfilesel.c (gtk_file_selection_key_press): remove a
9865 no-longer-needed emit_stop_by_name(), just return TRUE
9867 * gtk/gtkhscrollbar.c, gtk/gtkvscrollbar.c: remove keybindings
9868 cruft, this widget is no longer focusable.
9870 * gtk/gtkrange.h, gtk/gtkrange.c, gtk/gtkvscale.c,
9871 gtk/gtkhscale.c: Get rid of trough_keys virtual function, add
9872 move_slider action signal, add binding set for vscale/hscale, in
9873 the process support numeric keypad
9875 * gtk/gtkentry.c (gtk_entry_class_init): Add keypad bindings;
9876 make GDK_Return and GDK_KP_Enter activate the entry via
9877 binding set, instead of hardcoded.
9879 Fri Apr 27 20:27:21 2001 Jonathan Blandford <jrb@redhat.com>
9881 * gtk/gtktreeview.[hc]: Massive reorder/cleanup of a lot of the
9882 code. Some documentation added.
9884 2001-04-27 Havoc Pennington <hp@redhat.com>
9886 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fix warning
9888 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): make messages selectable
9890 * gtk/gtkentry.c (gtk_entry_real_insert_text): don't strip
9891 line/para separators
9892 (gtk_entry_create_layout): set single paragraph mode on the layout
9894 * gtk/gtkbutton.c (gtk_button_new_from_stock): don't put much
9895 spacing between the image and label; instead, inside a button box
9896 the button will get extra space that will go there, but if people
9897 configure button box for 0 chubbiness, then there's no spacing.
9899 * gtk/gtkbbox.c (gtk_button_box_class_init): Make child ipadding
9900 and min/max size style properties, so people can tune their
9903 * tests/testgtk.c (make_toolbar): remove calls to removed toolbar
9906 * gtk/gtktoolbar.c (gtk_toolbar_class_init): Make space_size,
9907 space_style, and button_relief into style properties, remove
9908 functions for setting them
9910 * gtk/gtkmenu.c (gtk_menu_key_press): handle menu bar accel to pop
9913 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): free boxed
9914 types from gtk_widget_style_get
9916 * gtk/gtkmenubar.c (gtk_menu_bar_set_shadow_type): Remove, replace
9917 with a style property.
9919 * gdk/x11/gdkevents-x11.c: namespace the settings
9921 * gtk/gtkmenubar.c: Add F10 accelerator to move between menubars.
9923 * gtk/gtksettings.c (gtk_settings_class_init): remove code with
9924 side effects from inside g_assert(), so that G_DISABLE_ASSERT can
9925 be used. Also, translate doc strings for settings. Also, namespace
9926 the double-click-time property. Also, remove bell properties crap.
9928 2001-04-27 Sven Neumann <sven@gimp.org>
9930 * Makefile.am: before creating links, check if pkg-config files
9931 exist for the default target. Otherwise link to the pkg-config files
9932 that got installed with this build.
9934 Thu Apr 26 19:11:46 2001 Jonathan Blandford <jrb@redhat.com>
9936 * gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
9937 dragging code. Revealed some (potential) GdkWindow bugs.
9939 * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
9940 _gdk_window_init_position to the end of reparent to fix the case
9941 of reparenting when new_x != old_x and new_y != old_y.
9943 Thu Apr 26 10:54:50 2001 Owen Taylor <otaylor@redhat.com>
9945 * gtk/gtkentry.c (strstr_len): Fix optimization that
9946 was correct for the use here, but completely incorrect
9949 Thu Apr 26 10:40:41 2001 Owen Taylor <otaylor@redhat.com>
9951 * gtk/gtkwindow.h: Remove deprecation of gtk_window_set_default_size()
9952 until patch adding gtk_window_set_size() is recommitted.
9954 * **Makefile.am configure.in gdk/x11/gdkim-11.c
9955 gtk/gtkmain.c gtk/gtkimmulticontext.c gtk/gtkmain.c
9956 gtk/gtkrc.c: Remove all traces of -DX_LOCALE support.
9959 Wed Apr 25 12:16:36 2001 Owen Taylor <otaylor@redhat.com>
9961 * gdk/X11/gdkevents-x11.c (gdk_event_translate): Test for
9962 window == NULL in a number of cases.
9964 * tests/testdnd.c: Set module path for gdk-pixbuf.
9966 Thu Apr 19 16:11:07 2001 Owen Taylor <otaylor@redhat.com>
9968 * gtk/Makefile.am xembed.h: File containing #defines
9969 for XEMBED protocol.
9971 * gtk/gtkplug.[ch] gtk/gtksocket.[ch]:
9973 - Change protocol from old plug/socket specific protocol
9975 - Various fixes to work with GTK+-2.0
9977 Still quite a bit of work to do here to handle initiation
9978 from the socket side (as specified by XEMBED), to handle
9979 the more advanced features of XEMBED, and to figure out
9980 a good way to handle same-app embedding with less overhead
9981 than using full XEMBED.
9983 Wed Apr 18 16:04:28 2001 Owen Taylor <otaylor@redhat.com>
9985 * gtk/gtkwindow.[ch] (gtk_window_real_set_focus): Keep
9986 track of whether the toplevel has the focus; only send
9987 focus-in events to the focus widget when the window
9988 actually has the focus.
9990 2001-04-25 Havoc Pennington <hp@pobox.com>
9992 * gtk/gtkwindow.h: set_decorations_hint and set_functions_hint
9993 were still in the header
9995 2001-04-24 Alexander Larsson <alexl@redhat.com>
9997 * gtk/gtkclist.[ch]:
9999 When there is a row highlighted for D'n'D it must alse
10000 be painted hightlighted on exposes. Otherwise exposes from
10001 the icon being dragged will mess up the hightlight.
10003 * gtk/gtkfontsel.c:
10004 Don't recenter selected font when exposing the font family
10005 clist. This means you can now actually scroll the font family
10008 * gtk/gtknotebook.c:
10009 Fix focus movement on scrolling tabs that are placed on the left
10012 2001-04-21 Havoc Pennington <hp@pobox.com>
10014 * gtk/gtktextdisplay.c (gtk_text_layout_draw): handle 0-height
10015 empty/invisible lines.
10017 * gtk/gtktextiter.c (gtk_text_iter_set_visible_line_offset)
10018 (gtk_text_iter_set_visible_line_index): new functions to set
10019 indexes excluding invisible text
10021 * gtk/gtktextlayout.c (line_display_iter_to_index): get visible
10024 * gtk/gtktextiter.c (gtk_text_iter_get_visible_line_index)
10025 (gtk_text_iter_get_visible_line_offset): new functions to
10026 get indexes excluding invisible text
10028 * gtk/gtkmessagedialog.c (gtk_message_dialog_init): strip out a
10029 bunch of extra padding that served no purpose
10031 * gtk/gtkdialog.c: Make all the spacings configurable via style
10032 properties, for chubbiness configuration in themes
10034 * tests/testtext.c: fix path to the immodules.
10036 Mon Apr 23 18:57:03 2001 Jonathan Blandford <jrb@redhat.com>
10038 * gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
10039 got munched by #endif.
10041 * gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
10043 * gtk/gtktreeview.c: Refactored code to clean up a number of
10046 * gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
10047 values to make consistent with other functions. Spotted by Jeff
10048 Franks <jcf@tpg.com.au>.
10050 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
10051 declaration spotted by Jeff Franks <jcf@tpg.com.au>.
10053 2001-04-23 Sven Neumann <sven@gimp.org>
10057 * gtk/gtksocket.c: on request of Owen, reverted my last change
10058 and exclude gtkplug.c/gtksocket.c from the build for non-X11 targets
10060 2001-04-23 Sven Neumann <sven@gimp.org>
10062 * gtk/gtkplug.c: put into #ifdef GDK_WINDOWING_X11 to make GTK+
10063 compile for non-X11 targets again
10065 2001-04-20 Alexander Larsson <alexl@redhat.com>
10067 * gtk/gtkcolorsel.[ch]:
10068 API Change. Take GdkColor arguments instead of gdouble *.
10069 Leave the old gtk_color_selection_set_color for compatibility,
10070 but marked deprecated.
10071 Do correct rounding when converting RGB <-> HSV.
10073 * gtk/gtkcolorseldialog.c:
10075 Use new GtkColorSelection API.
10078 Fix problem selecting colors in triangle when Hue is 330.
10079 Fix some black dots around the HSB triangle.
10081 * gtk/gtkfilesel.c:
10082 return FALSE from the focus_in_event handler to fix focus problems.
10084 2001-04-18 Havoc Pennington <hp@redhat.com>
10086 * gtk/gtkwindow.c (gtk_window_class_init): add signals and binding
10087 set, so keybindings are configurable
10088 (gtk_window_activate_default): Change to activate the focus widget
10089 instead if there's a focus widget, to be consistent with the
10090 behavior that previously existed in key_press_event
10092 2001-04-18 Havoc Pennington <hp@redhat.com>
10094 * gdk/gdkkeyuni.c: Handle numeric keypad keysyms; bug #50201
10096 2001-04-18 Havoc Pennington <hp@redhat.com>
10100 * gtk/gtkstyle.c (gtk_default_draw_layout): Use text_gc to draw
10103 * gtk/gtktext.c: Use base/text instead of bg/fg throughout
10105 * gtk/gtkentry.c: Use base/text instead of bg/fg throughout
10107 * gtk/gtktextdisplay.c: Use base/text instead of bg/fg throughout
10109 * gtk/gtkstyle.c (gtk_style_init): make GTK_STATE_SELECTED default
10110 to blue for base, in addition to bg
10112 2001-04-18 Havoc Pennington <hp@redhat.com>
10114 * tests/testgtk.c (create_image): allow shrinking the image window
10115 to test that we clip to allocation.
10117 * gtk/gtkimage.c (gtk_image_expose): clip to allocation,
10120 * gtk/gtkenums.h: move GtkWrapMode in here, #50472
10122 Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com>
10124 * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing
10125 mode on shm segments to 0600. We'll see who complains.
10127 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call
10128 _gdk_windowing_window_destroy() AFTER recursing through
10131 * tests/Makefile.am (noinst_PROGRAMS): Build testsocket,
10132 testsocket_child on X.
10134 * tests/testsocket[_child].c: Fix uses of
10135 gtk_window_get_default_accel_group().
10137 [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ]
10139 * gdk/gdkimage.c: (gdk_image_get):
10140 Deal with the possibility that XGetImage() might return NULL.
10141 Allocate the GdkImagePrivate structure only after XGetImage()
10142 succeeds in order not to dereference a NULL ximage pointer. This
10143 prevents a core dump when XGetImage() fails - which is unlikely,
10144 but can happen due to race conditions accessing the geometries of
10145 drawables. An x error will still be triggered, but the gdk image
10146 wrapper at least wont seg fault.
10148 2001-04-18 Havoc Pennington <hp@redhat.com>
10150 * gtk/gtkimage.c: fix to properly queue resizes when the image is
10153 * gtk/gtktextview.c (gtk_text_view_do_popup): desensitize Paste
10154 if the insertion point isn't editable
10156 * demos/gtk-demo/images.c: Added a GtkImage demo
10158 * demos/gtk-demo/drawingarea.c: drawing area demo
10160 * demos/gtk-demo/menus.c (create_menu): cleanups
10162 Wed Apr 18 12:15:52 2001 Owen Taylor <otaylor@redhat.com>
10164 * gdk/x11/gdkwindow-x11.c gdk/x11/gdkwindow-x11.h
10165 gdk/x11/gdkevents-x11.c: Introduce an extra child
10166 of toplevel windows that serves to hold the focus to
10167 avoid events being delivered to embedded windows.
10169 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Introduce
10170 some extra variables to clean up code and reduce the
10173 * gdk/x11/gdkwindow-x11.h (struct _GdkXPositionInfo): Use
10174 guint for 1 bit bit fields, not gboolean.
10176 Wed Apr 18 10:04:23 2001 Owen Taylor <otaylor@redhat.com>
10178 * gtk/gtktooltips.c (gtk_tooltips_paint_window): Return FALSE,
10179 not TRUE. (Fixes #52925)
10181 Tue Apr 17 18:05:34 2001 Owen Taylor <otaylor@redhat.com>
10187 * gtk/gtktextview.c (gtk_text_view_class_init): Fix to not
10190 Tue Apr 17 13:47:12 2001 Owen Taylor <otaylor@redhat.com>
10192 * configure.in: Don't put -lgthread in GLIB_LIBS, GLIB_DEPLIBS
10194 * gtk/gtktypeutils.h gtk/gtksignals.h: Restore proper parameter
10195 names to compatibility #defines so docs work.
10197 * gtk/gtkenums.h: Remove GtkMenuFactoryType
10199 * gtk/gtkwindow.c gtk/gtkdnd.c: Docs cleanups.
10201 * configure.in: Don't include -lgthread in GLIB_LIBS, GLIB_DEPLIBS
10203 * tests/testgtkrc: No magenta cursors, please.
10205 * README.in INSTALL.in HACKING README.cvs-commits: Updated.
10207 * gtk/gtkenums.h (enum): Remove left over GtkMenuFactoryType.
10209 Mon Apr 16 14:38:41 2001 Owen Taylor <otaylor@redhat.com>
10211 * gtk/gtklist.c gtk/gtklistitem.c: Remove explicit pointer
10212 grabs, since they are no longer necessary.
10214 * gtk/gtkcombo.c (gtk_combo_popup_button_press): Fix #52926
10215 by signal_connect() and call gtk_button_pressed() rather
10216 than signal_connect_after().
10218 * tests/testgtk.c: Restore radio menu items to combos
10219 since they'll look OK with Raleigh, and it is easier
10220 than finishing the process of removing them that was
10223 2001-04-16 Hans Breuer <hans@breuer.org>
10226 * gtk/gtk.def : added all exports required to link PyGtk 0.7.1
10228 * gdk/gdkfont.h : #define GDK_TYPE gdk_font_get_type ()
10229 we are interested in the functions return value not the function address
10230 * gdk/gdkvisual.h : same for GDK_TYPE_VISUAL
10232 * gtk/makefile.msc.in : reflect movement of GDK_TYPEs from gtk to gdk
10234 2001-04-14 Hans Breuer <hans@breuer.org>
10237 * gdk/makefile.msc : updated
10239 * gdk/win32/gdkdrawable.win32 (gdk_win32_draw_rectangle) : if modus is
10240 "fill with tile" do so with new helper function gdk_win32_draw_tiles
10241 (the testgtk::text backgound pixmap is drawn again)
10242 Changed SetTextAlign before pango_win32_render to TA_BASELINE to reflect
10244 * gdk/win32/gdkprivate-win32.h : prototype for gdk_win32_draw_tiles
10246 * gdk/win32/gdkproperty-win32.c : first implementation of gdk_setting_get
10247 Not sure if the returned settings have the right unit, because I couldn't
10248 find any docs for the X version ...
10251 * gtk/makefile.msc.in : updated
10253 Thu Apr 12 17:41:17 2001 Owen Taylor <otaylor@redhat.com>
10255 * gtk-2.0.m4: Fix up to refer to GTK+, not to GLib; fix some
10256 wording problems. (Compared to version from Johannes Stezenbach to
10257 check correctness.)
10259 Thu Apr 12 21:04:26 2001 Tim Janik <timj@gtk.org>
10261 * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): get
10264 2001-04-12 Anders Carlsson <andersca@codefactory.se>
10266 * gtk/gtkcellrenderertextpixbuf.c (gtk_cell_renderer_text_pixbuf_class_init): It's pixbuf_pos,
10269 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Fix small typo.
10271 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property): xpad and ypad
10272 are unsigned insts, therefore use g_value_set_uint.
10273 (gtk_cell_renderer_set_property): Likewise, use g_value_get_uint.
10275 Sun Apr 8 05:36:06 2001 Jonathan Blandford <jrb@redhat.com>
10277 * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
10279 * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
10282 * gtk/gtktreeview.c: New functions to allow initial column
10285 * gtk/gtktreeviewcolumn.c: Initial column dragging support.
10287 * tests/testtreefocus.c: give dave some love.
10289 * tests/testtreesort.c: Modify test to check really long samples.
10291 2001-04-11 Alexander Larsson <alexl@redhat.com>
10293 * gtk-2.0.m4: Pass pkg-config options
10294 before the other args so it works even if
10295 POSIXLY_CORRECT is set.
10297 Mon Apr 9 19:02:07 2001 Tim Janik <timj@gtk.org>
10299 * configure.in (GTK_MICRO_VERSION): increment version to 1.3.4 (binary
10302 2001-04-04 Denis Oliver Kropp <dok@convergence.de>
10304 * gtk/gtkcalendar.c (gtk_calendar_button_press):
10305 check for action_func != NULL
10307 2001-04-04 Sven Neumann <sven@gimp.org>
10309 * tests/testgtk.c (test_init): corrected path to gtk.immodules
10311 Wed Apr 4 09:18:18 2001 Tim Janik <timj@gtk.org>
10313 * Released Gtk+-1.3.3.
10315 Wed Apr 4 07:42:23 2001 Tim Janik <timj@gtk.org>
10317 * gdk/Makefile.am (EXTRA_DIST): add makeenums.pl to EXTRA_DIST.
10319 Wed Apr 4 04:13:18 2001 Tim Janik <timj@gtk.org>
10321 * gtk/stock-icons/Makefile.am: stay in builddir and read/write
10322 files to/from source dir. (if we don't stay in builddir, we
10323 can't reach make-inline-pixbuf.
10325 * gdk/Makefile.am (gdkenumtypes.c): add $(srcdir) to mekeenums.pl
10328 * configure.in (GTK_MICRO_VERSION): up and away (1.3.3 bin/interface
10331 Tue Apr 3 15:04:45 2001 Jonathan Blandford <jrb@redhat.com>
10333 * gtk/gtktreemodelsort.h: removed set_sort_column, as it was
10334 moved to the GtkTreeSortable interface.
10336 * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
10337 Make more efficient (fixes #50262).
10339 Tue Apr 3 13:55:37 2001 Owen Taylor <otaylor@redhat.com>
10343 * configure.in: Remove support for uninstalled glib.
10345 * gtk/gtkdnd.c (gtk_drag_highlight_expose): Return FALSE as
10346 so as not to stop emission.
10348 * gtk-config-2.0.in: Exit with an error message that gtk-config-2.0
10349 is no longer supported.
10351 * Makefile.am gtk/Makefile.am tests/*: Moved all tests
10352 into tests, change build order to build modules before
10355 * modules/input/Makefile.am: Move gtk-query-immodules-2.0 invocation
10358 Tue Apr 3 13:52:57 2001 Tim Janik <timj@gtk.org>
10360 * gtk/gtkitemfactory.[hc]: changed gtk_item_factory_dump_items()
10361 and gtk_item_factory_dump_rc() GtkPatternSpec argument to
10362 GPatternSpec. this is actually unlikely to cause breakage in
10363 third-party apps since except for gle, pretty much ever caller
10366 * gtk/gtkbindings.[hc]: removed gtk_pattern_*() API.
10368 * *.c: use g_pattern_*() API.
10370 * docs/Changes-2.0.txt: GtkPatternSpec->GPatternSpec updates.
10372 * gtk/gtkstyle.c (gtk_default_draw_resize_grip): assert unhandled
10373 directions aren't passed in.
10375 * gtk/gtksettings.[hc] (_gtk_settings_parse_convert): export conversion
10376 functionality to be usable from gtkstyle.c as well, give precedence
10377 for conversion to user-supplied parsers.
10378 s/_gtk_rc_property_parser_for_type/_gtk_rc_property_parser_from_type/;
10380 * gtk/gtkstyle.c (_gtk_style_peek_property_value): use
10381 _gtk_settings_parse_convert() for rcporperty value conversion.
10383 2001-04-03 Alexander Larsson <alexl@redhat.com>
10385 * gdk/linux-fb/gdkevents-fb.c:
10386 Add empty gdk_setting_get().
10388 Tue Apr 3 05:09:07 2001 Tim Janik <timj@gtk.org>
10390 * gtk/gtkmain.c (_gtk_boolean_handled_accumulator): use more elaborate
10393 * gtk/makeenums.pl: touch this so enum files get remade.
10395 Mon Apr 2 19:36:57 2001 Jonathan Blandford <jrb@redhat.com>
10397 * gtk/gtktreestore.c (gtk_tree_store_init): Bug fix to make trees
10398 work again when not sorted.
10400 * gtk/gtktreeview.c (gtk_tree_view_class_init): Add "collapse_row"
10401 and "expand_row" signal, closing bug 52578.
10403 * gtk/gtktreeview.c (gtk_tree_view_expand_row): Add signal
10406 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): Add signal
10409 Mon Apr 2 18:18:07 2001 Owen Taylor <otaylor@redhat.com>
10411 * gdk/gdkevents.h: Add GdkEventSetting event for notification
10412 of changes to system settings, gdk_setting_get() to retrieve
10413 a single system setting.
10415 * gdk/x11/gdkevents-x11.c: Bridge gdk_setting_get() and GdkEventSetting
10416 to the draft XSETTINGS mechanism.
10418 * gdk/x11/xsettings-{common,client}.[ch]: Sample-implementation of
10421 * gtk/gtkmain.c gtk/gtksettings.[ch]: Propagate notification
10422 of GDK settings changes to the GtkSettings object.
10424 * gdk/gdkevents.[ch] gdk/gtk/gtksettings.c: Hook up the
10425 double-click-timeout property to GDK.
10427 * gdk/gdkcolor.[ch] gdk/gdkvisual.h gdk/gdkevent.[ch] gdk/gdkfont.[ch]:
10428 Define GDK boxed types here.
10430 * gdk/Makefile.am gdk/makeenums.pl: Generate source files
10431 gdk/gdkenumtypes.[ch] for enum definitions.
10433 * gtk/gtkcompat.h: Add defines for GTK_TYPE_GDK_*
10434 * gtk/gtk-boxed.defs: Comment out GDK types
10435 * gtk/gtktypeutils.h: Remove GDK types
10436 * gtk/Makefile.am: No longer scan GDK headers for enumerataions
10438 Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com>
10440 * Applied patch from Ron Steinke to add signal accumulators
10441 so that signals with the convention 'TRUE return means
10442 handled' stop emission on a TRUE return.
10444 * gtk/gtkmain.[ch]: Add private accumulator
10445 _gtk_boolean_handled_accumulator, used throughout GTK+.
10447 * gtk/gtkspinbutton.c: Add accumulator for ::output.
10449 * gtk/gtktipsquery.c: Add accumulator for ::widget_selected
10451 * gtk/gtkwidget.c: Add accumulators for event signals,
10452 ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator
10453 for ::mnemonic-activate.
10455 * gtk/gtkwindow.c: Add accumulator for ::frame_event
10457 Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com>
10459 * gtk/gtkwidget.c: Add missing include.
10461 Mon Apr 2 16:56:15 2001 Jonathan Blandford <jrb@redhat.com>
10463 * gtk/gtkmarshal.list (VOID:BOXED,BOXED,BOXED,BOXED): new
10466 * gtk/gtktreemodel.c (gtk_tree_model_range_changed): change
10467 "changed" signal to "range_changed".
10469 * gtk/gtktreeview.c (gtk_tree_view_set_model): fix small bug where
10470 removing a tree from one model would remove all trees from that
10472 * gtk/gtktreeview.c (gtk_tree_view_range_changed): use range
10473 changed signal instead.
10475 Mon Apr 2 16:13:58 2001 Owen Taylor <otaylor@redhat.com>
10477 * gtk/gtkinvisible.c (gtk_invisible_style_set): Avoid
10478 chaining up to parent impl, since we have a INPUT_ONLY
10481 * gtk/gtkentry.[ch]: Add a cursor_color property to set the
10482 foreground color for the cursor.
10484 Mon Apr 2 15:06:13 2001 Owen Taylor <otaylor@redhat.com>
10486 * gtk/gtkstyle.c (_gtk_style_peek_property_value): Reference
10487 param spec when caching property values, since we unref it
10488 later when we free the style.
10490 * gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Dont' free
10491 values since they are retrieved with G_VALUE_NO_COPY_CONTENTS.
10493 Mon Apr 2 10:47:57 2001 Owen Taylor <otaylor@redhat.com>
10495 * gtk/gtkwidget.c (gtk_widget_class_init): Fix
10496 G_VALUE_NO_COPY_CONTENTS instead of G_SIGNAL_TYPE_STATIC_SCOPE
10499 Mon Apr 2 00:51:11 2001 Owen Taylor <otaylor@redhat.com>
10501 [ First pass at adding style properties. Still needs some definite
10504 * gtk/gtkbutton.c: Add ::default_spacing style property.
10506 * gtk/gtkcheckbutton.[ch] gtkradiobutton.c: Add ::indicator_size,
10507 ::indicator_spacing style properties.
10509 * gtk/gtkoptionmenu.c: Add ::indicator_size, ::indicator_spacing
10512 * gtk/gtk{,h,v}paned.[ch]: Make handle_size a style property
10513 rather than a normal property.
10515 * gtk/gtkwidget.c: Add an ::interior_focus style property to
10516 draw focus inside buttons, in the Windows/Java Metal/etc. style.
10518 * gtk/gtkbutton.c gtk/gtkcheckbutton.c gtk/gtktogglenbutton.c:
10519 Honor ::interior_focus.
10521 * gtk/gtkentry.c: Don't draw focus at all when ::interior_focus is
10524 * gtk/gtkrange.[ch] gtk/gtk{h,v}scrollbar.c gtk/gtk{h,v}scale.c:
10525 Add ::slider_width, ::trough_border, ::stepper_size,
10526 ::stepper_spacing style properties.
10528 * gtk/gtkscale.[ch] Add ::slider-length style property.
10530 2001-04-02 Alexander Larsson <alexl@redhat.com>
10532 * gdk/linux-fb/gdkwindow-fb.c:
10533 Add gdk_window_begin_resize_drag and gdk_window_begin_move_drag. Remove some
10534 warnings that were spewed on startup.
10536 * gtk/gtkwindow-decorate.c:
10537 gtk_window_reposition -> _gtk_window_reposition
10539 Sun Apr 1 21:37:22 2001 Owen Taylor <otaylor@redhat.com>
10541 * gtk/gtkwidget.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10542 Add boxed type for GtkRequistion. Use it for ::size-request.
10544 * gtk/gtkstyle.[ch] gtk/gtktypeutils.c gtk/gtk-boxed.defs:
10545 Add a new GtkBorder structure useful for geometry properties
10546 for widgets. Add corresponding GTK_TYPE_BORDER.
10548 * gtk/gtkwidget.c (gtk_widget_class_install_style_property):
10549 Support automatic parser selection like
10550 gtk_settings_install_property_parser().
10552 * gtk/gtksettings.c (_gtk_rc_property_select_parser): Export
10553 functionality for use by gtk_widget_class_install_style_property.
10554 Support GTK_TYPE_BORDER, GTK_TYPE_REQUISITION.
10556 Sun Apr 1 20:48:59 2001 Owen Taylor <otaylor@redhat.com>
10558 * gtk/gtkentry.c (gtk_entry_class_init): Make invisible-char
10559 g_param_spec_unichar().
10561 Sun Apr 1 23:41:37 2001 Tim Janik <timj@gtk.org>
10563 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): raise window for non
10564 _NET window managers.
10566 * gtk/gtkmenufactory.[hc]: cvs removed those files now.
10568 Sun Apr 1 08:00:13 2001 Tim Janik <timj@gtk.org>
10570 * gtk/gtkwidget.[hc]: got rid of gtk_widget_popup(), a function that
10571 bad needs to be nuked, not just deprecated.
10573 * gtk/gtktooltips.c (gtk_tooltips_draw_tips): don't use
10574 gtk_widget_popup().
10576 * gtk/*.[hc]: s/activate_mnemonic/mnemonic_activate/g;
10578 * gtk/gtkmenufactory.[hc]: removed this long-standingly deprecated
10581 * docs/Changes-2.0.txt: updates.
10583 Sun Apr 1 01:02:54 2001 Jonathan Blandford <jrb@redhat.com>
10585 * gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed):
10586 for (i = 0; i < 100; i ++)
10587 g_print ("I will confirm it compile before committing\n");
10589 Sun Apr 1 00:52:06 2001 Jonathan Blandford <jrb@redhat.com>
10591 * gtk/gtktreestore.c: Initial work on implementing the
10592 GtkTreeSortable interface. Basicaly a big cut'n'paste job.
10594 Sun Apr 1 03:28:14 2001 Tim Janik <timj@gtk.org>
10596 * gtk/gtkwidget.c: fixed a bunch of notifications, added
10597 reference counts around emissions where the widget is used afterwards.
10598 added freeze/thaws around multiple properties being notified.
10599 (_gtk_widget_get_aux_info): cleanups.
10601 * gtk/gtksettings.c (gtk_settings_install_property): provide
10602 default parsing functions for gdkcolor, enums and flags.
10604 * gtk/gtkwindow.[hc]: partially reverted patch from havoc,
10606 backed out gtk_window_get_location(), gtk_window_set_location(),
10607 gtk_window_get_size() and gtk_window_set_size(), these
10608 have to be sorted out wrg x/y/width/height/default_with/default_height
10610 kept a flag in GtkWindowGeometryInfo to handle user
10611 resetting default sizes.
10612 cleaned up ZVT comments.
10613 bunch of assorted bug fixes, notification fixes.
10614 (_gtk_window_reposition): make this a really internal function.
10616 * gtk/testgtk.c: fixups.
10618 2001-03-31 Hans Breuer <hans@breuer.org>
10620 * config.h.win32.in : disable USE_MMX for msvc build cause
10621 the assembler doesn't fit and is out of my scope. Disable
10622 USE_GMODULE for msvc build as wel. The right way to share
10623 binaries on win32 would be to use libtiff.dll etc. To reduce
10624 installation hassles IMO it's better to include all fileformats
10625 builtin to gdk-pixbuf
10627 * gdk-pixbuf/makefile.msc : new file
10629 * gdk/gdk.def : updated
10631 * gdk/win32/gdkevents-win32.c : don't erase the background if
10632 .no_bg is set. It improves the scrolling (e.g. of testgtk main
10634 * gdk/win32/gdkgeometry-win32.c : added comment about the above
10636 * gdk/win32/gdkwindow-win32.c : added three new functions like
10637 the X version. Only one is implemented, because the other two
10638 "gdk_window_begin_(resize|move)_drag" got no docs and appear to
10639 be default behaviour on win32 anyway ...
10641 * gtk/gtk.def : updated
10643 * gtk/makefile.msc.in : update for new files, use glib-genmarshal
10644 from where it was built and add an additional rule to automagically
10645 build gtkmarshal.[hc]
10647 * gtk/gtkfilesel.c (open_new_dir) : don't increase n_entries
10648 before array access for the current entry isn't finished
10650 * gtk/gtktreeitem.c (gtk_tree_item_subtree_button_click) :
10651 use g_return_val_if_fail
10653 * gtk/testgtk.c (window_controls) : don't use the *wrong* size
10654 for the static array, but let the compiler calculate it. It
10655 makes me wonder if gcc isn't capable to catch bugs like this ...
10657 2001-03-31 James Henstridge <james@daa.com.au>
10659 * gtk/gtkwidget.c (gtk_widget_size_adjust): fix use of magic
10660 constant "-1" in the aux info structure.
10662 2001-03-30 Alexander Larsson <alexl@redhat.com>
10664 * gtk/gtkbutton.c (gtk_button_get_property):
10668 * gtk/gtkcontainer.c:
10670 * gtk/gtkhscrollbar.c:
10673 * gtk/gtkprogress.c:
10674 * gtk/gtkprogressbar.c:
10677 * gtk/gtkviewport.c:
10679 * gtk/gtkvscrollbar.c:
10681 Property patches, based on patches from John Margaglione and Lee Mallabone.
10683 Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net>
10685 * gtk/gtkspinbutton.c : added value_changed signal which proxies for the
10686 adjustment. Cleaned redundant preconditions (spin != NULL). Added
10687 inline API function docs.
10688 (gtk_spin_button_new_with_range): New convenience constructor.
10689 (gtk_spin_button_set_increments): New adjustment helper.
10690 (gtk_spin_button_set_range): New adjustment helper.
10692 * gtk/testgtk.c : added test of the new convenince constructor and
10693 value_changed signals.
10695 Thu Mar 29 20:20:38 2001 Jonathan Blandford <jrb@redhat.com>
10697 * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): Now we
10698 listen to the reorder signal.
10700 Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com>
10702 * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function
10703 to get the aux info structure fo the widget.
10705 * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use
10708 [ Patch from Havoc Pennington <hp@redhat.com> ]
10710 * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function
10711 to get the size of the window manager frame, basically the same
10712 code that gdk_window_get_root_origin() had
10713 (gdk_window_get_root_origin): use gdk_window_get_frame_extents()
10715 * gtk/gtkwindow.c (gtk_window_set_default_size): use
10716 gdk_window_resize() if the window is realized and resizeable
10718 * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix
10719 typo so that setting gravity works
10721 * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use
10722 allocation if auto_shrink is on, even if the default size
10725 * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus
10728 Thu Mar 29 16:29:12 2001 Jonathan Blandford <jrb@redhat.com>
10730 * gtk/gtkliststore.c (gtk_list_store_iter_changed): Massive
10731 reordering/sorting work. Now pretty much works.
10733 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Lots of work to make
10734 reorder mostly work. Still need to get the parity correct.
10736 * gtk/gtktreeviewcolumn.c: Listen for "model" property changed
10737 signal, so I can listen for the sort_column_changed signal so I
10738 can change my "sort_indicator" property. Cool.
10740 Wed Mar 28 00:03:10 2001 Owen Taylor <otaylor@redhat.com>
10742 [ Patch from Havoc Pennington, hp@redhat.com ]
10744 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c:
10745 Add functions gdk_window_begin_resize_drag/begin_move_drag
10746 to start resizing or moving a toplevel window. This
10747 is done either using the _NET_WM_MOVERESIZE protocol,
10748 or, if that isn't present, by emulation.
10750 * gtk/gtkwindow.[ch]: Add functions gtk_begin_move/resize_drag
10751 to export the above to GTK+-land.
10753 * gtk/gtkstyle.[ch]: Add ->draw_resize_grip() paint func.
10755 * gtk/gtkwindow.c gdk/gdkwindow.[ch] (gdk_window_constrain_size):
10756 Move this function into gdkwindow, since we need it
10757 when implementing fallback resizing.
10759 * gdk/x11/gdkwindow-x11.c: gdk_window_set_geometry_hints.
10760 Fix typo when setting gravity.
10762 * gtk/gtkstatusbar.[ch] (gtk_statusbar_set_has_resize_grip):
10763 Add an optional (but on by default) resize grip for resizing
10766 01-03-29 Alexander Larsson <alexl@redhat.com>
10768 * gtk/gtktooltips.c (gtk_tooltips_event_handler):
10769 Don't return TRUE from the event handler, that blocks all
10770 event signals on the tooltip widget. Now you can press buttons
10773 Wed Mar 28 19:20:43 2001 Owen Taylor <otaylor@redhat.com>
10775 * gtk/testtext.c (create_buffer): Add missing NULL on
10778 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Fix
10779 c-n-p problem with INCONSISTENT property.
10781 [ Patch from Havoc Pennington <hp@redhat.com> ]
10783 * gtk/gtkentry.h (struct _GtkEntryClass): add same populate_popup
10786 * gtk/gtktextview.h (struct _GtkTextViewClass): add populate_popup
10787 signal as a hook for extending the default popup menu
10789 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10790 use radio menu items for the input method menuitems
10792 * gtk/gtkimcontextsimple.c (check_hex): do better validation of
10793 inserted unicode from Ctrl-Shift-hex input method
10795 * gtk/gtktextbtree.c (_gtk_text_btree_insert): remove utf8
10796 validatation here, already done at GtkTextBuffer level.
10798 * gtk/gtkwidget.c (gtk_widget_class_init): add binding set, add
10799 popup_menu run action signal and Shift+F10 and Menu keybindings.
10801 * gtk/gtkentry.c: implement a default handler for popup_menu
10803 * gtk/gtktextview.c: implement a default handler for popup_menu
10805 * gtk/gtkmenu.c (gtk_menu_popup): select first item if popup is
10808 * gtk/gtklabel.c: remove "trailer" cruft
10810 Wed Mar 28 17:27:12 2001 Jonathan Blandford <jrb@redhat.com>
10812 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): new function to
10813 handle reordering of trees. Seems to mostly work w/ the exception
10814 of the parity flag.
10816 * gtk/gtktreeview.c (gtk_tree_view_reordered): handle "reordered"
10819 Wed Mar 28 21:12:37 2001 Tim Janik <timj@gtk.org>
10821 * gtk/gtkwidget.h: c++ fixes.
10823 Sun Mar 25 15:51:28 2001 Owen Taylor <otaylor@redhat.com>
10825 * gtk/gtksettings.c (gtk_settings_init): Fix use of uninitialized
10828 Tue Mar 27 22:36:07 2001 Owen Taylor <otaylor@redhat.com>
10830 * gtk/gtkwidget.h gtk/gtkrange.h: Apply patch from
10831 Nils Barth fixing event return values. (#51041)
10833 * gtk/gtkwidget.c: Fix some return values for default
10836 * gtk/gtk[vh]scrollbar.c gtk/gtk[vh]range.c: Fix
10837 return values for trough_keys functions.
10839 * gtk/gtkwidget.h (struct _GtkWidgetClass): Fix return
10840 value for add_accelerator (shoudl have been a void
10843 * gtk/gtkcellrenderer.[ch]: gtkcellrenderertoggle.h:
10844 Fix return type of EVENT.
10846 * gtk/gtkmarshal.list gtk/gtktexttag.c: Make EVENT
10847 signal return a boolean.
10849 Tue Mar 27 22:07:44 2001 Jonathan Blandford <jrb@redhat.com>
10851 * gtk/gtkliststore.c (gtk_list_store_sort): Fix arguments to
10854 * tests/testtreesort.c (main): fix spelling.
10856 Tue Mar 27 20:55:29 2001 Jonathan Blandford <jrb@redhat.com>
10858 * gtk/gtkliststore.c: More work on implementing sortable
10861 Mon Mar 26 15:48:45 2001 Owen Taylor <otaylor@redhat.com>
10863 * gtk/gtkwindow.c (gtk_window_list_toplevels): Don't
10864 reference the widgets in the resulting list. (#11821)
10865 This makes this consistent with gtk_container_children.
10867 * gtk/gtkwindow.c gtk/gtkwidget.c: Fix up the two
10868 uses of gtk_window_list_toplevels.
10870 Mon Mar 26 15:26:17 2001 Owen Taylor <otaylor@redhat.com>
10872 * gtk/gtkimcontext.c (gtk_im_context_set_use_preedit): Add
10873 a virtual function to set whether the IM context should use
10874 the preedit string. (#51922)
10876 Mon Mar 26 14:42:59 2001 Owen Taylor <otaylor@redhat.com>
10878 * gdk/gdkpango.h: Remove stale FIXME comment.
10880 2001-03-26 Alexander Larsson <alla@lysator.liu.se>
10882 * gtk/gtkfilesel.c (gtk_file_selection_get_filename):
10883 Fixed bug that returned NULL if a filename was selected.
10885 2001-03-24 Havoc Pennington <hp@pobox.com>
10887 * gtk/gtkthemes.c (gtk_theme_engine_load): improve error message
10888 to contain the word "theme"
10890 2001-03-24 Havoc Pennington <hp@pobox.com>
10892 * gtk/gtkhsv.c (gtk_hsv_move): make motion around the ring much
10893 slower but finer-grained
10894 (gtk_hsv_focus): get initial focus on the ring or triangle
10895 according to tab direction
10897 * gtk/testgtk.c (main): get rid of weird sleep(1) on exit
10899 2001-03-23 Havoc Pennington <hp@pobox.com>
10901 * gtk/gtkhsv.c: make this somewhat key-navigable
10903 * gtk/gtkfontsel.c: mnemonics
10905 * gtk/gtkgamma.c: mnemonics
10907 * gtk/gtkcolorsel.c: add mnemonics to labels
10909 2001-03-22 Havoc Pennington <hp@pobox.com>
10911 Applied big patch from Seth Lytle to fix event handler return
10912 values, slightly modified.
10914 * gtk/gtkcalendar.c (gtk_calendar_button_press): return TRUE if
10916 (gtk_calendar_key_press): return TRUE for GDK_space triggers
10919 * gtk/gtkclist.c (gtk_clist_button_press): return TRUE if handled
10920 (gtk_clist_button_release): return TRUE if handled
10922 * gtk/gtkcolorsel.c (mouse_release):
10923 (palette_activate):
10927 (get_screen_color):
10928 fixed return type (void to gboolean), return TRUE,
10929 added GTK_SIGNAL_FUNC cast
10931 * gtk/gtkcombo.c (gtk_combo_popup_button_press): fixed return type
10932 (void to gboolean), and return TRUE
10933 (gtk_combo_button_release): changed return value to TRUE after
10934 gtk_grab_add on combo->popwin
10936 * gtk/gtkctree.c (gtk_ctree_button_press): return TRUE if triggers a
10939 * gtk/gtkcurve.c (gtk_curve_graph_events): return TRUE for
10942 * gtk/gtkdnd.c (gtk_drag_source_event_cb): return TRUE for button
10943 press/release and motion that trigger act
10945 * gtk/gtkentry.c (gtk_entry_button_release): return TRUE
10947 * gtk/gtkfontsel.c (gtk_font_selection_size_key_press): return TRUE
10950 * gtk/gtklist.c (gtk_list_button_press): return TRUE mostly
10951 (gtk_list_button_release): return TRUE if selection
10953 * gtk/gtklistitem.c (gtk_list_item_button_press): return TRUE on
10956 * gtk/gtkmenushell.c (gtk_menu_shell_button_press):
10957 (gtk_menu_shell_button_release): chain parent_menu_shell retval
10959 * gtk/gtknotebook.c (gtk_notebook_button_press): return FALSE if
10961 (gtk_notebook_button_release): return TRUE if we do anything
10963 * gtk/gtkspinbutton.c (gtk_spin_button_button_press):
10964 (gtk_spin_button_button_release): return TRUE or chained retval
10966 * gtk/gtktext.c (gtk_text_button_press):
10967 (gtk_text_button_release): return TRUE
10968 (gtk_text_key_press): remove redundant retval code
10970 * gtk/gtktreeitem.c (gtk_tree_item_button_press): return TRUE if button
10972 (gtk_tree_item_subtree_button_click): changed type to gint, and return
10975 * gtk/gtktooltips.c (gtk_tooltips_event_handler): deactivate implies
10978 2001-03-23 Havoc Pennington <hp@redhat.com>
10980 * gtk/testgtk.c: fix warnings
10982 * gtk/gtktoolbar.c (gtk_toolbar_insert_element): fix return value
10984 * gtk/gtktextview.c: fix warnings
10986 * gtk/gtktext.c (find_cursor_at_line): fix warning
10988 * gtk/gtkselection.c (gtk_selection_notify): fix warning
10990 * gtk/gtkitemfactory.c (gtk_item_factory_menu_pos): fix signature
10993 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
10996 * gtk/gtkhandlebox.c (gtk_handle_box_style_set): fix warning
10998 * gtk/gtkfontsel.c: fix warning
11000 * gtk/gtkcolorsel.c: fix warnings
11002 2001-03-23 Havoc Pennington <hp@redhat.com>
11004 * gtk/gtkhandlebox.c: Apply property patch from Lee Mallabone
11006 * gtk/gtkbox.c: Apply property patch from Lee Mallabone
11008 * gtk/gtkcheckmenuitem.c: Apply property patch from Lee Mallabone,
11009 and deprecated gtk_check_menu_item_set_show_toggle().
11011 * gtk/gtkbutton.c: Apply property patch from Lee Mallabone
11013 * gtk/gtkfilesel.c: Apply property patch from Lee Mallabone
11015 * gtk/gtkframe.c: Apply property patch from Lee Mallabone
11017 2001-03-23 Havoc Pennington <hp@redhat.com>
11019 * gtk/gtktoolbar.c, gtk/gtkimcontext.c, gtk/gtklabel.c: fix up
11022 Fri Mar 23 16:13:43 2001 Jonathan Blandford <jrb@redhat.com>
11024 * gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
11027 * gtk/gtktreestore.c (gtk_tree_store_set_value): change from
11028 set_cell to set_value
11030 * gtk/gtkliststore.c (gtk_list_store_set_value): change from
11031 set_cell to set_value
11033 Thu Mar 22 19:27:34 2001 Jonathan Blandford <jrb@redhat.com>
11035 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11037 * gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
11040 * gtk/gtktreeview.c: Addition of initial sortable support.
11042 * gtk/gtktreestore.c: Addition of initial sortable support.
11044 * gtk/gtkliststore.c: Addition of initial sortable support.
11046 * gtk/gtkmarshal.list: yet another marshaller.
11048 * gtk/gtktreedatallist.[ch]: shared code between the store models
11049 for handling sorting headers.
11051 2001-03-22 Havoc Pennington <hp@redhat.com>
11053 * gtk/gtkcontainer.c (gtk_container_set_focus_chain):
11054 (gtk_container_unset_focus_chain): Add ability to override the
11055 focus chain for a container explicitly
11057 Thu Mar 22 13:01:44 2001 Tim Janik <timj@gtk.org>
11059 * gtk/gtklabel.[hc]: some cleanups, fixed mnemonic_widget handling,
11060 added PROP_MNEMONIC_WIDGET.
11062 * gtk/gtkwindow.c (gtk_window_activate_mnemonic):
11063 (gtk_window_remove_mnemonic):
11064 (gtk_window_add_mnemonic): fixed assertions.
11065 (gtk_window_activate_mnemonic): constrain modifier checks to those
11066 permitted by gtk_accelerator_get_default_mod_mask().
11067 got rid of gtk_window_get_default_accel_group().
11069 * gtk/gtkwidget.c (gtk_widget_real_activate_mnemonic): handle non
11070 activatable widgets either by focussing or a warning.
11071 added a signal accumulator to ::activate_mnemonic which stops the
11072 emission once a handler returned TRUE.
11074 2001-03-22 Havoc Pennington <hp@pobox.com>
11076 * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): handle mnemonics in
11077 the stock item label
11079 * gtk/gtklabel.c: s/@gtk_func/gtk_func()/ in docs
11081 * gtk/gtkstock.c (builtin_items): add mnemonics where missing
11083 * demos/gtk-demo/*.c: Add mnemonics all over the place
11085 * gtk/gtklabel.h: mark parse_uline deprecated
11087 2001-03-21 Alexander Larsson <alexl@redhat.com>
11089 * gtk/gtkitemfactory.[ch]:
11090 Add support for stock and normal imagemenuitems.
11093 Add some tests for mnemonics, stock toolbars, stock
11094 and image menuitems in itemfactory and gdk_window_scroll.
11096 2001-03-21 Alexander Larsson <alexl@redhat.com>
11098 * gtk/gtkbutton.[ch]:
11100 Renamed gtk_button_new_stock() to gtk_button_new_from_stock() and
11101 removed accel_group argument. Renamed gtk_button_new_accel() to
11102 gtk_button_new_with_mnemonic() and removed accel_group argument.
11104 * gtk/gtkcheckbutton.[ch]:
11105 New function gtk_check_button_new_with_mnemonic().
11108 Override activate_mnemonic and just grab focus.
11110 * gtk/gtkitemfactory.c:
11111 Don't add menu uline accel group, instead use mnemonics support.
11113 * gtk/gtklabel.[ch]:
11114 New support for mnemonics.
11116 * gtk/gtkmarshal.list:
11117 Needed BOOLEAN:BOOLEAN for activate_mnemonic.
11121 Use mnemonics instead of accel groups for uline
11122 support in menu items.
11123 Removed gtk_menu_get_uline_accel_group() and
11124 gtk_menu_ensure_uline_accel_group().
11126 * gtk/gtkmenuitem.c:
11127 Override activate_mnemonic to handle switching between
11128 menu items if there are collisions.
11130 * gtk/gtknotebook.c:
11131 Connect to activate_mnemonic on the tab_label, so that
11132 activating it switches to that notebook page.
11134 * gtk/gtkwidget.[ch]:
11135 Add activate_mnemonic signal. New function
11136 gtk_widget_activate_mnemonic() to emit it.
11137 Default implementation does activate/grab_focus.
11139 * gtk/gtkwindow.[ch]:
11140 Add support for mnemonics in windows.
11142 gtk_window_add_mnemonic, gtk_window_remove_mnemonic,
11143 gtk_window_activate_mnemonic, gtk_window_set_mnemonic_modifier
11146 Update to function name changes.
11148 2001-03-21 Alexander Larsson <alexl@redhat.com>
11150 * gtk/gtkimagemenuitem.[c]:
11151 Add gtk_image_menu_item_new_from_stock()
11153 Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@redhat.com>
11155 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
11156 Fix buglet in meeting.
11158 2001-03-19 Havoc Pennington <hp@redhat.com>
11160 * gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
11161 add a bunch of accessor functions. This is because we have
11162 reasonable expectations of extending what fields it contains in
11165 * gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
11168 * gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
11171 Mon Mar 19 15:53:36 2001 Owen Taylor <otaylor@redhat.com>
11173 * gtk/gtkitemfactory.c gtk/testgtk.c: Handle quoting of / with \; properly
11174 handle __ in paths, quote " and \n in gtk_item_factory_dump_items().
11176 * gtk/gtkadjustment.[ch] gtk/gtkclist.c gtk/gtkhruler.c gtk/gtklayout.c
11177 gtk/gtklist.c gtk/gtkprogress.[ch] gtk/gtkprogressbar.[ch] gtk/gtkrange.[ch]
11178 gtk/gtkruler.[ch] gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtkspinbutton.[ch]
11179 gtk/gtktext.c gtk/gtktextview.c gtk/gtkvruler.c gtk/testgtk.c:
11180 Change float to double everywhere with the exception of 0<->1.0 alignment
11183 2001-03-19 Tor Lillqvist <tml@iki.fi>
11185 * gdk/win32/gdkdrawable-win32.c
11186 * gdk/win32/gdkimage-win32.c: Use correct casts in debugging
11189 * demos/testpixbuf-drawable.c: If GDK_WINDOWING_WIN32, include
11192 2001-03-18 Tor Lillqvist <tml@iki.fi>
11194 * gdk/win32/gdkevents-win32.c (print_window_state): New function.
11195 print_event_state, print_event): Use preprocessor macro to make
11196 code more compact. Print also GDK_WINDOW_STATE events.
11197 (synthesize_crossing_events): Remove the old #ifdeffed-out code.
11200 * gtk/makefile.mingw.in: Update.
11202 * gtk/gtkmain.h: Check for G_PLATFORM_WIN32, not only G_OS_WIN32,
11203 to catch also Cygwin.
11205 Sun Mar 18 01:15:30 2001 Tim Janik <timj@gtk.org>
11207 * gtk/gtkspinbutton.[hc]: added rc-style argument
11208 GtkSpinButton::shadow_type.
11209 removed spin_button->shadow_type, gtk_spin_button_set_shadow_type()
11210 and ARG_SHADOW_TYPE as it doesn' make much sense to try to override
11213 * gtk/gtkfixed.c: removed gtk_fixed_paint() (was unused).
11215 * gtk/gtkwidget.c: quark cleanups.
11217 * gtk/gtkrc.[hc]: added gtk_rc_scanner_new() to create an rc-file
11218 scanner with appropriate configuration, renamed GtkRcStyleClass.clone
11219 to create_rc_style() (we don't do cloning in standard OO sense).
11220 added per rc style properties.
11222 * gtk/gtkstyle.[hc]: added code to retrive pspec conformant rc-style
11223 property values and for caching those. some cleanups.
11225 * gtk/Makefile.am: -DG_DISABLE_CONST_RETURNS.
11227 * gtk/gtksettings.[hc]: new file for global rc-file properties
11228 (at least currently, should get extended to support X properties
11229 and other communication mechanisms).
11231 * gtk/gtkwidget.[hc]: added style property support:
11232 (gtk_widget_class_install_style_property_parser): install style
11233 property pspec with parser function for rc-file values other
11234 than LONG, DOUBLE or STRING.
11235 (gtk_widget_class_install_style_property): same as above without
11236 parser (parsers are going to be needed quite infrequently).
11237 (gtk_widget_style_get_property): retrive style property value.
11238 (gtk_widget_style_get_valist): same as above with varargs support,
11239 has NOCOPY semantics.
11240 (gtk_widget_style_get): wrapper around gtk_widget_style_get_valist().
11242 Fri Mar 16 18:24:53 2001 Jonathan Blandford <jrb@redhat.com>
11244 * demos/gtk-demo/main.c (row_activated_cb): modified to use
11245 "row_activated" signal.
11247 * gtk/gtktreeview.c (gtk_tree_view_row_activated): oh, the
11248 stupidity. Lets actually pass in the row with this signal...
11250 Fri Mar 16 18:01:17 2001 Jonathan Blandford <jrb@redhat.com>
11252 * gtk/gtktreeviewcolumn.[ch]: s/GTK_TREE_COLUMN/GTK_TREE_VIEW_COLUMN
11254 * gtk/gtktreeview.c (gtk_tree_view_row_activated): New signal.
11256 * gtk/gtktreeview.c (gtk_tree_view_destroy): moved pretty much
11257 everything into the ::destroy function, and freed a lot more.
11259 2001-03-16 Havoc Pennington <hp@redhat.com>
11261 * gtk/gtkwidget.h (struct _GtkWidgetAuxInfo): change to use gint
11262 instead of gint16, to avoid overflow issues, since sizes > 16-bit
11265 2001-03-16 Havoc Pennington <hp@redhat.com>
11267 * Applied patch from Nils Barth (bug # 51041) to
11268 replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
11271 2001-03-15 Havoc Pennington <hp@redhat.com>
11273 * gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs
11274 for properties to set on the tag.
11276 * gtk/testtext.c: fixups to reflect create_tag change
11278 * gtk/gtktexttag.c (gtk_text_tag_set_property):
11279 background/foreground stipple are objects, not boxed.
11281 * demos/gtk-demo/textview.c: intellihancing
11283 Fri Mar 16 11:38:42 2001 Jonathan Blandford <jrb@redhat.com>
11285 * gtk/gtktreeview.c (gtk_tree_view_set_model): Fixed some
11286 braindeadness spotted by Jamie Strachan <frostfreek@yahoo.com>.
11288 2001-03-16 Alexander Larsson <alexl@redhat.com>
11290 * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose):
11291 Fix sign error with queued region translations.
11293 2001-03-15 HideToshi Tajima <tajima@happy>
11295 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_set_cursor_location):
11296 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_location):
11297 * gtk/gtkentry.c (update_im_cursor_location):
11298 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_location):
11299 * gtk/gtkimcontext.h (struct _GtkIMContextClass): rename
11300 set_cursor_pos to set_cursor_location in GtkInputContext class
11302 Thu Mar 15 18:22:44 2001 Jonathan Blandford <jrb@redhat.com>
11304 * gtk/gtkcellrenderer.h: Changed prototype to allow for getting
11305 the location of the cell relative to its area.
11306 * gtk/gtkcell*: modified for above change
11307 * gtk/gtktreeview.c: modified for above change.
11309 Wed Mar 14 13:58:32 2001 Jonathan Blandford <jrb@redhat.com>
11311 * gtk/gtktreeview.c (gtk_tree_view_set_model): Ref the model.
11312 (gtk_tree_view_finalize): actually unref the model. Thanks to
11313 Jamie Strachan <frostfreek@yahoo.com> for noticing this error.
11315 2001-03-14 Havoc Pennington <hp@redhat.com>
11317 * gtk/gtkdata.h, gtk/gtkdata.c: Delete.
11319 * gtk/gtk.h: remove gtkdata.h
11321 * gtk/Makefile.am: remove gtkdata
11323 * gtk/gtktext.c (gtk_text_set_adjustments): connect to "destroy"
11324 not "disconnect" on the adjustments.
11326 * gtk/gtktooltips.h, gtk/gtktooltips.c: derive from GtkObject not
11329 * gtk/gtkadjustment.h, gtk/gtkadjustment.c: derive from GtkObject
11332 * configure.in: handle case where X render exists, but Pango lacks
11335 2001-03-15 Alexander Larsson <alexl@redhat.com>
11337 * gtk/gtktoolbar.[ch]:
11338 New functions gtk_toolbar_set_icon_size and gtk_toolbar_insert_stock
11339 to add stock items to toolbars.
11342 Remove ../gdk/gdkim.h from gdk_headers.
11344 2001-03-15 Sven Neumann <sven@gimp.org>
11346 * gdk/gdkim.h: removed
11349 * gdk/x11/gdkim-x11.c: do not include gdkim.h
11351 2001-03-14 HideToshi Tajima <tajima@happy.sunsoft.eng.sun.com>
11353 * gtk/gtkimmulticontext.c (gtk_im_multicontext_set_cursor_pos):
11354 * gtk/gtkimcontext.c (gtk_im_context_set_cursor_pos):
11355 * gtk/gtkimcontext.h (struct _GtkIMContextClass): add
11356 set_cursor_pos() virtual method
11358 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_class_init):
11359 (gtk_im_context_xim_set_cursor_pos): add implementation for
11360 set_cursor_pos() method
11362 * gtk/gtkentry.c (recompute_idle_func): set current cursor
11363 position to input methods
11365 Mon Mar 12 21:02:08 2001 Jonathan Blandford <jrb@redhat.com>
11367 * gtk/gtktreeview.c (gtk_tree_view_header_focus): Fix up focus
11370 * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): use
11372 (_gtk_tree_data_list_alloc): use g_mem_chunk.
11373 (_gtk_tree_data_list_node_to_value): Fix to switch on
11374 G_TYPE_FUNDAMENTAL.
11375 (_gtk_tree_data_list_value_to_node): Fix to switch on
11376 G_TYPE_FUNDAMENTAL.
11377 (_gtk_tree_data_list_node_copy): Fix to switch on
11378 G_TYPE_FUNDAMENTAL.
11380 2001-03-12 Havoc Pennington <hp@redhat.com>
11382 * gtk/gtkwindow.c (gtk_window_class_init): Patch from John Margaglione
11383 to convert to new property API. Also, change default_width and
11384 default_height get_property to return 0 as the flag value for
11385 "unset"; -1 is not a valid value for these fields.
11387 2001-03-12 Havoc Pennington <hp@redhat.com>
11389 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: Switch to using an
11390 enum with registration for icon sizes, instead of strings.
11392 * gtkimage.h, gtkimage.c, gtkstyle.h, gtkstyle.c, gtkwidget.h,
11393 gtkwidget.c: Fix to reflect GtkIconSize
11395 2001-03-12 Alexander Larsson <alexl@redhat.com>
11397 Make GtkFB compile and link.
11399 * gdk/linux-fb/gdkdrawable-fb2.c:
11400 window->mapped to GDK_WINDOW_IS_MAPPED().
11402 * gdk/linux-fb/gdkwindow-fb.c:
11403 window->mapped to GDK_WINDOW_IS_MAPPED().
11404 Added gdk_window_shape_combine_region.
11405 Added assorted placeholders for unimplemented new GdkWindow API calls.
11407 2001-03-12 Alexander Larsson <alexl@redhat.com>
11409 * gtk/gtkfilesel.c:
11410 Add more test when converting filenames from/to utf-8.
11411 Don't allow entering text in the filename entry which isn't allowed in
11412 a filename. Just beep instead.
11414 2001-03-12 Alexander Larsson <alexl@redhat.com>
11417 Scroll using gdk_window_scroll(). Don't wait for exposes.
11418 Move the column headers in an order that makes them flash less.
11420 2001-03-10 Hans Breuer <hans@breuer.org>
11422 * gdk/gdk.def : updated
11424 * gdk/win32/gdkgc-win32.c : pixmaps are visible again, due
11425 to offseting the clip_mask at the right place
11427 * gdk/win32/gdkwindow-win32.c : don't create background brushes
11428 for all the gdkClasses, especially not for the input_only case.
11429 Otherwise flickering wont be avoidable, because we don't get
11430 WM_ERASEBKGND message for these windows.
11432 * gdk/win32/gdkevents-win32.c : initialize event->expose.region
11433 and fixed massive redraw problems apparently triggered by Alexanders
11434 recent change. Not fully understood the GDK_EXPOSE / WM_PAINT handling
11435 but it seems to work quite well :-)
11437 * gdk/win32/gdkprivate-win32.h : added _gdk_window_process_expose
11440 Sat Mar 10 12:15:31 2001 Jonathan Blandford <jrb@redhat.com>
11442 * gtk/gtktreestore.c (gtk_tree_store_set_cell): Fix a stupid typo.
11443 (gtk_list_store_set_cell): Fix a stupid typo.
11445 Fri Mar 9 20:36:21 2001 Jonathan Blandford <jrb@redhat.com>
11447 * gtk/gtktreeselection.c (gtk_tree_selection_select_all): Make
11448 select_all not work if you're in SINGLE mode (it doesn't make that
11449 much sense, anyway.)
11451 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
11452 handle types more sanely.
11453 (_gtk_tree_data_list_value_to_node): handle types more sanely.
11454 (_gtk_tree_data_list_node_copy): handle types more sanely.
11456 * gtk/gtkliststore.c (gtk_list_store_set_cell): fix to work with
11457 GValue better. Converts the type as well.
11459 * gtk/gtktreestore.c (gtk_tree_store_set_cell): fix to work with
11460 GValue better. Converts the type as well.
11462 Wed Mar 7 20:47:41 2001 Owen Taylor <otaylor@redhat.com>
11464 * gtk/gtktext.c gtk/gtkoldeditable.[ch] gdk/gdk.[ch]
11465 gdk/Makefile.am gdk/x11/Makefile.am gdk/x11/gdkevents-x11.c
11466 gdk/x11/gdkglobals-x11.c gdk/x11/gdkprivate-x11.c
11467 gdk/x11/gdkx.h gdk/x11/gdkim-x11.c: Remove old XIM code.
11469 * gdk/win32/gdkim-win32.c gdk/linux-fb/gdkim-fb.c: Remove
11472 2001-03-09 Hans Breuer <hans@breuer.org>
11474 * gdk/gdk.def : updated
11476 * gdk/win32/gdkevents-win32.c : don't ask input_only windows
11479 * gdk/win32/gdkgeometry-win32.c : reflect GdkWindowObject::mapped
11482 * gdk/win32/gdkwindow-win32.c : reflect GdkWindowObject::mapped
11483 removing and implemented Havoc's GdkWindow state functions;
11484 stick/unstick only as no-op, cause I don't know how to emulate
11487 * gtk/gtk.def : updated
11489 * gtk/gtkbox.c (gtk_box_get_spacing) : use g_return_val_if_fail ()
11491 * gtk/gtktypeutils.c : #include <string.h>
11493 * gtk/gtkwindow.h : declare gtk_window_set_decorated ()
11495 Fri Mar 9 09:31:55 2001 Tim Janik <timj@gtk.org>
11497 * gtk/gtkwidget.c (gtk_widget_class_init): fixed signals with
11498 GDK_TYPE_DRAG_CONTEXT, it needs to be marshaled as an object,
11501 2001-03-09 Alexander Larsson <alexl@redhat.com>
11503 * docs/Changes-2.0.txt:
11504 Document expose event->region change and that gtk_widget_event
11505 doesn't allow passing expose events.
11508 Add region to expose event.
11511 Handle event->region in gdk_event_copy() and gdk_event_free().
11513 * gdk/gdkwindow.c (gdk_window_process_updates_internal):
11514 Generate expose_event->region when creating expose events.
11516 * gdk/x11/gdkevents-x11.c:
11517 Generate expose events with regions when translating X events.
11519 * gtk/gtkcontainer.[ch]:
11520 Default expose handler that propagates expose events to NO_WINDOW
11521 children. New function gtk_container_propagate_expose()
11523 * gtk/gtkwidget.[ch]:
11524 Moved gtk_widget_event implementation to gtk_widget_event_internal.
11525 gtk_widget_event calls gtk_widget_event_internal but doesn't allow
11526 expose events. New function gtk_widget_send_expose() to send expose
11527 events. New function gtk_widget_region_intersect() to calculate
11528 window/region intersections.
11530 * gtk/gtkmain.c (gtk_main_do_event):
11531 Use gdk_window_begin_paint_region() instead of gdk_window_begin_paint_rect().
11532 Use gtk_widget_send_expose() to send expose events.
11537 * gtk/gtkimagemenuitem.c:
11542 Remove expose handler, using the default container implementation
11546 * gtk/gtkcheckbutton.c:
11547 * gtk/gtkeventbox.c:
11549 * gtk/gtkhandlebox.c:
11551 * gtk/gtklistitem.c:
11553 * gtk/gtkmenubar.c:
11554 * gtk/gtkmenuitem.c:
11555 * gtk/gtknotebook.c:
11556 * gtk/gtkoptionmenu.c:
11558 * gtk/gtkscrolledwindow.c:
11559 * gtk/gtktogglebutton.c:
11560 * gtk/gtktoolbar.c:
11561 * gtk/gtktreeitem.c:
11562 * gtk/gtkviewport.c:
11563 Chain expose handler to parent class handler. Use
11564 gtk_container_propagate_expose() to propagate exposes.
11566 * gtk/gtkclist.c (check_exposures):
11567 * gtk/gtktext.c (process_exposes):
11568 Use gtk_widget_send_expose instead of gtk_widget_event.
11570 Thu Mar 8 19:40:28 2001 Jonathan Blandford <jrb@redhat.com>
11572 * gtk/gtktreeview.c (gtk_tree_view_destroy): Add destroy function.
11574 Thu Mar 8 19:18:27 2001 Jonathan Blandford <jrb@redhat.com>
11576 * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): Actually
11577 unref the nodes. Fixes bug #50058.
11579 * gtk/gtktreemodel.c (gtk_tree_model_ref_node): change
11580 "::ref_iter" to "::ref_node".
11581 (gtk_tree_model_unref_node): change "::unref_iter" to
11582 "::unref_node". Fixes bug #50064.
11584 Thu Mar 8 17:40:09 2001 Jonathan Blandford <jrb@redhat.com>
11586 * gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon): add
11587 support for invisible cells.
11588 (gtk_tree_view_bin_expose): ditto
11590 Thu Mar 8 16:36:00 2001 Jonathan Blandford <jrb@redhat.com>
11592 * gtk/gtktreemodel.c (gtk_tree_model_get_type): add prerequesite
11595 * tests/testtreefocus.c (main): New test file.
11597 * tests/testtreeview.c: update to latest glib changes.
11599 * tests/testtreecolumns.c: update to latest glib changes.
11601 Thu Mar 8 18:13:20 2001 Tim Janik <timj@gtk.org>
11603 * gtk/testgtk.c: re-enabled event watcher emission hooks.
11605 Thu Mar 8 16:51:21 2001 Tim Janik <timj@gtk.org>
11607 * *.c: added accumulator data argument to g_signal_newc()
11610 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model):
11611 * gtk/gtktreeview.c (gtk_tree_view_setup_model):
11612 * gtk/treestoretest.c (make_window):
11613 s/g_signal_connect/g_signal_connectc/.
11615 * gtk/gtktextbuffer.c: completed signal arg fixups,
11616 they also needed G_SIGNAL_TYPE_STATIC_SCOPE flag.
11618 Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com>
11620 * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make
11623 * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a
11624 ::hierarchy-changed signal when a widget changes
11625 from anchored to unanchored or vice versa.
11627 gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.)
11628 Use a private flag to keep track of this efficiently.
11630 2001-03-07 Havoc Pennington <hp@redhat.com>
11632 * gtk/testgtk.c (create_spins): uglify so that size request gets
11635 * gtk/gtkspinbutton.c (gtk_spin_button_size_request): Base size
11636 request on values for upper/lower, completes #6152
11638 Wed Mar 7 20:07:22 2001 Owen Taylor <otaylor@redhat.com>
11640 * Makefile.am: Remove gtk-config-2.0 again.
11641 (Grrrr, pkg-config. And stops make loops.)
11643 Thu Mar 8 00:18:29 2001 Tim Janik <timj@gtk.org>
11645 * gtk/gtksignal.[hc]: removed old emission hook API.
11647 * docs/Changes-2.0.txt: fixed sections.
11649 * gtk/gtktextbuffer.c: signal arg fixups.
11651 2001-03-07 Havoc Pennington <hp@redhat.com>
11653 * gtk/gtktextview.c (invalidated_handler): use PRIORITY_VALIDATE
11655 * gtk/gtktextview.h (GTK_TEXT_VIEW_PRIORITY_VALIDATE): add this
11656 here, bug #50368; changed to be GDK_PRIORITY_REDRAW + 5, instead
11657 of GDK_PRIORITY_REDRAW + 1, so you can insert stuff in between the
11658 validation and the redraw which is higher priority than the
11661 2001-03-07 Havoc Pennington <hp@redhat.com>
11663 * gtk/gtkentry.c (gtk_entry_get_property): remove trailer
11664 (gtk_entry_set_property): remove trailer
11666 * gtk/gtkentry.c (gtk_entry_set_width_chars):
11667 (gtk_entry_get_width_chars): new functions, to set size request to
11668 a given number of characters
11670 * gtk/testgtk.c (create_dialog): beef up the dialog test slightly
11672 * gtk/gtkdialog.c (gtk_dialog_set_has_separator): new function
11673 (gtk_dialog_get_has_separator): new function
11674 (run_delete_handler): fix to not emit "response" signal
11675 because we already did in the delete event handler installed
11676 at dialog creation time.
11678 * gtk/gtkdialog.h: add a has_separator property,
11679 add GTK_DIALOG_NO_SEPARATOR flag
11681 2001-03-07 Havoc Pennington <hp@redhat.com>
11683 * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
11684 off decorations for a window.
11686 * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
11689 * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
11690 to get location of PangoLayout inside the label, closes #51198
11692 * gtk/testgtk.c (create_bbox): fix up button box usage
11694 * gtk/testcalendar.c (create_calendar): fix up button box usage
11696 * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
11698 * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
11700 * gtk/gtkhbbox.h: deprecations
11702 * gtk/gtkvbbox.h: deprecations
11704 * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
11705 emulate deprecated gtk_button_box_get_spacing
11707 * gtk/gtkbbox.h: deprecate some useless functions, remove entirely
11708 the "set global default" functions
11709 (struct _GtkButtonBox): remove "spacing" field, use the one from
11712 * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
11714 * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
11715 render the icon, return the missing image icon.
11717 * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
11718 image icon if the load fails.
11720 * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
11721 when no image is found; should be the Netscape "missing image"
11722 icon eventually but for now is a random image
11724 * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
11725 role for the session manager
11727 * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
11729 * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
11730 GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
11732 * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
11734 Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org>
11736 * gtk/*.c: marshaller fixes.
11738 * gtk/gtkmarshal.list: extreme cleanup.
11740 * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface
11741 param spec for now.
11743 * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed()
11746 * gtk/gtktypeutils.[hc]: updates to GLib API changes.
11747 special cased autogenerated boxed types from gtktypebuiltins_ids.c
11748 which are not reference counted:
11749 GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray,
11750 PangoFontDescription, GtkTreeIter and GtkTreePath.
11752 Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org>
11754 * gtk/gtktreeselection.h:
11755 * gtk/gtktreemodel.c:
11756 * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/*
11757 file should be included directly, and gobject/gmarshal.h
11758 as well as gtk/gtkmarshal.h even can't be included directly.
11760 * Makefile.am: grr, install gtk-config-2.0.
11765 * gtk/gtkitemfactory.c: use g_object_connect() instead of
11766 passing "*signal*::*" args to gtk_widget_set().
11768 * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL.
11770 * gtk/*.c: removed trailer arg from property setters and getters.
11773 2001-03-07 Alexander Larsson <alexl@redhat.com>
11775 * gtk/gtklabel.c (set_markup): Removed warning
11777 Tue Mar 6 19:59:12 2001 Jonathan Blandford <jrb@redhat.com>
11779 * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add visible
11780 field to allow you to hide cell renderers.
11782 * gtk/gtkcellrenderer.c: Add support for invisible cells.
11784 * gtk/gtktreeview.c: Add support for invisible cells.
11786 Tue Mar 6 17:25:07 2001 Jonathan Blandford <jrb@redhat.com>
11788 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_clicked):
11789 Add "clicked" signal back to columns.
11791 * ChangeLog: remove conflict markers.
11793 Tue Mar 6 10:45:45 2001 Owen Taylor <otaylor@redhat.com>
11795 * gtk/gtkbutton.c: Add animation of activation by, on
11796 activate, pressing the button, and adding a timeout that
11797 releases the button after 250ms or on key release and
11798 emits ::clicked. (#51501)
11800 * gtk/gtkdialog.c: Bit of a hack - for buttons in the
11801 action area, we connect to ::clicked instead of ::activate
11802 so the dialog stays up through the animation.
11804 Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
11806 * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
11807 check the ignore_enter flag for the menu shell that
11808 the item is actually a child of, not for attached
11811 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11813 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11814 special key-press grab handling for widgets within
11815 GtkWindows. Otherwise, fall through to normal case.
11817 This prevents key events being sent twice to GtkInvisible
11818 widgets, which can cause all sorts of mischief.
11820 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11822 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11823 widget is in effect, give the grab widget a first
11824 crack at KEY_PRESS/RELEASE events. (#424)
11826 2001-03-06 James Henstridge <james@daa.com.au>
11828 * gtk/gtkwidget.c (gtk_widget_class_init): set the class closure
11829 offset for the window_state_event to point at window_state_event
11830 rather than no_expose_event.
11832 Mon Mar 5 19:10:15 2001 Jonathan Blandford <jrb@redhat.com>
11834 * gtk/gtkimmodule.h: fix busted /* comment */
11836 Mon Mar 5 15:07:05 2001 Jonathan Blandford <jrb@redhat.com>
11838 * gtk/gtktreeview.c: Apply patch from John Margaglione to add
11841 Mon Mar 5 14:55:19 2001 Jonathan Blandford <jrb@redhat.com>
11843 * gtk/gtkcellrenderertoggle.c: Apply patch from Lee Mallabone to
11844 add object properties.
11846 * gtk/gtkcellrenderertextpixbuf.c: Apply patch from Lee Mallabone
11847 to add object properties.
11849 * gtk/gtkcellrenderertext.c: Apply patch from Lee Mallabone to add
11852 * gtk/gtkcellrendererpixbuf.c: Apply patch from Lee Mallabone to
11853 add object properties.
11855 * gtk/gtkcellrenderer.c: Apply patch from Lee Mallabone to add
11858 Mon Mar 5 14:38:54 2001 Jonathan Blandford <jrb@redhat.com>
11860 * gtk/gtktreemodel.c: renamed "child_toggled" to
11861 "has_child_toggled".
11863 * gtk/gtktreeview.c: Handle removing columns better. Updated to
11864 handle new signal name.
11866 * gtk/gtktreestore.c: Updated to handle new signal name.
11867 * gtk/gtklisttore.c: Updated to handle new signal name.
11868 * gtk/gtktreemodelsort.c: Updated to handle new signal name.
11870 2001-03-05 Alexander Larsson <alexl@redhat.com>
11872 * gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
11873 Set GDK_WINDOW_TYPE_HINT_MENU on tearoff window.
11875 2001-03-05 Michael Natterer <mitch@gimp.org>
11877 * gtk/gtklabel.c: Made the "parent_class" pointer static. The
11878 pixbuf-engine coincidentially also failed to make one of it's
11879 parent_class pointers static, causing overwriting of GtkLabel's
11880 parent_class pointer in pixbuf_style_class_init().
11881 (Will commit the fix to the pixbuf-engine too).
11883 2001-03-05 Alexander Larsson <alexl@redhat.com>
11886 Added GdkWindowTypeHint type. Added modal_hint field to GdkWindindow.
11887 New functions gdk_window_set_type_hint, gdk_window_set_modal_hint and
11888 gdk_window_set_icon_list for net wmspec functionality.
11890 * gdk/x11/gdkwindow-x11.c:
11891 Set _NEW_WM_STATE_MODAL from window->modal_hint in set_inital_hints.
11892 Implement gdk_window_set_type_hint, gdk_window_set_modal_hint and
11893 gdk_window_set_icon_list.
11894 Added gdk_wmspec_change_state helper function and used it in the code.
11895 Set _NET_WM_ICON_NAME in gdk_window_set_title and gdk_window_set_icon_name.
11897 * gtk/gtkdialog.c (gtk_dialog_init):
11898 Set GDK_WINDOW_TYPE_HINT_DIALOG.
11900 * gtk/gtkhandlebox.c (gtk_handle_box_realize):
11901 Set GDK_WINDOW_TYPE_HINT_TOOLBAR.
11904 new function gtk_window_set_type_hint.
11905 On realize, set type hint and modal hint.
11908 Added type_hint field and gtk_window_set_type_hint.
11910 2001-03-05 Alexander Larsson <alexl@redhat.com>
11912 * gtk/gtklabel.[ch]:
11913 Convert from GtkArg to GParam (originally based on patch from Lee Mallabone).
11914 New function gtk_label_get_accel_keyval () to get the underline accelerator
11915 of the label. Setting the label pattern overrides other attributes.
11917 Mon Mar 5 14:51:10 MET 2001 Sven Neumann <sven@gimp.org>
11919 * gtk/gtkrc.c: fixed compiler warnings by inserting some consts.
11920 Added missing initializers to gtk_rc_style_init().
11922 Sun Mar 04 07:30:03 2001 CET Mikael Hermansson <mikeh@bahnhof.se>
11924 * gtk/gtktextview.c: fixed bug #51097 about setting
11925 gtk_text_view_set_border_window_size() if the widget is
11928 Sat Mar 3 16:59:16 2001 Owen Taylor <otaylor@redhat.com>
11930 * gdk/gdkpango.h gdk/x11/gdkwindow-x11.c: Doc fixes
11932 * gdk/win32/gdkinput.c (gdk_device_get_axis): Remove doc
11933 comment. Won't do to have duplicated doc comments between
11934 the platform subdirs.
11936 Sat Mar 3 16:26:33 2001 Owen Taylor <otaylor@redhat.com>
11938 * gdk/x11/gdkmain-x11.c gdk/x11/gdkkeys-x11.c
11939 gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.c:
11941 Detectable auto-repeat - make a repeating key generate
11942 press/press/press/release instead of press/release pairs.
11944 If we have Xkb and XkbSetDectableAutoRepeat supports
11945 that, we do it that way. Otherwise, when we get
11946 a release event, we check ahead with XPending to see
11947 if the next key is a KeyPress with the same keycode
11948 and timestamp. (Not 100% reliable, but pretty close.)
11950 Tue Feb 27 02:16:14 2001 Owen Taylor <otaylor@redhat.com>
11952 * gtk/gtkmain.c (gtk_propagate_event): Only do special
11953 special key-press grab handling for widgets within
11954 GtkWindows. Otherwise, fall through to normal case.
11956 This prevents key events being sent twice to GtkInvisible
11957 widgets, which can cause all sorts of mischief.
11959 Fri Feb 2 13:20:12 2001 Owen Taylor <otaylor@redhat.com>
11961 * gtk/gtkmain.c (gtk_propagate_event): When a grab
11962 widget is in effect, give the grab widget a first
11963 crack at KEY_PRESS/RELEASE events. (#424)
11965 Sat Mar 3 15:39:49 2001 Owen Taylor <otaylor@redhat.com>
11967 * gtk/gtkentry.c (gtk_entry_button_press): Add shift-clicking
11968 to extend the selection. (Roughly based on patch
11969 from Jay Cox, #50939)
11971 * gtk/gtkentry.c (gtk_entry_button_press): Fix triple-clicking
11972 to properly handle previous GDK_BUTTON_PRESS.
11973 (Patch from Jay Cox, #50938)
11975 * gtk/gtkentry.c (gtk_entry_real_delete_text): Move the
11976 '\0' back along with the deleted text. (#51148)
11978 Mon Jan 22 14:31:29 2001 Owen Taylor <otaylor@redhat.com>
11980 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Unshift
11981 the group when extracting it from the X keyboard event.
11983 * modules/input/Makefile.am modules/input/imipa.c:
11984 Simple module for entering IPA. (Do we need a
11985 gtk-stupid-input-tricks CVS module?)
11987 Sat Mar 3 13:32:47 2001 Owen Taylor <otaylor@redhat.com>
11989 * gtk/gtkimmodule.c (gtk_im_module_init): Remove spurious
11992 * gdk-pixbuf-2.0.pc.in gtk+-2.0.pc.in: Fix include path.
11994 * gtk/gtkdialog.c (gtk_dialog_set_default_response): If there
11995 is no focus widget for the dialog currently, grab the focus as well
11998 * gtk/gtkdialog.c (gtk_dialog_set_default_response): Get
11999 the action area's children to iterate through, not the
12002 Sat Mar 3 13:21:27 2001 Owen Taylor <otaylor@redhat.com>
12004 * tests/Makefile.am tests/testsocket.c tests/testsocket_child.c:
12005 Add plug-socket tests. (Won't work worth a darn until I commit
12006 the rest of the plug-socket changes, but no reason these
12007 can't go into CVS now.)
12009 2001-03-02 Havoc Pennington <hp@redhat.com>
12011 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_flush): use
12012 _gdk_region_get_xrectangles()
12014 * gdk/x11/gdkmain-x11.c (_gdk_region_get_xrectangles): new function
12016 * gtk/testgtk.c (create_shapes): add test for shape_combine_region
12018 * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_region): new
12019 function, contributed by Ron Steinke
12021 * gdk/x11/gdkevents-x11.c (gdk_wmspec_supported): rename
12022 gdk_net_wm_supports
12024 * gdk/gdkregion-generic.c (gdk_region_get_rectangles):
12025 New function, contributed by Ron Steinke
12027 * gtk/gtkentry.c (gtk_entry_get_layout_offsets): New function,
12028 used to line up the text in the entry when using the entry for
12029 editable sheet cell hacks
12031 * gtk/testgtk.c (create_entry): test the activate_default setting
12034 * gtk/gtkentry.c (gtk_entry_set_activates_default): New function to
12035 cause the entry to activate the default button for a dialog when
12037 (gtk_entry_get_activates_default): new function
12039 Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
12041 * gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
12042 Hwang to move call to sync_selection() up a few lines
12043 to before the row list is modified, to fix crash when
12044 removing rows in the undo_selection list.
12046 (Test case provided by Daniel Elstner:
12048 http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
12050 Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
12052 * gtk/gtktree.c (gtk_tree_class_init): Do the setting
12053 of tree->root_tree in parent_set rather than _map(),
12054 fixing #50892 in a bit better manner.
12056 Thu Feb 22 17:07:58 2001 Owen Taylor <otaylor@redhat.com>
12058 * gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
12060 Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
12062 * gtk/gtkstyle.c : Remove duplicate fwd decl for
12063 gtk_default_draw_shadow.
12065 ue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
12067 * gdk/gdkimage.c (gdk_image_new): Remove excess
12068 warning, make warnings more verbose, treat a error
12069 in shmat as permanent, and don't try again.
12070 (#51163, Ed Randall.)
12072 Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
12074 * gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
12075 delay for the first click before starting to scroll.
12076 (based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
12078 * gtk/gtktext.c: GtkText should have I-beam cursor.
12079 (based on gtk-enf-990513-1.patch, Eric Fisher.)
12081 Mon Feb 19 16:42:19 2001 Owen Taylor <otaylor@redhat.com>
12083 * gtk/gtklayout.c (gtk_layout_allocate_child): Tiny
12084 cleanup to remove some references to unused
12085 ->xoffset, ->yoffset.
12087 Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
12089 * gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
12090 mask. (#51039, fix from Martin Maierhofer)
12092 Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
12094 * gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
12095 for unshifted + and shifted = for non-us keyboards.
12096 Make <Control>+ and <Control>- work as well as
12097 <Control>KP_Plus, <Control>KP_Minus for recursive
12098 open/close. (#2682, René Seindal)
12100 Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
12102 * gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
12103 the active menu item before deactivating the menu,
12104 so gtk_menu_popdown doesn't change the history. (#50964)
12106 Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
12108 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
12109 draw lines with text_gc rather than black_gc.
12110 (Patch from Vlad Harchev <hvv hippo ru>, #50926)
12112 Thu Mar 1 19:50:56 2001 Jonathan Blandford <jrb@redhat.com>
12114 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
12115 Move handling of buttons fully in gtktreeviewcolumn. This code is
12116 less interrelated then it was, but it still requires the
12117 GtkTreeView to map it.
12119 * test/testtreecolumn.c: Now I can add a column to one view,
12120 remove it, add it to the another view, remove it, then re-add it
12121 to the first. Nifty.
12123 Thu Mar 1 13:14:27 GMT 2001 Tony Gale <gale@gtk.org>
12125 * docs/tutorial/gtk-tut.sgml: Minor corrections
12127 Wed Feb 28 16:36:46 2001 Jonathan Blandford <jrb@redhat.com>
12129 * gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
12132 2001-02-28 Havoc Pennington <hp@redhat.com>
12134 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove draw_focus and
12136 (gtk_widget_draw_focus): remove this function; we could instead
12137 make it just gtk_widget_draw(), but in most cases I think the
12138 result would be broken user code, so think it's better to have
12139 that code not compile and get fixed
12140 (gtk_widget_draw_default): ditto
12142 * gtk/gtkwidget.c: Add default handlers for focus_in_event and
12143 focus_out_event that set/unset GTK_HAS_FOCUS and call queue_draw
12145 * gtk/gtkwindow.c (gtk_window_set_default): just queue a draw when
12146 widgets lose/get the default, instead of calling draw_default
12148 * docs/Changes-2.0.txt: note about all this
12150 Then fixed every widget in GTK, I won't list all the filenames.
12152 Tue Feb 27 19:32:53 2001 Jonathan Blandford <jrb@redhat.com>
12154 * gtk/gtktreemodel.c (deleted_callback): Proxy out to
12155 _gtk_tree_row_reference_deleted.
12156 (inserted_callback): Proxy out to
12157 _gtk_tree_row_reference_inserted.
12158 (_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
12159 get around signal emission ordering problem.
12161 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12162 fix to work with SINGLE
12163 (_gtk_tree_selection_internal_select_node): Major sanitization on
12164 selections. SINGLE now seems to work.
12166 * tests/Makefile.am: add testtreecolumn.c:
12168 * tests/testtreecolumn.c: New test. Mostly points out selection
12169 bugs currently, but will test columns later.
12171 * gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
12172 selection bug. I hate touching this code -- it's scary.
12174 2001-02-26 Havoc Pennington <hp@redhat.com>
12176 * gtk/testgtk.c: test the window state stuff
12178 * gtk/gtkwindow.c (gtk_window_present): new function, makes a
12179 window come to the user's attention as if it were just created
12180 (gtk_window_iconify): new function
12181 (gtk_window_deiconify): new function
12182 (gtk_window_stick): new function
12183 (gtk_window_unstick): new function
12184 (gtk_window_maximize): new function
12185 (gtk_window_unmaximize): new function
12187 * gtk/gtkwidget.h, gtk/gtkwidget.c: add window_state_event signal
12189 * gtk/gtkmain.c (gtk_main_do_event): handle GDK_WINDOW_STATE
12191 * gdk/x11/gdkevents-x11.c: create window state events when
12193 (gdk_wmspec_supported): new function
12195 * gdk/x11/gdkwindow-x11.c (gdk_window_iconify): handle
12196 iconification before showing the window
12197 (gdk_window_deiconify): new function
12198 (gdk_window_stick): new function
12199 (gdk_window_unstick): new function
12200 (gdk_window_maximize): new function
12201 (gdk_window_unmaximize): new function
12203 * gdk/gdkwindow.c: store the window state in the window;
12204 change to using the GDK_WINDOW_STATE_WITHDRAWN flag instead of
12206 (gdk_window_get_state): return the current window state
12208 * gdk/gdkevents.c (gdk_event_get_time): handle GDK_WINDOW_STATE
12209 (gdk_event_get_state): handle GDK_WINDOW_STATE
12210 (gdk_synthesize_window_state): function to create the window state
12213 * gdk/gdkevents.h (struct _GdkEventWindowState): new type of
12214 event, for changes to "window state" such as maximized, sticky,
12217 * gdk/x11/gdkwindow-x11.c (gdk_window_focus): new function,
12220 * gdk/x11/gdkmain-x11.c (_gdk_wmspec_supported): new function,
12221 finds out if we support a given WM spec hint
12223 Tue Feb 27 13:37:38 GMT 2001 Tony Gale <gale@gtk.org>
12225 * docs/faq/gtk-faq.sgml: New question re memory leaks.
12227 2001-02-25 Hans Breuer <hans@breuer.org>
12229 * gdk/gdk.h : changed #ifdef GDK_DISBALE_DEPRECARED to #ifndef
12230 cause we want to loose those prototypes only in the latter case
12232 * gdk/win32/gdkevents-win32.c : can't cast from GdkPixmap to
12233 GdkPixmapImplWin32 because it itsn't derived from it. Use the
12234 impl member variable instead
12236 * gtk/gtk.def : updated
12239 * gtk/gtkmenus.c : include <string.h> for memset ()
12241 * gtk/makefile.msc.in : updated and don't define GTK_COMPILATION
12242 for everthing built here, but for gtk-x.x.dll only. This solves
12243 problem of indifferent gtk type definitions
12245 Sat Feb 24 20:11:39 2001 Jonathan Blandford <jrb@redhat.com>
12247 * gtk/gtkclipboard.h: actually put /* */ around #endif comment.
12249 Fri Feb 23 17:50:13 2001 Jonathan Blandford <jrb@redhat.com>
12251 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
12252 column that is exposed.
12254 (_gtk_tree_view_update_size): Changed name from set_size, and
12255 changed function to do more work, and not force people calling it
12256 to figure out the size. Simplifies a lot of code elsewhere.
12258 2001-02-23 Alexander Larsson <alexl@redhat.com>
12260 * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf):
12261 return solid masks for xpms that have no transparent color.
12262 This makes the ..._create_from_xpm... API backwards
12265 2001-02-23 Tor Lillqvist <tml@iki.fi>
12267 * README.win32: Update. Mention the gtk-1-3-win32-production
12270 * gdk/win32/bdfcursor.c: New file. A program that generates
12271 xcursors.h. Thanks to Stefan Ondrejicka.
12273 * gdk/win32/xcursors.h: New file, contains the X cursor font in a
12276 * gdk/win32/Makefile.am (EXTRA_DIST): Add new files.
12278 * gdk/win32/gdkcursor-win32.c (_gdk_win32_data_to_wcursor): New
12279 function, uses xcursors.h.
12280 (gdk_cursor_new): Use _gdk_win32_data_to_wcursor to generate
12281 cursor from inline data instead of using LoadCursor() to generate
12282 it from a resource.
12284 * gdk/win32/gdkevents-win32.c (gdk_event_translate): At button up
12285 event, must check the Windows message for mouse button state, as
12286 the GDK event state might not have been built if it is
12287 undelivered. Remove one goto.
12289 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Call
12290 SetCursor() if the current cursor as returned by GetCursor() is
12291 the window's previous cursor. The ChildWindowFromPoint() test
12292 apparently didn't work correctly.
12294 * gdk/win32/rc/*.cur: Remove.
12296 * gdk/win32/rc/gdk.rc.in: Remove cursors.
12298 * gdk/win32/rc/Makefile.am (EXTRA_DIST): Remove from here, too.
12300 * gtk/makefile.{mingw,msc}.in: Updates.
12302 Wed Feb 21 20:56:50 2001 Jonathan Blandford <jrb@redhat.com>
12304 * gtk/gtktreemodel.h: add functions for signal emission.
12306 * gtk/gtktreestore.c: move to use above functions instead of
12309 * gtk/gtkliststore.c: ditto
12311 Wed Feb 21 15:41:34 2001 Jonathan Blandford <jrb@redhat.com>
12313 * gtk/gtktreestore.c: removed signals. Moved to inherit from
12314 GObject instead of GtkObject.
12316 * gtk/gtkliststore.c: ditto.
12318 * gtk/gtktreemodelsort.c: ditto.
12320 * gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
12321 GtkTreeModelIface, instead of in each model.
12323 2001-02-21 Havoc Pennington <hp@redhat.com>
12325 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_child_anchor):
12326 unbreak this function
12328 * gtk/gtkentry.c: apply patch from Lee Mallabone to add object
12331 * gtk/gtkcurve.c: apply patch from Lee Mallabone to add object
12334 * gtk/gtkcombo.c: apply patch from Lee Mallabone to add object
12337 * gtk/gtkentry.c (gtk_entry_set_max_length): have this take -1 to
12338 mean unset the max length
12340 Wed Feb 21 14:23:05 2001 Jonathan Blandford <jrb@redhat.com>
12342 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func):
12343 Changed name to be set_cell_data_func to make it clear what
12344 the functino does. Close bug #51069.
12346 Tue Feb 20 16:49:00 2001 Jonathan Blandford <jrb@redhat.com>
12348 * gtk/testgtk.c (main): Remove turning on of profiling malloc,
12349 have memory actually freed. Keeps box running longer.
12351 2001-02-21 Alexander Larsson <alexl@redhat.com>
12353 * gtk/gtkseparatormenuitem.[ch]:
12354 Added new menu separator item. The drawing and size handling
12355 is still done in GtkMenuItem, but the API is a bit more sane.
12358 Add gtkseparatormenuitem.[ch].
12361 Add gtkseparatormenuitem.h.
12364 * gtk/gtkmenufactory.c:
12365 * gtk/gtktextview.c:
12366 Use the new API for menu separators.
12368 * demos/gtk-demo/menus.c (create_menu):
12369 Add some GtkSeparatorMenuItem demo code.
12371 2001-02-20 Havoc Pennington <hp@redhat.com>
12373 * gtk/gtkaspectframe.c: Convert to new property API, patch from
12376 * gtk/gtkarrow.c: Convert to new property API, patch from
12379 Tue Feb 20 14:26:41 2001 Jonathan Blandford <jrb@redhat.com>
12381 * tests/testtreeview.c (toggled_callback): fix to reflect change
12382 in GtkTreeModelStore.
12384 Tue Feb 20 12:16:12 2001 Jonathan Blandford <jrb@redhat.com>
12386 * gtk/gtkiconfactory.c (gtk_icon_set_new_from_pixbuf): New
12387 function to create an icon set from a pixbuf.
12389 2001-02-20 Alexander Larsson <alexl@redhat.com>
12391 * gtk/gtkcellrenderertext.[ch]:
12392 Add a "markup" property.
12394 * gtk/treestoretest.c:
12395 Use the markup property, remove some leftover stuff from
12396 GtkTreeModelMapping.
12398 2001-02-20 Alexander Larsson <alexl@redhat.com>
12400 * gtk/gtklabel.c (gtk_label_set_selectable):
12401 Queue a redraw if the selectable setting was changed.
12403 2001-02-20 Alexander Larsson <alexl@redhat.com>
12405 * gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):
12406 Actually copy the whole gc, not just the public parts.
12408 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
12409 GDK_WINDOW_TEMP are not toplevel. Fixes selectable
12412 2001-02-19 Havoc Pennington <hp@pobox.com>
12414 * gdk/gdkwindow.c: docs
12416 * gdk/gdkrgb.c: docs
12418 * gdk/gdkregion-generic.c: docs
12420 * gdk/gdkgc.c (gdk_gc_set_values): docs
12422 * gdk/gdkdraw.c: docs
12424 * gdk/gdkdrawable.h: deprecate drawable get/set data
12426 Mon Feb 19 20:37:35 2001 Jonathan Blandford <jrb@redhat.com>
12428 * demos/gtk-demo/dialog.c: Add simple new demo.
12430 2001-02-19 Havoc Pennington <hp@redhat.com>
12432 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): add
12433 insert_child_anchor signal, bug #50245
12435 * gtk/gtktextbtree.c (_gtk_text_btree_insert_child_anchor): change
12436 from create_child_anchor, so the anchor is passed in
12438 * gtk/gtktextchild.c (gtk_text_child_anchor_new): new function
12439 (_gtk_widget_segment_new): have the child anchor object passed in,
12440 instead of creating it.
12442 * gtk/gtktextbuffer.c (gtk_text_buffer_modified): rename
12443 to gtk_text_buffer_get_modified
12445 2001-02-19 Havoc Pennington <hp@redhat.com>
12447 * gtk/gtktreemodel.c (gtk_tree_model_get_valist): hmm, someone
12448 changed GLib without fixing GTK
12450 * gtk/gtkrange.h: Rename all the stupid implementation detail
12451 functions to have an underscore in front. Most of them should
12452 probably just go away, but for starters don't export them.
12455 2001-02-19 Havoc Pennington <hp@redhat.com>
12457 * gdk/gdkcolor.h: test was backward, so deprecated functions were
12458 excluded by default
12460 * gtk/gtkstyle.c (gtk_default_draw_diamond): draw etched in/out,
12461 clean up the old code a bit
12463 * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): draw
12466 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator):
12467 draw inconsistent state
12469 * gtk/testgtk.c (create_toggle_buttons): add test for inconsistent
12470 (create_menu): add inconsistent test
12472 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_set_inconsistent):
12474 (gtk_check_menu_item_get_inconsistent): new function
12475 (gtk_real_check_menu_item_draw_indicator): draw the inconsistent
12476 state (using etched in for now)
12478 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
12479 draw inconsistent state
12481 * gtk/gtktogglebutton.c (gtk_toggle_button_set_inconsistent): new
12482 function, used when the user has selected a range of stuff in
12484 (gtk_toggle_button_get_inconsistent): accessor for that
12485 (gtk_toggle_button_paint): draw inconsistent state (etched in?
12486 don't know what else to do)
12488 2001-02-19 Hans Breuer <hans@breuer.org>
12490 * gtk/gtk.def : updated exported symbols
12492 * gtk/makefile.msc.in : updated
12494 * gtk/gtkstyle.c (gtk_style_realize) : gets called without
12495 a colormap, when invoked from testgtk::entry. I'm not sure where
12496 the bug is, but g_return_if_fail (GDK_IS_COLORMAP (colormap));
12497 avoids immediate crashing ...
12499 * gtk/gtkmain.c (check_setugid) : totally disabled on win32;
12502 * gtk/gtktreemodel.c : called G_VALUE_LCOPY with an extra
12503 0 parameter. At least msvc doesn't like macros with var args.
12504 I simply removed the extra 0, was it a feature or a typo ?
12506 * gtk/gtktreeviewcolumn.[hc] (gtk_tree_view_column_set_func) :
12507 removed the extra indirection from the GtkTreeViewColumnFunc parameter,
12508 because the value assignment to the internal struct wasn't working.
12509 I'm not absolutely sure. The problem could have been resolved by
12510 changing the "func" declartion in the struct, but was the pointer
12511 to the function pointer intended ?
12513 * gtk+/gtk/gtktreedatalist.c : include gboxed.h
12515 * gdk/gdk.def : updated exported symbols
12517 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_image) :
12518 only use SetDIBitsToDevice if there is a palette at the drawable
12519 and the image is GDK_VISUAL_PSEUDO_COLOR
12521 * gdk/win32/gdkkeys-win32.c : msvc still has no <unistd.h> ...
12523 * gdk/win32/gdkwindow-win32.c : #include "gdk.h" /* gdk_rectangle_intersect */
12525 * gdk/*/makefile.msc : updated
12527 2001-02-19 Havoc Pennington <hp@redhat.com>
12529 * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
12530 GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
12532 * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
12533 (gdk_key_repeat_restore): nuke
12535 * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
12536 (gdk_init_check): no atexit func
12538 * gdk/gdkrgb.h: mark some stuff deprecated
12540 * gdk/gdkcolor.h: mark some stuff deprecated
12542 * gdk/gdk.h: deprecated gdk_exit, gdk_input_*
12544 * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
12546 2001-02-16 Havoc Pennington <hp@redhat.com>
12548 * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
12551 * gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
12552 steps, and add Ctrl-arrow shortcuts for paging visually as with
12553 HScale, since Page Up and Page Down move logically.
12555 * gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
12556 GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
12558 * gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
12560 (gtk_range_scroll): handle the visual steps
12562 * gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
12565 * gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
12566 steps, not the logical ones.
12568 * gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
12569 (scroll_vertical): handle up/down steps
12571 2001-02-19 Alexander Larsson <alexl@redhat.com>
12573 * gdk/linux-fb/gdkimage-fb.c (gdk_image_new_bitmap):
12574 Copy data and free data with free().
12576 * gdk-pixbuf/gdk-pixbuf.c:
12577 * gdk-pixbuf/io-jpeg.c:
12578 * gdk-pixbuf/io-png.c:
12579 Use g_try_malloc/g_free instead malloc/free.
12581 * gdk-pixbuf/test-gdk-pixbuf.c:
12582 Must... initialize... gobject...
12584 * gdk-pixbuf/pixops/timescale.c:
12585 * gtk/gtkcalendar.c:
12586 Use g_malloc instead of malloc.
12588 2001-02-19 Alexander Larsson <alla@lysator.liu.se>
12591 Comment out property assignments, these don't work yet.
12593 2001-02-17 Havoc Pennington <hp@pobox.com>
12595 * gtk/gtkalignment.c (gtk_alignment_class_init): clean this up a
12598 2001-02-17 Havoc Pennington <hp@pobox.com>
12600 * gtk/gtklabel.c (gtk_label_ensure_layout): fix screwup with
12601 shadowed variables that had broken size request in some cases,
12602 leading to bogus tooltips (#50996)
12604 2001-02-06 Jon K Hellan <hellan@acm.org>
12606 Implement fast browsing of tooltips, bug #50619
12608 * gtk/gtktooltips.h (struct _GtkTooltips): Add use_sticky_delay
12611 * gtk/gtktooltips.c (gtk_tooltips_init): Initialize sticky_delay,
12612 use_sticky_delay and last_popdown.
12613 (gtk_tooltips_draw_tips, gtk_tooltips_set_active_widget): Record
12615 (gtk_tooltips_set_active_widget): Unset sticky behaviour if widget
12617 (gtk_tooltips_recently_shown): New static function. Return true
12618 if < sticky_delay has elapsed since last popdown.
12619 (gtk_tooltips_event_handler): Display window after sticky_delay
12620 (presumably < normal delay) if < STICKY_REVERT_DELAY has elapsed
12621 since last popdown.
12623 2001-02-17 Havoc Pennington <hp@pobox.com>
12625 * gtk/gtktypeutils.h (GtkSignalFunc): change it to take (void)
12626 instead of (). #6394
12628 * gtk/gtkprogressbar.c (gtk_progress_bar_get_text): Add
12629 G_CONST_RETURN, make it return by reference, #50473
12631 Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
12633 * gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
12634 generated ENTER_NOTIFY event with 0, otherwise not explicitely
12635 setup fields contain garbage (e.g. subwindow, breaking
12636 gdk_drawable_ref() upon event copy).
12637 (gtk_menu_stop_navigating_submenu_cb): same here.
12639 * gtk/gtklist.c (gtk_list_vertical_timeout):
12640 * gtk/gtklist.c (gtk_list_horizontal_timeout):
12641 * gtk/gtkclist.c (vertical_timeout):
12642 * gtk/gtkclist.c (horizontal_timeout): change direct assignment
12643 default-zero-intialization for unions to memset(,0,), as unions are
12644 not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
12645 has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
12647 * gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
12648 g_closure_sink() warning.
12650 * gtk/gtktreemodel.c (gtk_tree_model_get_valist):
12651 * gtk/gtktreestore.c (gtk_tree_store_set_valist):
12652 * gtk/gtkliststore.c (gtk_list_store_set_valist):
12653 fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
12655 Fri Feb 16 17:49:59 2001 Jonathan Blandford <jrb@redhat.com>
12657 * gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
12658 gtk_*_store_get, and moved to GtkTreeModel.
12660 * gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
12662 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
12664 * gtk/Makefile.am: remove gtktreemodelmapping.[ch]
12666 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
12669 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
12670 freeze/thaw notify between setting all the properties for a cell.
12672 * gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
12674 2001-02-15 Havoc Pennington <hp@redhat.com>
12676 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region): convert
12677 the X coordinates so they're with respect to the line, rather than
12678 with respect to the layout.
12680 * gtk/gtkalignment.c: Convert to new property API, patch from Lee
12683 * gtk/testgtk.c (create_range_controls): add vscale tests,
12686 * gtk/gtkrange.c (gtk_range_set_inverted): new function to fix
12689 * gtk/gtkentry.c (gtk_entry_get_text): add G_CONST_RETURN
12691 * gtk/gtktextiter.h (gtk_text_iter_is_last): rename
12692 gtk_text_iter_is_end
12694 * gtk/gtktextbuffer.h (gtk_text_buffer_get_last_iter):
12695 rename gtk_text_buffer_get_end_iter
12697 * gtk/testgtk.c (create_labels): Add test for selectable
12699 * gtk/gtkentry.c (gtk_entry_draw_text): Use new GDK API to draw
12700 the selection stuff. This code is kind of broken since it doesn't
12701 use the theme engine.
12703 * gdk/gdkpango.c (gdk_pango_layout_line_get_clip_region):
12704 fix infinite loop and y offset problem
12705 (gdk_draw_layout_line_with_colors): fix foreground color handling
12707 * gtk/gtklabel.h, gtk/gtklabel.c: Implement a "selectable" flag
12708 that makes the label selectable.
12710 * gtk/gtklabel.c (gtk_label_style_set): recreate the label's
12711 layout when the style is set, since fonts etc. could have changed.
12713 Fri Feb 16 14:22:05 2001 Jonathan Blandford <jrb@redhat.com>
12715 * gtk/Makefile.am: Removed gtktreemodelsimple.[ch]
12717 * gtk/gtktreemodelsimple.[ch]: removed.
12719 2001-02-16 Alexander Larsson <alexl@redhat.com>
12721 * gtk/gtktreemodelmapping.[ch]:
12722 New files. Implement GtkTreeModelMapping.
12725 Add gtktreemodelmapping.[ch].
12728 Add gtktreemodelmapping.h
12730 * gtk/treestoretest.c:
12731 Test the GtkTreeModelMapping
12733 Tue Feb 13 13:16:09 2001 Jonathan Blandford <jrb@redhat.com>
12735 * demos/gtk-demo/panes.c (create_pane_options): If we're going to
12736 have a demo, we might as well pass in real values. Thanks to
12737 clahey for pointing this out.
12739 2001-02-14 Havoc Pennington <hp@pobox.com>
12741 * gtk/gtkimagemenuitem.c (gtk_image_menu_item_remove): add
12742 "static" to a private function
12743 (gtk_image_menu_item_class_init): remove destroy handler,
12744 add "image" object property
12746 2001-02-13 Alexander Larsson <alla@lysator.liu.se>
12748 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region):
12749 Add a shortcut if the window and the current clip_region doesn't
12750 overlap. This is needed when there are a lot of windows in a
12751 window. The layout test in testgtk is a good test.
12753 * gdk/linux-fb/gdkwindow-fb.c:
12756 2001-02-13 Sven Neumann <sven@convergence.de>
12758 * demos/testanimation.c: replaced deprecated gtk_drawing_area_size
12760 2001-02-13 Alexander Larsson <alexl@redhat.com>
12762 * gdk/linux-fb/gdkcursor-fb.c (gdk_fb_cursor_unhide):
12763 Don't reference last_cursor if it is null. Fixes crash when rotating
12764 the screen before having moved the mouse.
12766 * gdk/linux-fb/gdkcc-fb.c: Zapp!
12768 * gdk/linux-fb/Makefile.am: Don't compile gdkcc-fb.c
12770 * gdk/linux-fb/gdkwindow-fb.c: Fix typo. width->height. Fixes redraw
12771 when using 90 or 270 degrees rotation.
12773 2001-02-12 Havoc Pennington <hp@pobox.com>
12775 * gdk/gdkpango.c (gdk_pango_get_gc): fix bug where
12776 it always set the foreground, even if we were only using
12778 (gdk_draw_layout_line_with_colors): new function, allow
12780 (gdk_draw_layout_with_colors): new function, allow override
12782 (gdk_pango_layout_line_get_clip_region): function to get the clip
12783 region for a logical text range
12784 (gdk_pango_layout_get_clip_region): get the clip region for a
12787 * gdk/x11/gdkcolor-x11.c: forward declare gdk_colormap_sync(),
12788 (gdk_colormap_new): fix call to gdk_colormap_sync() so it has
12789 the right number of arguments.
12791 * gtk/gtktextbtree.c (gtk_text_btree_node_check_consistency):
12792 enhance the function to check that node data corresponds to a
12793 view still belonging to the tree.
12795 * gtk/gtktreeview.c (gtk_tree_view_changed): we were leaking the
12797 (gtk_tree_view_inserted): ditto
12798 (gtk_tree_view_child_toggled): ditto
12800 * gtk/gtktreemodel.c (gtk_tree_path_append_index): use realloc to
12801 simplify this code.
12803 * gtk/gtkcellrenderertext.c (get_layout): fix leak of
12806 * demos/gtk-demo/main.c (load_file): Fix leak of a GString
12808 * gtk/gtkentry.c (gtk_entry_realize): Fix leak of a GdkCursor
12810 * gtk/gtkmenubar.c (gtk_menu_bar_size_request): consider toggle
12811 size in the size request
12812 (gtk_menu_bar_size_allocate): consider toggle size here
12814 * gtk/gtkimagemenuitem.h, gtkimagemenuitem.c: Menu item
12815 that displays a widget in the toggle slot
12817 * gtk/testgtk.c: test GtkImageMenuItem
12819 * gtk/Makefile.am, gtk/gtk.h: Add GtkImageMenuItem
12821 * gtk/gtkmenuitem.h: Use "gint" not "guint16" for toggle size
12822 request and allocation
12824 * gtk/gtkmenu.c (gtk_menu_size_request): use gint not guint16
12826 * gtk/gtkcheckmenuitem.c
12827 (gtk_check_menu_item_toggle_size_request): ditto
12829 Mon Feb 12 23:43:30 2001 Owen Taylor <otaylor@redhat.com>
12831 * gtk/Makefile.am (gdk_headers): Remove gdkcc.h
12834 * configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
12835 and refuse to initialize GTK+ if they fail.
12837 Mon Feb 12 15:02:07 2001 Owen Taylor <otaylor@redhat.com>
12839 * configure.in: Add check for gtk-doc version.
12841 Thu Feb 8 17:18:26 2001 Owen Taylor <otaylor@redhat.com>
12843 * gtk/gtklabel.c (gtk_label_size_request): Fix bug
12844 where the xpad/ypad was only being used on one side!
12846 2001-02-11 Tor Lillqvist <tml@iki.fi>
12848 * gdk/win32/gdkcolor-win32.c (gdk_colormap_query_color): New
12849 function, copied from X11 version.
12851 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): Eliminate
12852 DestroyCursor failures. The reason for the problem (despite the
12853 inconsistent messages from GetLastError()) was that
12854 DestroyCursor() cannot be called while a cursor is set in a
12855 window. Set the new cursor first and then destroy the old one.
12856 Thanks to jpe@archaeopteryx.com.
12858 * gdk/win32/gdkcc-win32.c: Remove.
12860 * gdk/win32/Makefile.am: Remove from here, too.
12863 * gdk/makefile.mingw.in: Update. Godbye GdkColorContext.
12866 * gtk/makefile.mingw.in: Updates.
12868 2001-02-08 Havoc Pennington <hp@redhat.com>
12870 * gtk/gtkbin.c (gtk_bin_add): better error message if you try to
12871 add a widget to a bin that already has a child.
12873 * gdk/gdkcc.h, gdk/gdkcc-x11.c: Remove GdkColorContext, #50512
12875 * docs/Changes-2.0.txt: note that GdkColorContext is gone.
12877 * gdk/x11/Makefile.am (libgdk_x11_la_SOURCES): remove gdkcc-x11.c
12879 * gdk/gdk.h: remove gdkcc.h
12881 * gdk/Makefile.am (gdk_public_h_sources): remove gdkcc.h
12883 * gtk/gtkpixmap.c (build_insensitive_pixmap): rewrite using
12884 GdkPixbuf, since the previous implementation was GdkColorContext
12887 * gtk/testgtk.c (create_pixmap): add test for insensitive GtkPixmap
12889 Thu Feb 8 19:00:00 2001 Jonathan Blandford <jrb@redhat.com>
12891 * gtk/gtktreeview.c (TREE_VIEW_VERTICAL_SEPARATOR): moved back to
12894 2001-02-08 Havoc Pennington <hp@redhat.com>
12896 * gtk/gtkstyle.c (get_darkened_gc): let's darken colors, not
12899 2001-02-08 Havoc Pennington <hp@redhat.com>
12901 * gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
12904 * demos/gtk-demo/main.c (create_tree): adjust to changes in text
12907 * demos/pixbuf-demo.c (timeout): remove deprecated
12910 * demos/testpixbuf-save.c (main): remove deprecated
12911 gtk_drawing_area_size
12913 * gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
12914 buttons even if the model isn't setup. gtk_tree_view_check_dirty()
12915 at the start of the allocation.
12916 (gtk_tree_view_check_dirty): handle column->button == NULL, handle
12917 unsetup or NULL model.
12919 * gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
12920 even/odd/sorted cells in the tree view.
12922 * gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
12925 * gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
12926 backgrounds with draw_flat_box using different detail for even/odd
12929 * gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
12930 row, so we can draw the alternating colors thing
12932 * gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
12933 property from a synonym property, notify for the synonym.
12934 Also, nuke the background_gdk_set and foreground_gdk_set synonyms
12935 (gtk_text_tag_get_property): Always return the font, even if
12936 all its fields aren't set
12938 * gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
12939 store the attr list; it leaves us with no way to change attributes
12940 in _render according to the render flags, and no way to implement
12941 get_property. Instead store all the specific text attributes.
12942 Separate whether an attribute is enabled from its value. Sync all
12943 properties with GtkTextTag, make them all consistent, etc.
12945 * gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
12946 renderers can highlight the sort row/column
12948 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
12949 accessor functions to get values; this has the side effect of
12950 showing up which accessor functions were missing. Added those.
12952 * gtk/gtktreeviewcolumn.h: Replace set_justification with
12953 set_alignment, to be consistent with GtkLabel, GtkMisc
12955 * gtk/gtktreeviewcolumn.c: Added code to display sort indicator
12958 * gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
12960 * gtk/gtktreesortable.h: updates in here
12962 2001-02-07 Sven Neumann <sven@convergence.de>
12964 * gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
12965 pango dimensions after painting the background. We used to draw
12966 gigantic flat boxes here.
12968 Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
12970 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax
12971 error introduced with earlier commit) (pointed out by
12974 Mon Feb 5 12:25:06 2001 Owen Taylor <otaylor@redhat.com>
12976 * gtk/gtkbutton.c: Remove calls to gtk_grab_add/gtk_grab_remove,
12977 which are no longer necessary.
12979 Mon Feb 5 13:22:54 GMT 2001 Tony Gale <gale@gtk.org>
12981 * docs/faq/gtk-faq.sgml: s/MISK/MISC/
12983 2001-02-04 Tor Lillqvist <tml@iki.fi>
12986 * gdk/win32/gdkim-win32.c (gdk_ic_attr_new, gdk_ic_attr_destroy):
12987 Provide dummy implementations.
12989 Sun Feb 4 07:55:17 2001 Tim Janik <timj@gtk.org>
12991 * gtk/gtksignal.h: removed gtk_signal_init() compat define.
12993 * gtk/gtktypeutils.[hc]: gtk_tpye_init() take an additional argument
12994 GTypeDebugFlags debug_flags and pass it on to g_type_init ();
12995 deprecated this function.
12997 * gdk/gdk.c (gdk_init_check): call g_type_init () with 0 as
13000 Sun Feb 4 07:45:45 2001 Tim Janik <timj@gtk.org>
13002 * gtk/gtkdebug.h: nuke GTK_DEBUG_OBJECTS and GTK_DEBUG_SIGNALS.
13004 2001-02-03 Havoc Pennington <hp@pobox.com>
13006 * gtk/gtktextbtree.c (_gtk_text_btree_tag): Fix bug reported by
13007 Mikael Hermansson with patch from Mikael (if there was a toggle
13008 start one after the first character in the range, this function
13009 was broken). Bug #50380
13011 Sat Feb 3 11:28:03 2001 Owen Taylor <otaylor@redhat.com>
13013 * configure.in: Remove confusing comment about X11.
13015 Fri Feb 2 19:21:23 2001 Owen Taylor <otaylor@redhat.com>
13017 * gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
13018 regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
13020 Fri Feb 2 18:31:54 2001 Owen Taylor <otaylor@redhat.com>
13022 * gdk/x11/gdkimage-x11.c: Remove definition of _XOPEN_SOURCE, since
13023 it breaks things on BSD. If you want to compile GTK+ with
13024 -ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
13025 when configuring, since GTK+ simply can't be "pure ANSI"
13026 in the header files it uses. (#8170, Greg Hudson)
13028 2001-02-02 Havoc Pennington <hp@redhat.com>
13030 * gtk/gtkwindow.c: docs
13032 * gtk/gtkwidget.c: docs
13033 (gtk_widget_set_colormap): add a reference to the colormap
13034 (gtk_widget_get_default_colormap): add a reference to the colormap
13036 * gtk/gtktextbtree.c (gtk_text_mark_set_visible): docs
13038 * gtk/gtktextiter.c: docs
13040 * gtk/gtkmain.c (gtk_propagate_event): docs
13042 * gtk/gtkpaned.c (gtk_paned_get_position): docs
13043 (gtk_paned_set_position): docs
13045 * gtk/gtktreesortable.h (struct _GtkTreeSortableIface): Initial
13046 sort interface, no implementation yet.
13048 * demos/testpixbuf.c (new_testrgb_window): replace
13049 gtk_drawing_area_size() with gtk_widget_set_usize()
13051 * demos/testpixbuf-drawable.c (main): ditto
13053 * gtk/testgtk.c: remove use of GtkStatusbarMsg
13055 * gtk/gtktextbuffer.c: docs
13057 * gtk/gtkstock.c: docs
13059 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_shadow_type): docs
13061 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): docs
13063 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): fix docs
13065 * gtk/gtkimage.c: add some docs in here
13066 (gtk_image_size_request): change name of
13067 gtk_widget_render_stock_icon
13068 (gtk_image_get_icon_set): don't dup returned string
13069 (gtk_image_get_icon_set): don't dup returned string
13071 * gtk/gtkwidget.c (gtk_widget_render_icon): rename from
13072 gtk_widget_render_stock_icon(), more consistent with gtkstyle.h
13073 and gtkiconfactory.h functions
13075 * gtk/gtkiconfactory.c: add some docs in here
13077 * gtk/gtkmain.c (gtk_get_default_language): document
13078 (gtk_get_current_event): document
13079 (gtk_get_current_event_state): document
13080 (gtk_get_event_widget): document
13082 * gtk/gtkentry.c (gtk_entry_set_invisible_char): document
13084 * gtk/gtkcontainer.c: Add some documentation
13085 (gtk_container_add): give a more explanatory warning on adding an
13086 already-parented widget, this is kind of a FAQ and also a common
13087 typo that's easier to debug with a nice warning
13089 * gtk/gtkcellrenderertoggle.c
13090 (gtk_cell_renderer_toggle_get_active): remove, I was on crack
13091 adding this, it's useless
13092 (gtk_cell_renderer_toggle_set_active): remove
13093 (gtk_cell_renderer_toggle_get_radio): add
13095 * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): don't allow
13096 the NULL cell renderer, that doesn't make any sense to me.
13098 * demos/gtk-demo/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED,
13099 demo code should never use deprecated features.
13101 * demos/Makefile.am (INCLUDES): -DGTK_DISABLE_DEPRECATED, demo
13102 code should never use deprecated features.
13104 * gtk/gtkwidget.h: Mark gtk_widget_draw, gtk_widget_queue_clear,
13105 gtk_widget_queue_clear_area deprecated
13107 * gtk/gtklayout.h: mark gtk_layout_freeze/gtk_layout_thaw
13110 * gtk/gtklabel.h: mark gtk_label_get() deprecated
13112 * gtk/gtkimage.h: mark the legacy GtkImage functions that took
13113 a GdkImage deprecated, replaced by new consistently-named
13116 * gtk/gtkmain.h: Mark gtk_exit() deprecated
13118 * gtk/gtkdrawingarea.h: mark gtk_drawing_area_size deprecated
13120 * gtk/gtkstyle.h: mark gtk_draw_string, gtk_paint_string
13123 * gtk/gtkstatusbar.h: Move GtkStatusbarMsg to the .c file,
13124 so it won't appear in docs and confuse people.
13126 * gtk/gtkprogressbar.h: Mark all the old methods deprecated
13128 * gtk/gtkprogress.h: Mark all methods deprecated, mark the cast
13129 macros deprecated. (can't mark the type itself deprecated, since
13130 GtkProgressBar is not deprecated and we need the type decl to use
13133 * gtk/gtkpixmap.h: Mark deprecated
13135 * gtk/gtkoldeditable.h: Mark deprecated
13137 * gtk/gtklist.h: Mark deprecated
13139 * gtk/gtklabel.h: delete "GtkLabelWord" typedef, not used
13140 for anything anymore.
13142 * gtk/gtkctree.h: Mark deprecated
13144 * gtk/gtkclist.h: Mark deprecated
13146 * gtk/gtkpreview.h: Mark deprecated
13148 * gtk/gtkpacker.h: Mark deprecated
13150 * gtk/gtktipsquery.h: Mark deprecated
13152 * gtk/gtkinputdialog.h: Add comment that it will move out of GTK
13154 * gtk/gtkvruler.h: Add comment that it will move out of GTK
13156 * gtk/gtkhruler.h: Add comment that it will move out of GTK
13158 * gtk/gtkruler.h: Add comment that it will move out of GTK
13160 * gtk/gtkgamma.h: Add comment that it will move out of GTK
13162 * gtk/gtkcurve.h: Add comment that it will move out of GTK
13164 Fri Feb 2 17:16:09 2001 Owen Taylor <otaylor@redhat.com>
13166 * gdk/x11/gdkcolor-x11.c (gdk_colormap_sync): Make
13167 gdk_colormap_sync private since it was never exported
13170 * gdk/x11/gdkcolor-x11.c (gdk_colormap_new): Fill in
13171 colormap->colors[] for StaticGray, StaticColor colormaps.
13173 * gdk/gdkpixbuf-drawable.c: Fix problems where image->bpp
13174 was being used as if it was image->bits_per_pixel.
13176 * gdk/gdkimage.h, gdk/x11/gdkimage-x11.c: Save the bits-per-pixel
13177 for the image in the GdkImage structure since it isn't
13178 reconstructable, and we need it to handle packed types
13180 * gdk/win32/gdkimage-win32.c: Set image->bits_per_pixel. (I'm making
13181 the assumption that on Win32 image->bits_per_pixel == image->depth,
13184 * gdk/linux-fb/gdkimage-fb.c: Set image->bits_per_pixel.
13186 * gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
13187 warning message if no converter can be found.
13189 Fri Feb 2 15:09:51 2001 Owen Taylor <otaylor@redhat.com>
13191 * gtk/fnmatch.c (FOLD): Fix problem with passing signed
13192 chars to isupper() / tolower(). (#567)
13194 * examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
13195 to clear up 64-bit warnings. (#567)
13197 Fri Feb 2 12:26:50 2001 Owen Taylor <otaylor@redhat.com>
13199 * gtk/gtkrc.c (gtk_rc_add_initial_default_files): Get rid of
13200 a bunch of g_strdup_printf("%s%s") in favor of g_strconcat().
13202 * gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
13203 since some people set $(libdir) separately. (#1290, David Kaelbling)
13205 Thu Feb 1 18:25:46 2001 Owen Taylor <otaylor@redhat.com>
13207 * gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
13208 defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
13209 MAXPATHLEN, but the code here depends on a fixed value.)
13212 Wed Jan 31 22:01:04 2001 Owen Taylor <otaylor@redhat.com>
13214 * gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
13215 where child == NULL and handle_position == RIGHT or BOTTOM. (#8041g)
13217 Wed Jan 31 21:20:39 2001 Owen Taylor <otaylor@redhat.com>
13219 * gtk/gtkctree.c (real_tree_move): If the node being moved isn't
13220 viewable there is no way that moving the node will cause the
13221 focus row to become not viewable, so omit check on the visibility
13222 of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
13224 Wed Jan 31 20:38:17 2001 Owen Taylor <otaylor@redhat.com>
13226 * gtk/gtkentry.c (gtk_entry_commit_cb): Delete the current
13227 selection before inserting new text.
13229 Wed Jan 31 18:49:33 2001 Owen Taylor <otaylor@redhat.com>
13231 * gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
13232 Make the sensitivity of the reparented child track that of
13233 the original parent menu item. (#34218, David Hodson)
13235 * gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
13236 the case where the current item is destroyed properly.
13238 * gtk/gtkoptionmenu.c: Some additional code cleanups and fix
13239 some edge cases with child-less menuitems.
13241 Wed Jan 31 17:16:13 2001 Owen Taylor <otaylor@redhat.com>
13243 * gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
13244 key pop down window. (#12074, Jon K Hellan)
13246 Wed Jan 31 16:21:42 2001 Owen Taylor <otaylor@redhat.com>
13248 * gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
13249 toggling of rows off in BROWSE or EXTENDED mode. (#12072, Jon K Hellan)
13250 The solution here isn't perfect - you get an extraneous
13251 emission of "toggle", which could conceivably confuse an app,
13252 but better than the current situation. LXR search seems to
13253 indicate that no apps in GNOME CVS connect to "toggle".
13255 Wed Jan 31 15:46:13 2001 Owen Taylor <otaylor@redhat.com>
13257 * gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkcompat.h from
13258 gtk_public_h_sources to directly here to avoid warning when
13259 building srcdir != builddir. (#9656)
13261 Tue Jan 30 19:49:02 2001 Owen Taylor <otaylor@redhat.com>
13263 * gtk/gtkrange.c: Patch from Kipp Hickman to make the event
13264 handlers in gtkrange.c return the proper values (TRUE == handled)
13267 This is just the tip of the iceberg, but gtkrange.c is the
13268 most common place where the propagation is problematical,
13269 and also a place where it is almost certainly safe to change
13270 this in the stable branch.
13272 (You don't want right click popups on a range control or anything...)
13274 Tue Jan 30 18:57:59 2001 Owen Taylor <otaylor@redhat.com>
13276 * gtk/gtktext.c (clear_focus_area): We need to clear the focus
13277 area on focus out, even if a background pixmap isn't set.
13280 Tue Jan 30 18:24:10 2001 Owen Taylor <otaylor@redhat.com>
13282 * gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
13283 to deal with setting the shape properly when scrolling arrows are
13284 turned on, but not visible because there is sufficient space.
13287 Tue Jan 30 16:39:25 2001 Owen Taylor <otaylor@redhat.com>
13289 * gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
13290 items with submenus, destroy the item along with the submenu.
13291 (#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
13294 * gtk/testgtk.c (menu_items): Add a dummy branch that we delete
13297 Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
13299 * gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
13300 the focus widget sometimes wasn't drawn with the default if there
13301 was no default widget.
13303 * gtk/gtkstyle.c (gtk_style_real_unrealize): free colors,
13304 unreference pixmaps.
13306 * gtk/gtkstyle.c (gtk_style_realize): Reference colormap
13307 for some extra safety.
13309 Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
13311 * gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
13312 the text of a cell to the old pointer value better, by
13313 copying the new text before freeing the old text. Some code
13314 cleanup. (#8079, Karl Nelson)
13316 Mon Jan 29 16:50:19 2001 Owen Taylor <otaylor@redhat.com>
13318 * gtk/gtklabel.[ch] gtk/gtkframe.[ch]: Make gtk_label_get_text()
13319 gtk_frame_get_label() non strdup'ing, and G_CONST_RETURN.
13321 Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
13323 * gtk/gtkmenu.c (gtk_menu_remove): When removing an
13324 item from a menu, check to see if it matches
13325 menu->old_active_menu_item, and if so, unref and clear
13326 old_active_menu_item (Patch from Pavel Cisler)
13328 * gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
13329 menu_shell->active_menu_item, if it is the child being
13330 removed. (Patch based on that of Gene Ragan, #50337)
13332 2001-01-31 Alexander Larsson <alla@lysator.liu.se>
13334 * gdk/linux-fb/gdkselection-fb.c:
13335 * gdk/linux-fb/gdkcolor-fb.c:
13336 * gdk/linux-fb/gdkdrawable-fb2.c:
13337 * gdk/linux-fb/gdkfont-fb.c:
13338 * gdk/linux-fb/gdkim-fb.c:
13339 * gdk/linux-fb/gdkinput.c:
13340 * gdk/linux-fb/gdkkeyboard-fb.c:
13341 * gdk/linux-fb/gdkmain-fb.c:
13342 * gdk/linux-fb/gdkrender-fb.c:
13343 A bunch of whitespace cleanup.
13345 2001-01-30 Havoc Pennington <hp@pobox.com>
13347 * gtk/gtktreeitem.h, gtk/gtktree.h, gtk/gtktext.h: bracket in
13348 #ifdef GTK_ENABLE_BROKEN.
13350 * gtk/gtktreeitem.c, gtk/gtktree.c, gtk/gtktext.c: #define
13351 GTK_ENABLE_BROKEN just before including the broken headers.
13353 * gtk/gtktypeutils.c: #define GTK_ENABLE_BROKEN, so we can get the
13354 deprecated types registered.
13356 * gtk/testgtk.c, gtk/testselection.c: #define GTK_ENABLE_BROKEN,
13357 we have to test the broken stuff.
13359 * docs/Changes-2.0.txt: explain GTK_ENABLE_BROKEN
13361 2001-01-30 Havoc Pennington <hp@redhat.com>
13363 * gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
13364 here where prev pointer was set to the wrong thing
13366 * gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
13367 (gtk_tree_path_is_descendant): new function
13369 * gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
13371 (gtk_list_store_get_iter): don't modify iter if we can't get the
13374 * gtk/gtkliststore.h (struct _GtkListStore): cache the length
13376 * gtk/gtktreednd.h: add virtual function row_drop_possible() to
13379 * gtk/gtktreestore.c (copy_node_data): fix varargs type error that
13380 was causing segfault
13382 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
13385 * gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
13387 * gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
13389 (gtk_list_store_iter_children): ditto
13390 (gtk_list_store_iter_nth_child): ditto
13391 (gtk_list_store_iter_nth_child): ditto
13392 (gtk_list_store_iter_parent): ditto
13394 * gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
13395 on iter->user_data != NULL instead of silently accepting it.
13396 (gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
13397 we are returning TRUE.
13398 (gtk_tree_store_iter_children): ditto
13399 (gtk_tree_store_iter_nth_child): ditto
13400 (gtk_tree_store_iter_parent): ditto
13401 (gtk_tree_store_insert): remove handling of parent->user_data ==
13402 NULL, replace with parent == NULL
13404 * gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
13405 and a comment explaining things
13407 * gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
13408 interface support to GtkTreeStore.
13410 * gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
13411 FALSE if no prev, fix
13413 * gtk/gtktreeview.c (set_source_row): use a row reference
13414 (set_dest_row): use a row reference
13416 Sat Jan 27 15:52:02 2001 Jonathan Blandford <jrb@redhat.com>
13418 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
13419 stupid typo pointed out by Kristian Rietveld <kristian@planet.nl>.
13420 (gtk_tree_selection_select_iter): The same as above.
13422 2001-01-26 Havoc Pennington <hp@redhat.com>
13424 * gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
13425 which holds a handle to a specific row (particular set of values
13426 in the model, i.e. pointer-identity row).
13428 * gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
13429 use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
13430 Still need to use it for the src/dest row saved on the drag context.
13432 2001-01-26 Havoc Pennington <hp@redhat.com>
13434 * gtk/gtktextlayout.c (convert_color): adapt to handle PangoColor
13436 * gtk/gtktreeview.c (gtk_tree_view_widget_to_tree_coords): fix to
13437 not offset by TREE_VIEW_HEADER_HEIGHT
13438 (gtk_tree_view_tree_to_widget_coords): fix to not offset by
13439 TREE_VIEW_HEADER_HEIGHT
13441 * configure.in (included_loaders): for me, --with-included-loaders
13442 generates the error "the specified loader yes does not exist",
13443 i.e. the arg defaults to "yes", so change test for value ""
13444 to test for value "yes", and include all loaders in that case.
13446 * gtk/gtkrbtree.c (_gtk_rbtree_get_depth): new function
13448 * gtk/gtktreeview.c (gtk_tree_view_get_cell_rect): fix to properly
13449 handle TREE_VIEW_VERTICAL_SEPARATOR
13450 (gtk_tree_view_bin_expose): fix to consider the row offset as
13451 pointing halfway into vertical separator.
13452 (gtk_tree_view_draw_node_focus_rect): ditto
13454 * gtk/gtkdebug.h, gtk/gtkmain.c (gtk_init_check): Add
13455 --gtk-debug=updates, which causes gdk_window_set_debug_updates
13456 (TRUE) to be called.
13458 * gdk/gdkwindow.c (gdk_window_set_debug_updates): Allow enabling a
13459 debug mode where the invalid region is colored in on invalidate,
13460 so you can see the flicker and know whether your redraw code is
13463 * gtk/gtktreeview.c (gtk_tree_view_queue_draw_node): Work in
13464 tree window coordinates (clip rect is in tree window coords)
13466 * gtk/Makefile.am: add gtktreednd.[hc]
13468 * gtk/gtkliststore.c: implement gtktreednd interfaces.
13470 * gtk/gtktreednd.c, gtk/gtktreednd.h: New interface to support
13471 drag-and-drop data operations on a model (so we can set up tree
13472 drag-and-drop automatically)
13474 * gtk/testgtk.c: Add a window to change sensitivity in the
13475 GtkLabel test; add a way to change the entry frame in GtkEntry
13478 * gtk/gtkentry.c (gtk_entry_set_has_frame):
13479 (gtk_entry_get_has_frame): new functions to remove the frame
13481 (gtk_entry_size_request): shrink requisition if no frame
13482 (gtk_entry_draw_focus): don't draw frame if no frame
13484 * gtk/gtkstyle.c (gtk_default_draw_check): draw custom look for
13485 checks inside a cell renderer
13486 (gtk_default_draw_option): ditto for options
13488 * gtk/gtktreeviewcolumn.c (update_button_contents): add/remove
13489 children from the alignment, not the button
13490 (gtk_tree_view_column_init): ref/sink the column, to emulate
13491 GObject refcounting.
13493 * gtk/gtkcellrenderer.c (gtk_cell_renderer_init): ref/sink
13495 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
13496 Use theme functions to draw the toggles
13498 * gdk/gdkpango.c (gdk_pango_get_gc): use GdkRGB to alloc colors
13500 * gdk/gdkpango.h, gdk/gdkpango.c: Add GdkPangoAttrStipple and
13501 GdkPangoAttrEmbossed to use in rendering insensitive text
13503 * gdk/gdkpango.c (gdk_draw_layout_line): render new properties
13505 * gtk/gtkstyle.c (gtk_default_draw_layout): handle sensitivity
13506 using new GDK features
13508 2001-01-24 Alexander Larsson <alexl@redhat.com>
13511 Splitted gtk_image_clear into gtk_image_clear() and
13512 gtk_image_reset(). Call gtk_image_clear() in ::destroy
13515 * gtk/gtklabel.c (set_markup):
13518 * gtk/gtktextlayout.c:
13519 Always free display->shaped_objects.
13521 * gtk/testgtk.c (create_clist):
13522 Don't leak custom style.
13524 2001-01-23 Alexander Larsson <alexl@redhat.com>
13526 * gtk/gtkcolorsel.c (grab_color_at_mouse):
13527 Don't leak image. Simplify using gdk_colormap_query_color().
13528 (gtk_color_selection_init): Don't leak dropper_pixmap and mask.
13530 * linux-fb/gdkcolor-fb.c:
13531 Implemented gdk_colormap_query_color.
13533 2001-01-23 Alexander Larsson <alexl@redhat.com>
13535 * linux-fb/gdkcursor-fb.c:
13536 Don't leak built-in cursors.
13538 * linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_polygon):
13539 Don't leak tmp_points.
13541 * linux-fb/gdkfont-fb.c (gdk_font_from_description):
13542 Don't modify desc. Don't leak font if the PangoFont
13545 * linux-fb/gdkgc-fb.c (gdk_fb_gc_finalize):
13548 * linux-fb/gdkkeyboard-fb.c (gdk_fb_handle_key):
13551 2001-01-20 Havoc Pennington <hp@pobox.com>
13553 * gtk/gtktexttag.h (enum GtkWrapMode): rename member fields
13554 from GTK_WRAPMODE_WORD to GTK_WRAP_WORD, etc., seems nicer to
13557 2001-01-22 Havoc Pennington <hp@redhat.com>
13559 * demos/testanimation.c: fix to reflect gdk-pixbuf changes
13561 * demos/testpixbuf.c: fix to reflect gdk-pixbuf changes
13563 * gtk/gdk-pixbuf-loader.c, gtk/gdk-pixbuf-loader.h:
13564 Remove, move back to gdk-pixbuf
13566 * gtk/gtktextiter.c, gtk/gtktextiter.h: add sentence equivalents
13567 to all the word functions
13569 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): return
13570 before doing anything on NULL layout or if we don't have the focus
13572 * gtk/testtext.c (fill_example_buffer): "justification"
13574 * gtk/gtktexttag.h, gtk/gtktexttag.c: change the tag attribute
13575 to be called "justification" not "justify"
13577 * demos/gtk-demo/textview.c (create_tags): "justification"
13579 * gtk/gtktextlayout.c (set_para_values): Handle char-wise wrapping
13581 2001-01-22 Alexander Larsson <alexl@redhat.com>
13583 * gdk/gdkwindow.c (gdk_window_invalidate_region):
13584 Don't leak visible_region. Use visible_region instead of region.
13586 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
13587 Don't do extra gdk_drawable_ref(). This is not X.
13588 (gdk_fb_window_find_focus, gdk_fb_change_focus): make sure
13589 gdk_fb_focused_window is ref:ed.
13590 (gdk_fb_window_send_crossing_events): Watch out for destroyed
13593 2001-01-22 Alexander Larsson <alexl@redhat.com>
13595 * gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
13596 Don't leak the PangoFontDescriptor.
13598 Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
13600 * gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
13602 (gtk_tree_view_scroll_to_cell): Make work when not realized.
13603 (gtk_tree_view_realize): add scroll_to support
13604 (gtk_tree_view_finalize): add a finalize method. Populate.
13605 (gtk_tree_view_insert_column): ref and sink the column.
13606 (gtk_tree_view_append_column): ref and sink the column.
13607 (gtk_tree_view_queue_draw_node): New function to handle redrawing
13608 individual nodes. Should make the code much more efficient, if
13611 2001-01-19 Havoc Pennington <hp@redhat.com>
13613 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
13614 byte_offset variable was being used to mean both "offset into
13615 layout" and "offset into buffer line" which was no longer true
13616 with addition of preedit string; fix
13618 2001-01-19 Havoc Pennington <hp@redhat.com>
13620 * demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
13622 * gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
13625 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
13628 * gtk/gtktreeview.c (gtk_tree_view_move_to): rename
13629 scroll_to_cell, matches TextView scroll functions better
13630 (gtk_tree_view_tree_to_widget_coords): new function
13631 (gtk_tree_view_widget_to_tree_coords): new function
13632 (gtk_tree_view_get_visible_rect): new function
13633 (gtk_tree_view_get_path_at_pos): accept negative coordinates
13634 (gtk_tree_view_draw_node_focus_rect): new function moved from
13635 draw_focus, also, use width of bin_window as width of the focus
13637 (gtk_tree_view_expand_row): fix bug where it didn't recognize
13638 already-expanded rows
13639 (gtk_tree_view_get_cell_rect): new function
13640 (gtk_tree_view_get_path_at_pos): return the click position
13641 relative to the passed-in cell
13642 (gtk_tree_view_set_expander_column): new function
13644 * configure.in: remove gtk-config-2.0 chmod
13646 * gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
13647 and properly handle drags with targets we don't understand
13648 (gtk_text_view_drag_end): don't stop scrolling, the source isn't
13650 (gtk_text_view_drag_drop): stop scrolling here though, and set the
13653 * gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
13655 (gtk_drag_dest_get_target_list): new function
13656 (gtk_drag_dest_set_target_list): new function
13658 * gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
13660 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
13661 related to drag-and-drop
13663 2001-01-19 Alexander Larsson <alexl@redhat.com>
13665 * gdk/linux-fb/gdkprivate-fb.h:
13666 Define EMULATE_GDKFONT.
13667 Add extra pango_font stuff to GfkFontPrivate.
13669 * gdk/linux-fb/gdkdrawable-fb2.c:
13670 * gdk/linux-fb/gdkfont-fb.c:
13671 If EMULATE_GDKFONT defined, implement a slow lame GdkFont
13672 emulation using PangoFont.
13674 2001-01-17 Havoc Pennington <hp@pobox.com>
13676 * gtk/gtkprogressbar.c, gtk/gtkprogressbar.h: Add "getters" for
13677 all the non-deprecated set_foo functions. Added missing object
13678 properties, and added g_object_notify() to setters.
13681 2001-01-18 Tor Lillqvist <tml@iki.fi>
13684 * gtk/gtkrc.c: (Win32) Use the new
13685 g_win32_get_package_installation_(sub)directory() functions.
13687 * config.h.win32.in: New file.
13689 * config.h.win32: Removed.
13691 * configure.in: Output config.h.win32.
13693 * Makefile.am: Add it to EXTRA_DIST.
13695 * gtk/gtk.def: Update.
13697 Wed Jan 17 16:22:54 2001 Owen Taylor <otaylor@redhat.com>
13699 * gtk/gtklabel.c (gtk_label_size_request): Set the
13700 attributes onto the PangoLayout even if they are newly
13701 created from label->pattern.
13703 Tue Jan 9 11:20:48 2001 Owen Taylor <otaylor@redhat.com>
13705 * gdk/x11/gdkdnd-x11.c: Remove unused variable.
13707 * gtk/gtkdnd.c: Encapsulate storing and retrieving info
13708 structures in functions. Fixes bug where gtk_dataset_*
13709 was accidentally still being used in one place, causing
13710 every dest side event to be treated independently.
13712 * gtk/gtkdnd.c: Remove last vestages of handling
13713 ::draw (fixes warning)
13715 * gtk/gtkentry.[ch]: Add drag and drop support.
13717 * gtk/gtkdnd.[ch] gtk/gtktextview.c gtk/gtkentry.c: Add
13718 new function gtk_check_drag_threshhold() for checking
13719 to check if (dx,dy) has exceeded the threshhold for starting
13720 a drag and use it everywhere.
13722 Mon Jan 8 11:58:05 2001 Owen Taylor <otaylor@redhat.com>
13724 * gtk+-2.0.pc.in gdk-pixbuf-2.0.pc.in (Cflags): Remove -I${includedir},
13725 add -I{includedir}/gtk-2.0.
13727 * gtk/gtktreeview.[ch] gtktreemodelsort.[ch] gtknotebook.c
13728 gdk/gdk-pixbuf.h: Doc fixups.
13730 * gtk/gtkobject.h: Remove trailing , from enum
13732 2001-01-17 Alexander Larsson <alexl@redhat.com>
13734 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_shadow_fb_draw_arc):
13735 Doh! Mixed up x and y.
13737 * gdk/linux-fb/gdkglobals-fb.c:
13738 Removed gdk_fb_pointer_grab_window_events,
13739 added _gdk_fb_pointer_grab_owner_events and
13740 _gdk_fb_keyboard_grab_owner_events.
13742 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab):
13743 Set all button mask if GDK_BUTTON_MOTION_MASK set. Send
13744 crossing events before grabbing. Set _gdk_fb_pointer_grab_owner_events.
13745 (gdk_fb_pointer_ungrab): Unset _gdk_fb_pointer_grab_owner_events
13746 Send crossing events after ungrab finished.
13747 (gdk_keyboard_grab): Set ..._owner_events
13748 (type_masks): Move out of function.
13749 (gdk_fb_other_event_window, gdk_fb_pointer_event_window,
13750 gdk_fb_keyboard_event_window): New functions, return the
13751 window an event should be targeted at. Handles grabs and
13752 event propagation. Can return NULL.
13753 (gdk_event_make): Remove event_mask checking. Now always
13756 * gdk/linux-fb/gdkkeyboard-fb.c:
13757 * gdk/linux-fb/gdkproperty-fb.c:
13758 * gdk/linux-fb/gdkselection-fb.c:
13759 Use new event_window/gdk_event_make() behaviour.
13761 * gdk/linux-fb/gdkmouse-fb.c:
13762 Use new event_window/gdk_event_make() behaviour.
13763 Only send motion events if in the same window.
13764 If grabbed, use cursor from window if sibling of grabbed
13765 window, and cursor from grabbed window otherwise.
13767 * gdk/linux-fb/gdkprivate-fb.h:
13768 Update gdk_fb_window_send_crossing_events, gdk_event_make
13769 and grab varaible declarations. Add gdk_fb_*_event_window().
13771 * gdk/linux-fb/gdkwindow-fb.c:
13772 Use new event_window/gdk_event_make() behaviour.
13773 Keep correct track of focus window.
13774 (gdk_window_set_events): Set all specific button motion masks
13775 if GDK_BUTTON_MOTION_MASK set.
13777 * gtk/gtkdnd.c (gtk_drag_update):
13778 Free info->last_event if gdk_drag_motion returned FALSE.
13780 2001-01-16 Tor Lillqvist <tml@iki.fi>
13782 * gdk/win32/gdkwindow-win32.c (gdk_window_show, gdk_window_hide):
13783 Eliminate redraws when input-only windows are shown or
13784 hidden. Thanks to jpe@archaeopteryx.com.
13786 Tue Jan 16 13:13:13 GMT 2001 Tony Gale <gale@gtk.org>
13788 * docs/faq/gtk-faq.sgml: FAQ update:
13789 - Update to bugzilla
13790 - Add GTK+ and security/SUID/SGID
13793 2001-01-16 Alexander Larsson <alla@lysator.liu.se>
13795 * gdk/linux-fb/gdkdnd-fb.c:
13798 2001-01-15 Havoc Pennington <hp@pobox.com>
13800 * tests/testtreeview.c: add test stuff for CellRendererToggle
13802 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_model): add this
13805 * gtk/gtkcellrenderertoggle.c: distinguish different event types,
13806 only toggle on button press (would do release like GtkButton, but
13807 we'd need implicit grab code for treeview cells)
13809 2001-01-16 Tor Lillqvist <tml@iki.fi>
13811 * gdk/win32/gdkvisual-win32.c: Include <stdlib.h> for getenv().
13813 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't use
13814 GDK_COLORMAP_PRIVATE_DATA on a potentially NULL GdkColormap.
13816 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Adapt calls
13817 to g_{locale,filename}_{to,from}_utf8 to match current API.
13819 * gtk/makefile.msc.in (gtk_OBJECTS)
13820 * gtk/makefile.mingw.in (gtk_OBJECTS): Add gtkwindow-decorate.
13822 * gtk/gtk.def: Update.
13824 2001-01-15 Tor Lillqvist <tml@iki.fi>
13826 * gdk/win32/gdkevents-win32.c (synthesize_crossing_events): New
13827 implementaion that more closely mimics the events that an X server
13828 would generate. Especially, properly generate GDK_NOTIFY_VIRTUAL and
13829 GDK_NOTIFY_NONLINEAR_VIRTUAL crossing events. This makes buttons
13830 with nested preview widgets, for instance, more responsive when
13831 you move the mouse quickly into them.
13832 (find_window_for_pointer_event): Make it actually compile.
13833 (gdk_event_translate): Set send_event to the value of
13834 InSendMessage (). This doesn't really mean the same as X11's
13835 send_event flag, but is close enough, says jpe@archaeopteryx.com
13837 2001-01-15 Alexander Larsson <alexl@redhat.com>
13839 * gdk/linux-fb/gdkdnd-fb.c:
13840 Implemented drag and drop.
13841 Seems to be mostly working. I sometimes get an assert from gtkdnd.c:2664
13842 when it tries to free and then copy the same event (info->last_event).
13843 I am not sure about why this happens, but will continue looking.
13845 2001-01-15 Alexander Larsson <alexl@redhat.com>
13847 * gdk/linux-fb/gdkwindow-fb.c:
13848 Use gdk_window_invalidate_rect instead of
13849 gdk_window_invalidate_rect_clear to minimise flashing.
13850 When hiding windows you need to clear the root window though.
13852 2001-01-15 Alexander Larsson <alexl@redhat.com>
13854 * gdk/linux-fb/gdkdrawable-fb2.c:
13855 For optization, add an full_shapes argument to gdk_fb_clip_region.
13856 If this is false, only the cliprects of the shapes are used.
13858 * gdk/linux-fb/gdkprivate-fb.h:
13859 Export gdk_fb_window_peek_shape.
13860 Add full_shapes to gdk_fb_clip_region.
13862 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
13863 When moving a window, don't clear everything under the it, just the
13864 root window. Makes stuff faster and flash less.
13865 (gdk_window_get_pointer): Correctly handle offseted shapes, due to
13866 USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
13867 offset of the shape.
13870 2001-01-12 Havoc Pennington <hp@redhat.com>
13872 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): offset the
13873 current invalid region, fixes redraw bug while scrolling the
13876 * gtk/gtktextview.c, gtk/gtktextview.h:
13877 Rearrange the scrolling/validation/etc. code in a major way,
13878 so it seems to make sense to me. Probably isn't genuinely that
13879 much better, but...
13881 * gtk/gtktexttag.c (set_fg_color): fix name of property used for
13884 * gtk/gtktextmark.c (gtk_text_mark_get_left_gravity): new function
13886 2001-01-12 Alexander Larsson <alla@lysator.liu.se>
13888 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
13889 Hide mouse pointer while rotation. Show it afterwards.
13891 2001-01-12 Alexander Larsson <alexl@redhat.com>
13893 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
13894 windows in consideration when generating clip region.
13896 * gdk/linux-fb/gdkfb.h:
13897 Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
13899 * gdk/linux-fb/gdkprivate-fb.h:
13900 Add shape to GdkWindowFBDatat.
13901 exported gdk_fb_window_get_abs_shape().
13902 removed gdk_fb_draw_lines declaration.
13904 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
13905 Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
13906 send focus changes when there is a grabbed window.
13907 (gdk_window_get_pointer): Handle shaped windows.
13908 (gdk_fb_region_create_from_bitmap): Convert bitmap to region.
13909 (gdk_fb_window_peek_shape): Returns the shape for a window,
13910 handles GDK_FB_USE_CHILD_SHAPE.
13911 (gdk_fb_window_get_abs_shape): Returns the shape of the window,
13912 offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
13913 (gdk_window_shape_combine_mask): Implement.
13915 * gtk/gtkwindow-decorate.c:
13916 HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
13917 setting the shape of a window makes the window transparent.
13919 2001-01-11 Havoc Pennington <hp@redhat.com>
13921 * gtk/gtktreemodelsimple.h: Oops, broke some macros
13923 2001-01-10 Havoc Pennington <hp@redhat.com>
13925 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clear_attributes):
13926 add this function, bug 40251
13928 * gtk/gtktreemodelsimple.h (GTK_TYPE_TREE_MODEL_SIMPLE): fix name
13931 2001-01-11 Alexander Larsson <alexl@redhat.com>
13934 Added ENABLE_SHADOW_FB
13937 Added --disable-shadowfb
13939 * gdk/linux-fb/gdkcursor-fb.c:
13940 Update shadowfb when updating cursor
13942 * gdk/linux-fb/gdkdrawable-fb2.c:
13943 Added wrappers for shadowfb that calls the normal drawable
13944 methods, but calls gdk_shadow_fb_update(bounding box) when
13945 GdkWindows are drawed to.
13946 Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
13947 which also returns the bounding box.
13949 * gdk/linux-fb/gdkfb.h:
13950 Added GdkFBAngle type and gdk_fb_set_rotation declaration.
13952 * gdk/linux-fb/gdkgeometry-fb.c:
13953 Update shadowfb when scrolling window.
13955 * gdk/linux-fb/gdkglobals-fb.c:
13956 Add _gdk_fb_screen_angle.
13958 * gdk/linux-fb/gdkkeyboard-fb.c:
13959 Test code for screen rotation. Shift-F2 in the xlate driver
13960 rotates the screen.
13962 * gdk/linux-fb/gdkmain-fb.c:
13963 Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
13965 * gdk/linux-fb/gdkmouse-fb.c:
13966 Use fb_width/height instead of modeinfo.xres/yres.
13968 * gdk/linux-fb/gdkprivate-fb.h:
13969 Added fb_men, fb_width, fb_height & fb_stride. When using
13970 shadow fb these can differ from the framebuffer stuff.
13971 Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
13972 gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
13973 _gdk_fb_screen_angle. Removed CM, RP.
13975 * gdk/linux-fb/gdkrender-fb.c:
13976 Added code for shadowfb handling and screen rotation using
13979 * gdk/linux-fb/gdkwindow-fb.c:
13980 Use fb_mem, fb_stride, fb_width, fb_height.
13981 Added recompute_rowstride to reset the rowstride of all windows.
13982 Added gdk_fb_recompute_all() which recomputes rootwindow size,
13983 window abs positions and window rowstrides. Usefull when the
13984 rotation has changed.
13986 Thu Jan 11 13:16:50 GMT 2001 Tony Gale <gale@gtk.org>
13988 * docs/faq/gtk-faq.sgml: update to make web site updating easier
13990 2001-01-10 Havoc Pennington <hp@redhat.com>
13992 * gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
13993 where sibling == iter
13994 (gtk_tree_store_insert_after): handle sibling == iter
13995 (gtk_tree_store_prepend): remove stamp checks
13996 (gtk_tree_store_insert_before): ditto
13997 (gtk_tree_store_append): ditto
13998 (gtk_tree_store_get_path): ditto
13999 (gtk_tree_store_get_value): ditto
14000 (gtk_tree_store_iter_has_child): ditto
14001 (gtk_tree_store_iter_n_children): ditto
14002 (gtk_tree_store_iter_nth_child): ditto
14003 (gtk_tree_store_insert_after): ditto
14004 (gtk_tree_store_is_ancestor): ditto
14005 (gtk_tree_store_iter_depth): ditto
14006 (gtk_tree_store_insert_before): assert that sibling's parent is
14007 the same as the passed-in parent
14008 (gtk_tree_store_insert_after): assert that sibling's parent is
14009 the same as the passed-in parent
14012 * gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
14013 function to get the first iterator in a model
14015 * gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
14016 conventionally the "root" in this sense is just NULL afaict.
14018 * gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
14019 where sibling == iter
14020 (gtk_list_store_insert_after): handle case where sibling == iter
14022 * tests/testtreeview.c (run_automated_tests): fairly lame basic
14023 automated tests for ListStore, TreeStore
14025 * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
14026 (gtk_list_store_insert): update tail pointer, and fix it to work
14027 (gtk_list_store_insert_before): update tail pointer, and fix it to work
14028 (gtk_list_store_append): use tail to be faster
14029 (gtk_list_store_prepend): fix it, update tail pointer
14030 (gtk_list_store_insert_after): fix it, update tail pointer
14032 * gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
14035 2001-01-09 Havoc Pennington <hp@redhat.com>
14037 * gtk/gtklabel.c (gtk_label_expose): don't draw if label->layout
14038 is NULL due to a pending resize
14040 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): don't set the
14041 column width to values less than 1
14043 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_width): clamp
14044 width to be between min/max width, and still set the width
14045 even if autosize is turned on, so the tree view can use this
14046 function in order to autosize.
14047 (gtk_tree_view_column_init): set initial width to 1 not 0
14049 * gtk/gtktreeview.c (gtk_tree_view_size_request_buttons): use
14050 setter function to modify column width, so we get notification
14051 (gtk_tree_view_insert_iter_height): ditto
14052 (gtk_tree_view_calc_size): ditto
14053 (gtk_tree_view_check_dirty): ditto
14055 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): Add
14056 properties to change all the interesting attributes of the tree
14058 (gtk_tree_view_column_set_header_clickable): rename set_clickable
14059 (gtk_tree_view_column_get_clickable): add
14060 (gtk_tree_view_column_set_cell_renderer): don't unset the current
14061 attributes; assume a cell renderer with equivalent object
14062 properties has been swapped in. Do g_object_notify().
14063 (gtk_tree_view_column_set_visible): g_object_notify
14064 (gtk_tree_view_column_get_sizing): rename from get_col_type
14065 (gtk_tree_view_column_set_sizing): g_object_notify
14066 (gtk_tree_view_column_set_width): add g_object_notify
14067 (gtk_tree_view_column_set_min_width): ditto
14068 (gtk_tree_view_column_set_max_width): ditto
14069 (gtk_tree_view_column_set_title): ditto
14070 (gtk_tree_view_column_set_clickable): ditto
14071 (gtk_tree_view_column_set_widget): ditto
14072 (gtk_tree_view_column_set_justification): ditto
14074 2001-01-09 Havoc Pennington <hp@redhat.com>
14076 * gtk/gtktreeview.c (gtk_tree_view_check_dirty): handle case where
14077 there are no rows in the model
14079 * gtk/gtkliststore.c (gtk_list_store_iter_children): if parent is
14080 NULL, then return the start of the list
14082 * gtk/gtktreeview.c (gtk_tree_view_setup_model): don't build tree
14083 if we can't get any rows from an empty model
14085 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): remove
14086 extraneous * after function pointer typedef usage
14088 * Makefile.am: don't specify full path to cp and rm
14090 * gtk/gtkcellrenderertextpixbuf.c
14091 (gtk_cell_renderer_text_pixbuf_get_size): check width/height !=
14092 NULL before dereferencing, fixes a segfault that happened from
14095 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
14096 use gdk_pixbuf_render_to_drawable_alpha() to get alpha channel,
14097 and reindent the function
14098 (gtk_cell_renderer_pixbuf_get_size): indentation
14100 * gtk/gtkdialog.c (gtk_dialog_run): destroy main loop only after
14102 (gtk_dialog_add_buttons_valist): add g_return_if_fail
14103 (gtk_dialog_set_default_response): New function, to set default
14105 (gtk_dialog_set_response_sensitive): New function, to set
14106 sensitivity of buttons
14108 * gtk/gtkcellrendererpixbuf.c
14109 (gtk_cell_renderer_pixbuf_get_property): allow getting a NULL pixbuf
14110 (gtk_cell_renderer_pixbuf_set_property): allow setting a NULL pixbuf
14112 * gtk/gtktreedatalist.c (_gtk_tree_data_list_node_to_value):
14113 handle any G_TYPE_OBJECT subclass, not just the base class, and
14115 (_gtk_tree_data_list_value_to_node): ditto
14117 * gtk/gtkrbtree.c: Run _gtk_rbtree_test at strategic points if
14120 * gtk/gtkmain.c: add GTK_DEBUG_TREE
14122 * gtk/gtkdebug.h: add GTK_DEBUG_TREE
14124 2001-01-09 Tor Lillqvist <tml@iki.fi>
14126 * gdk/win32/gdkevents-win32.c: Implement better mouse
14127 capturing. Do use SetCapture(). Thanks to jpe@archaeopteryx.com.
14128 (find_window_for_pointer_event): New function.
14129 (gdk_event_translate): Use it when handling mouse events.
14131 2001-01-09 Alexander Larsson <alla@lysator.liu.se>
14134 Added --with-included-loaders option
14136 * gdk-pixbuf/Makefile.am:
14137 * gdk-pixbuf/gdk-pixbuf-io.c:
14138 Add support for including selected gdk-pixbuf loaders only.
14140 * gtk/gtkwindow.c (gtk_window_set_frame_dimensions,
14141 gtk_window_set_has_frame):
14142 Added inline documentation.
14144 * gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
14145 * docs/reference/gdk/tmpl/windows.sgml:
14146 Added inline documentation.
14148 Mon Jan 8 14:42:06 2001 Jonathan Blandford <jrb@redhat.com>
14150 * gtk/gtktreeview.c (gtk_tree_view_realize_buttons): Skip
14151 realizing buttons that have already been realized.
14153 Mon Jan 8 14:06:29 2001 Jonathan Blandford <jrb@redhat.com>
14155 * tests/testtreeview.c (main): Show menu items before adding to
14158 * gtk/gtktreeview.c (gtk_tree_view_set_model): Keep the columns
14159 around if we kill them.
14161 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
14162 Return if we pass in a NULL model.
14164 2001-01-08 Havoc Pennington <hp@redhat.com>
14166 * tests/testtreeview.c: hack on this some
14168 * gtk/gtktreestore.c (gtk_tree_store_setv): rename
14169 gtk_tree_store_set_valist, v is for arrays, valist for varargs
14171 (gtk_tree_store_getv): rename gtk_tree_store_get_valist
14173 * gtk/gtkliststore.h: Add varargs set() and get() convenience
14176 2001-01-08 Alexander Larsson <alexl@redhat.com>
14178 * gtk/gtkwindow-decorate.[hc]:
14180 New files. Contains an implementation of a minimal WM for
14184 Add the possibility for GtkWindows to specify a frame. This
14185 is used for the window decoration code, but could concievably
14186 be used for X programs too (xmms style windows).
14187 GtkWindow->frame is the toplevel window if the window is framed.
14188 The signal frame_event gets all events that are targeted to
14190 (_gtk_window_constrain_size): Exported for usage by gtkwindow-decorate.c.
14193 Implement gtk_window_set_has_frame and gtk_window_set_frame_dimensions.
14194 Call out to gtkwindow-decorate.c for WM support in linx-fb.
14196 2001-01-08 Alexander Larsson <alexl@redhat.com>
14198 * docs/README.linux-fb:
14199 Correct filename ~/.pangoft2_aliases
14202 Added new function gdk_window_get_decorations.
14204 * gdk/linux-fb/gdkfb.h:
14205 Removed _gdk_window_get_decorations declaration.
14206 Renamed _gdk_window_set_child_handler to
14207 gdk_fb_window_set_child_handler.
14209 * gdk/linux-fb/gdkwindow-fb.c:
14210 Renamed _gdk_window_set_child_handler to
14211 gdk_fb_window_set_child_handler.
14213 * gdk/x11/gdkwindow-x11.c:
14214 New function gdk_window_get_mwm_hints().
14215 Implemented gdk_window_get_decorations.
14217 * docs/reference/gdk/tmpl/windows.sgml:
14218 * docs/reference/gdk/gdk-sections.txt:
14219 Added gdk_window_get_decorations docs.
14221 2001-01-08 Alexander Larsson <alla@lysator.liu.se>
14223 * gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
14224 gdk_fb_window_find_focus, gdk_fb_send_focus_change,
14225 gdk_fb_window_send_crossing_events):
14226 Possibly send focus events when the mouse moves from one
14229 2001-01-07 Tor Lillqvist <tml@iki.fi>
14231 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title,
14232 gdk_window_new): Adapt calls to g_{locale,filename}_{to,from}_utf8
14233 to match current API.
14235 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): If a secret
14236 environment variable is set, don't call g_error when on a
14237 palettized (PseudoColor) display. Some people want to use GTK+
14238 in 256-colour mode even though works only partially.
14242 * gtk/makefile.mingw.in: Update.
14244 2001-01-05 Havoc Pennington <hp@redhat.com>
14246 * tests/testtreeview.c: hack on this a bit
14248 * gtk/gtktextlayout.c (gtk_text_layout_class_init):
14249 s/GTK_RUN_LAST/G_SIGNAL_RUN_LAST
14251 * gtk/gtktreemodelsimple.h (GTK_IS_TREE_MODEL_SIMPLE_CLASS):
14252 was spelled incorrectly
14253 (GTK_IS_TREE_MODEL_SIMPLE): ditto
14255 * gtk/gtktreeview.c (gtk_tree_view_set_headers_clickable): rename
14256 from gtk_tree_view_set_headers_active
14258 * gtk/gtktexttag.c:
14259 (gtk_text_tag_get_property): handle PROP_DIRECTION
14260 (gtk_text_tag_set_property): g_object_notify when we toggle the _set
14261 properties, bug 40235
14263 * gtk/gtktextiter.c (gtk_text_iter_forward_to_delimiters): rename
14264 forward_to_line_end
14266 Fri Jan 5 16:16:29 2001 Owen Taylor <otaylor@redhat.com>
14268 * gtk/{gtkcalender.c,gtkfilesel.c,gtkimcontext.c},
14269 modules/input/gtkimcontextxim.c: Adapt to new prototypes
14270 for unicode,locale,filename conversion functions.
14272 2001-01-05 Havoc Pennington <hp@redhat.com>
14274 * gtk/gtktextiter.c (gtk_text_iter_ends_line): this function was
14275 broken if called on the first position in the buffer.
14277 * gtk/gtktextlayout.c (line_display_index_to_iter): fix
14278 forward_to_delimiters to be called only if we aren't already at
14281 2001-01-05 Havoc Pennington <hp@redhat.com>
14283 * demos/gtk-demo/main.c (create_tree): Oops, that didn't link. Fix.
14285 2001-01-05 Alexander Larsson <alexl@redhat.com>
14287 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
14288 colormap in here. Sync from X port.
14289 (gdk_fb_set_colormap): allow the colormap to be NULL if you like.
14291 (gdk_fb_clip_region): Comment out g_warning about empty clip region.
14292 This happens now and then, and i don't think it is a bug.
14293 (gdk_fb_draw_polygon): Correctly add extra point if startpoint
14295 (gdk_fb_draw_lines): Don't draw dashed lines if line_style is
14298 * gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
14299 some of the fields filled in at least.
14301 * gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
14302 miLineArcD is no more, remove it from the function definition.
14304 2001-01-04 Havoc Pennington <hp@redhat.com>
14306 * gtk/gtktreeselection.c (gtk_tree_selection_get_tree_view): add
14309 * gtk/gtktreemodel.h (struct _GtkTreeIter): rename fields to
14310 user_data instead of tree_node
14312 * gtk/gtktreeprivate.h (TREE_VIEW_COLUMN_WIDTH): rename from
14313 TREE_VIEW_COLUMN_SIZE
14315 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): rename
14316 "size" field to "width" finishes bug 40061
14318 * gtk/gtkcellrenderer.h: Use GtkCellRendererState instead of guint
14319 for bitfields, bug 40268
14321 2001-01-04 Havoc Pennington <hp@redhat.com>
14325 s/gtk_tree_view_column_set_size/gtk_tree_view_column_set_width/g;
14327 s/GtkModelSimple/GtkTreeModelSimple/g;
14328 s/GTK_MODEL_SIMPLE/GTK_TREE_MODEL_SIMPLE/g;
14329 s/gtk_model_simple/gtk_tree_model_simple/g;
14330 s/gtkmodelsimple/gtktreemodelsimple/g;
14332 s/gtk_tree_view_column_set_header_active/gtk_tree_view_column_set_header_clickable/g;
14334 s/GtkTreeViewColumnType/GtkTreeViewColumnSizing/g;
14335 s/column_set_col_type/column_set_sizing/g;
14337 s/GtkTreeSelectionType/GtkTreeSelectionMode/g;
14338 s/gtk_tree_selection_set_type/gtk_tree_selection_set_mode/g;
14340 s/GtkCellRendererType/GtkCellRendererState/g;
14342 * gtk/gtkcellrenderertoggle.c: remove _ macro, include gtkintl.h
14343 (gtk_cell_renderer_toggle_class_init): change "state" property to
14344 "active", to match GtkToggleButton
14345 (gtk_cell_renderer_toggle_get_active): new function, bug
14347 (gtk_cell_renderer_toggle_set_active): new function
14348 (gtk_cell_renderer_toggle_set_property): route changes to toggle
14349 state through gtk_cell_renderer_set_active
14351 Thu Jan 4 15:46:18 2001 Jonathan Blandford <jrb@redhat.com>
14353 * gtk/gtkmodelsimple.c: Changed a bunch of boxed types to pointers
14354 temporarily until they work again. Brought up to date with
14355 changes in the model.
14356 * gtk/gtkmodelsimple.h: Brought up to date with changes in the
14359 2001-01-04 Havoc Pennington <hp@redhat.com>
14361 * gtk/gtktextlayout.c (line_display_index_to_iter): if index is
14362 equal to the line length, then position iterator before paragraph
14363 separators. Fixes crash reported by Mikael Hermansson when
14364 pressing left arrow from the start of a line.
14366 * gtk/gtktextiter.c (iter_set_from_byte_offset): Add g_error
14367 about byte indexes off the end
14368 (iter_set_from_char_offset): add g_error about char offsets
14371 2001-01-03 Havoc Pennington <hp@redhat.com>
14373 * gtk/gtktextbtree.c: Adapt to uscore-ification of gtktextiterprivate
14375 * gtk/gtktextdisplay.c (gtk_text_layout_draw): remove use
14376 of private functions; remove inclusion of private headers.
14378 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_line): Add this
14379 function, so we don't need private functions in gtktextdisplay.c
14381 * gtk/gtktextiterprivate.h: underscore-ification
14383 * gtk/gtkwidget.c: Clean up a bunch of docs that said "INTERNAL"
14384 to instead say "only useful to implement widgets"
14386 * gtk/gtkenums.h (GtkMovementStep): Rename GTK_MOVEMENT_CHARS,
14387 GTK_MOVEMENT_POSITIONS to GTK_MOVEMENT_LOGICAL_POSITIONS,
14388 GTK_MOVEMENT_VISUAL_POSITIONS. Resolves bug 40249.
14390 * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_set_colormap):
14391 This function was completely broken
14393 * gtk/testtext.c (line_numbers_expose): use gtk_paint_layout
14395 * gtk/gtkvscale.c (gtk_vscale_draw_value): use gtk_paint_layout
14397 * gtk/gtkvruler.c (gtk_vruler_draw_ticks): use gtk_paint_layout
14399 * gtk/gtklabel.c (gtk_label_expose): use gtk_paint_layout
14401 * gtk/gtkhscale.c (gtk_hscale_draw_value): use gtk_paint_layout
14403 * gtk/gtkhruler.c (gtk_hruler_draw_ticks): use gtk_paint_layout
14405 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): use
14408 * gtk/gtkaccellabel.c (gtk_accel_label_expose_event): use
14411 * gtk/gtkstyle.h: Add draw/paint expander to draw tree expanders.
14412 Progress on bug 40103. Add draw_layout to draw a PangoLayout.
14413 (struct _GtkStyleClass): Remove draw_cross, draw_oval, draw_ramp,
14414 which were not implemented.
14416 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): Add
14417 insert_pixbuf signal. Rename delete_text to delete_range since it
14418 also deletes pixbufs and child anchors. This almost closes bug
14419 40245 (still need to deal with child anchors)
14421 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Add
14422 insert_pixbuf, change signal names as appropriate, change types of
14423 signals taking marks/tags to have the specific type, not just
14426 * gtk/gtkmain.c (gtk_get_current_event_state): Add this function;
14429 * gtk/gtkoptionmenu.c (gtk_option_menu_set_history): clean up
14430 unnecessary remove_contents() call
14431 (gtk_option_menu_class_init): add a "changed" signal, closes
14433 (gtk_option_menu_update_contents): emit "changed" if the
14434 active menu item changes
14436 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done): fix bad
14437 cast to GtkObject, reported by Jonas Borgstrom
14438 (gdk_pixbuf_loader_finalize): don't close the loader on finalize;
14439 we can't do stuff with side effects in finalize. Instead, spew a
14440 warning if the loader isn't closed.
14442 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_finalize): free
14443 colormap in here, non-X ports probably need to sync to this change
14445 * gdk/x11/gdkdrawable-x11.c (gdk_x11_set_colormap): remove
14446 assertion that colormap != NULL, you can set the colormap to NULL
14449 * Makefile.am: remove gtk-config-2.0
14451 * configure.in: Use pkg-config to locate GLib. Remove
14452 separated-out GMODULE_LIBS, GMODULE_CFLAGS; these were not used,
14453 and the gmodule libs/cflags were in GLIB_LIBS GLIB_CFLAGS anyhow.
14454 Use pkg-config to locate Pango. Output correct Pango libs to
14455 gdk-2.0.pc.in. Fix test for FREETYPE_CONFIG (typo fix).
14457 * Makefile.am (pkgconfig_DATA): install only target-specific pc
14459 (install-data-local): symlink gtk+-2.0.pc and gdk-2.0.pc to the
14462 * gtk+-2.0.pc.in (Requires): require the GDK for the current target
14465 2001-01-03 Alexander Larsson <alla@lysator.liu.se>
14468 Change GTK_NO_CHECK_CASTS to G_DISABLE_CAST_CHECKS.
14470 Tue Jan 2 16:23:05 2001 Owen Taylor <otaylor@redhat.com>
14472 * gtk/gtktextlayout.c
14473 (gtk_text_layout_move_iter_to_previous_line): Fix unitialized
14474 variable when moving back onto a single line.
14476 2001-01-01 Havoc Pennington <hp@redhat.com>
14478 * gtk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14480 * gdk/Makefile.am (LDFLAGS): add @LIBTOOL_EXPORT_OPTIONS@
14482 * configure.in (LIBTOOL_EXPORT_OPTIONS): define
14483 LIBTOOL_EXPORT_OPTIONS with options to control symbol export
14485 2001-01-01 Havoc Pennington <hp@redhat.com>
14487 * gtk/gtktexttagprivate.h: uscore-prepend all the stuff in here.
14489 * gtk/gtk-boxed.defs (GtkTextAttributes): Add boxed type for
14492 * gtk/gtktexttag.c: Fix up GtkTextAttributes copying to close bug
14494 (gtk_text_attributes_copy_values): rename from
14495 gtk_text_attributes_copy
14496 (gtk_text_attributes_copy): a more standard GTK copy function,
14497 which returns a new object
14499 2001-01-01 Havoc Pennington <hp@redhat.com>
14501 * gtk/gtktreeview.c: Adapt to GtkTreeSelection changes
14503 * gtk/gtktreeselection.c (_gtk_tree_selection_set_tree_view):
14504 don't fill in tree_view->priv->selection, kind of an unexpected
14507 * gtk/gtkcellrenderertext.c: Remove definition of _ and include
14510 * gtk/gtkcellrenderer.c: Remove definition of _ and include
14512 (gtk_cell_renderer_get_property): remove calls to g_value_init
14514 * gtk/gtkcellrendererpixbuf.c: Remove definition of _ and include
14517 * gtk/gtkcellrenderertextpixbuf.c: Remove definition of _ macro
14518 and include gtkintl.h
14519 (gtk_cell_renderer_text_pixbuf_class_init): remove spaces from
14522 * gtk/gtktreeselection.c (_gtk_tree_selection_new): rename, return
14524 (_gtk_tree_selection_new_from_with_view): rename, return
14526 (_gtk_tree_selection_set_tree_view): rename with uscore
14527 (gtk_tree_selection_get_selected): fill in the "model" out param
14528 first, so it gets filled in even if we return at the top of the
14530 (gtk_tree_selection_real_select_all): add a comment and an else{}
14531 to clarify this a bit
14532 (gtk_tree_selection_real_unselect_all): add the same else{}
14534 * gtk/gtktreeselection.h: Rename new, new_with_tree_view, and
14535 set_tree_view to have underscore prefixes, move them to the
14536 private header, fix return type of new_with_tree_view
14537 (struct _GtkTreeSelection): mark struct
14540 * gtk/gtktreemodel.c (gtk_tree_model_get_flags): return
14541 GtkTreeModelFlags, not a guint
14542 (gtk_tree_path_prev): return gboolean not gint
14543 (gtk_tree_path_up): return gboolean not gint
14545 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): make get_flags
14546 return GtkTreeModelFlags, not a guint
14548 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_finalize): check
14549 that child model is non-null before unrefing it
14550 (g_value_int_compare_func): make this a qsort compare func, not
14551 a boolean predicate
14553 * gtk/gtktreemodelsort.h: rename gtk_tree_model_set_sort_column,
14554 (add -umn to the end), and mark it unimplemented
14555 (gtk_tree_model_sort_resort): remove, this wasn't implemented, and
14556 I don't see what it's for - doesn't the model always sort itself?
14557 (gtk_tree_model_sort_set_compare): this had the wrong signature
14559 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_attributes):
14560 Fix the docs to say that it destructively replaces existing
14561 attributes (previously said that it added attributes).
14562 (gtk_tree_view_column_set_visible): canonicalize bool before
14563 equality testing. Also, check for realization before
14564 hiding/showing the tree_column->window; if this window could exist
14565 before realization, then it's busted and needs fixing, we can't
14566 create GDK resources pre-realization. Also, remove
14567 superfluous queue_resize(), since set_size() does that for us.
14568 (gtk_tree_view_column_set_col_type): check realization before
14569 using tree_column->window
14571 * gtk/gtktreedatalist.c: fix filename in copyright notice
14573 2000-12-31 Havoc Pennington <hp@pobox.com>
14575 * gtk/gtktextview.c: Rearrange all the
14576 scroll-while-dragging-or-selecting code to be different, not
14577 necessarily better. ;-)
14578 (gtk_text_view_scroll_to_mark): Change this
14579 function to take within_margin as a fraction instead of a pixel
14580 value, and to take alignment arguments (indicating where to align
14581 the mark inside the visible area)
14583 * gtk/testtextbuffer.c (fill_buffer): fix bad cast of GtkTextTag
14586 * gtk/gtktextiter.c (gtk_text_iter_set_line_offset): change
14587 behavior so that offsets past the end of the line are not
14588 allowed, and an offset equal to the line length moves the iterator
14590 (gtk_text_iter_set_line_index): make parallel change
14591 (gtk_text_iter_get_bytes_in_line): add this function
14593 * gtk/gtktextbtree.c (_gtk_text_line_byte_locate): change handling
14594 of byte indexes off the end of the line; byte index at the end of
14595 the line now returns FALSE and doesn't fill in the requested
14596 values, byte index past the end of the line is an error. Also,
14597 don't allow -1 offset anymore, since its meaning is unclear.
14599 This change exposes some bug in visual cursor motion, where we
14600 end up with a huge invalid byte index; needs fixing. Symptom of
14601 bug is a crash when you hit up arrow.
14603 (_gtk_text_line_char_locate): match the change to byte_locate
14605 * gtk/gtktextiter.c (find_by_log_attrs): Handle iteration backward
14606 from start of line properly. fixes bug reported by Mikael
14607 Hermansson where backspace would delete all text before the
14610 2000-12-30 Tor Lillqvist <tml@iki.fi>
14612 * gdk/win32/gdkwindow-win32.c
14613 (gdk_window_impl_win32_get_visible_region): New function, as in
14615 (gdk_window_new, gdk_window_set_title): Use g_locale_from_utf8()
14616 instead of duplicating the same code here.
14618 * gdk/win32/gdkwin32.h (GDK_COLORMAP_PRIVATE_DATA): Use
14619 GDK_COLORMAP macro.
14621 * gdk/win32/gdkevents-win32.c (gdk_event_funcs): Use NULL as
14623 (gdk_event_translate): Use GDK_COLORMAP_PRIVATE_DATA to correctly
14626 * gtk/gtk.def: Update.
14628 * gtk/makefile.mingw.in: Use glib-genmarshal from $(GLIB)/gobject.
14630 2000-12-30 Havoc Pennington <hp@pobox.com>
14632 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system
14633 colormap on input only windows, to avoid special cases all over
14634 the code for these windows.
14636 2000-12-26 Tor Lillqvist <tml@iki.fi>
14638 * gdk/win32/gdkvisual-win32.c (gdk_visual_init): Call g_error if
14639 we are on a palettized display ("PseudoColor" in X11), as the code
14640 for that doesn't work anyway, and never has.
14642 2000-12-22 Alexander Larsson <alexl@redhat.com>
14644 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io):
14645 Don't use isprint() for chars > 255.
14647 2000-12-21 Havoc Pennington <hp@redhat.com>
14649 * tests/testtreeview.c: more work
14651 2000-12-21 Alexander Larsson <alexl@redhat.com>
14653 * docs/README.linux-fb:
14654 Update the docs to the new pangoft2 way.
14656 2000-12-21 Alexander Larsson <alexl@redhat.com>
14659 For linux-fb get the pangoft2 cflags and libs. This needs a recent
14661 Remove modules/linux-fb/Makefile.
14663 * gdk/linux-fb/gdkdrawable-fb2.c:
14664 Render glyphs using freetype.
14666 * gdk/linux-fb/gdkfb.h:
14667 Add new fb-specific functions needed for managing windows.
14669 * gdk/linux-fb/gdkmain-fb.c:
14670 Remove gdk_font_init/fini() calls.
14672 * gdk/linux-fb/gdkpango-fb.c:
14673 Remove old implementation. Use pangoft2 instead.
14675 * gdk/linux-fb/gdkprivate-fb.h:
14676 Remove PangoFBFont and related stuff.
14678 * gdk/linux-fb/gdkwindow-fb.c:
14679 Implement drawable->get_visible_region.
14680 Implement support for _gdk_window_set_child_handler () and
14681 _gdk_window_get_decorations().
14683 * modules/Makefile.am:
14684 Remove linux-fb subdir.
14686 * modules/linux-fb/*:
14689 2000-12-20 Jonathan Blandford <jrb@redhat.com>
14691 * gtk/gtkcellrenderer*.c (::get_property): remove g_value_init
14692 calls, as they are no longer needed.
14694 * gtk/gtktreemodelsort.c: Fix up the comparison code.
14696 * gtk/gtktreemodel.h: Start work on ::reordered signal. Need to
14697 figure out how to emit a signal on an interface.
14699 2000-12-20 Havoc Pennington <hp@redhat.com>
14701 * tests: new directory to contain tests, gtk/test* should move
14702 here sometime (with appropriate on-cvs-server hackery)
14704 * tests/testtreeview.c, tests/Makefile.am: a test
14706 * configure.in (AC_OUTPUT): add tests/Makefile
14708 * gtk/gtktexttag.c (gtk_text_tag_get_property): Add "invisible"
14709 and "invisible_set" which were missing
14711 * gtk/gtkrbtree.h: some cheesy indentation fix
14713 2000-12-20 Alexander Larsson <alexl@redhat.com>
14715 * gtk/gtkinvisible.c (gtk_invisible_realize):
14716 Attach the style to the window so that the style it is not
14717 leaked when unrealizing the window.
14719 2000-12-18 Havoc Pennington <hp@redhat.com>
14721 * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do
14722 begin/end user action where appropriate
14723 (gtk_text_view_commit_handler): add begin/end user action
14725 * gtk/gtktextbuffer.c: add begin/end user action signals, and
14726 bracket interactive operations with begin/end user action pair.
14728 * gtk/gtktextbuffer.h (struct _GtkTextBufferClass): remove
14729 "interactive" arg from insert_text and delete_text signals.
14730 Add begin_user_action, end_user_action signals
14731 (gtk_text_buffer_begin_user_action):
14732 (gtk_text_buffer_end_user_action): New functions to delimit
14733 a user-visible action
14735 * gtk/gtkmarshal.list: update to reflect changes to gtktextbuffer
14738 2000-12-18 Havoc Pennington <hp@redhat.com>
14740 * gdk/gdkevents.c (gdk_event_get_state): wow, that implementation
14741 was pretty non-working.
14743 * gtk/testtext.c (fill_file_buffer): make this a bit more robust
14744 by passing the length to g_utf8_validate().
14746 2000-12-16 Havoc Pennington <hp@pobox.com>
14748 * gtk/gdk-pixbuf-loader.h, gtk/gdk-pixbuf-loader.c:
14749 Port to GObject, can go back in gdk-pixbuf after setting up
14750 a gdk-pixbuf-marshal.h header over there.
14752 * gtk/gtktreeview.c: s/SEPERATOR/SEPARATOR/g;
14753 (gtk_tree_view_class_init): specify GTK_TYPE_ADJUSTMENT for signal
14755 (gtk_tree_view_init): don't unset GTK_NO_WINDOW, it shouldn't be
14757 (gtk_tree_view_realize_buttons): don't gtk_widget_show() buttons
14758 here, do it when we create the buttons later
14759 (gtk_tree_view_realize_buttons): add some g_return_if_fail
14760 (gtk_tree_view_map): paranoia checks that column->button is shown
14762 (gtk_tree_view_size_request): only request visible children.
14763 Move header size calculation in here, for cleanliness, and
14764 to maintain invariants for child widgets if we eventually
14765 let users set different children inside the buttons
14766 (gtk_tree_view_map_buttons): factor out code to map buttons,
14767 since it was being called several times
14768 (gtk_tree_view_size_allocate_buttons): move_resize the drag
14769 windows instead of just moving them; their height may change
14770 if we allow random widgets in there, or the theme changes.
14771 (gtk_tree_view_size_allocate): move button size allocation
14772 above emitting the scroll signals, to ensure a sane state when we
14774 (gtk_tree_view_button_release): remove queue_resize after
14775 tree_view_set_size(), set_size() will handle any resize queuing
14777 (gtk_tree_view_focus_in): just queue a draw, don't fool with
14779 (gtk_tree_view_focus): use gtk_get_current_event() and
14780 gdk_event_get_state()
14781 (gtk_tree_view_deleted): don't queue_resize() after calling set_size()
14782 (gtk_tree_view_build_tree): fix a "if (foo); {}" bug - i.e. remove
14784 (gtk_tree_view_create_button): show the button here
14785 (gtk_tree_view_button_clicked): actually emit the clicked signal
14787 (_gtk_tree_view_set_size): return right away if the size is
14788 unchanged, as a cheesy optimization
14789 (gtk_tree_view_setup_model): rename set_model_realized to
14790 setup_model to match the flag that indicates whether we've
14792 (gtk_tree_view_get_hadjustment): create adjustment if it doesn't
14793 exist, because set_scroll_adjustment does that and it shouldn't
14794 matter what order you call these in
14795 (gtk_tree_view_get_vadjustment): ditto
14796 (gtk_tree_view_set_headers_visible): canonicalize the bool,
14798 (gtk_tree_view_set_headers_visible): call
14799 gtk_tree_view_map_buttons() instead of using cut-and-paste code
14800 (gtk_tree_view_append_column): clarify whether the return value
14801 is the count of columns before or after, and do the increment
14802 separately from the return statement so you can tell from the code.
14803 (gtk_tree_view_remove_column): ditto
14804 (gtk_tree_view_insert_column): ditto
14805 (gtk_tree_view_get_column): remove g_return_if_fail for columns
14806 outside the existing range, the docs say that outside-range
14807 columns are allowed, so we handle them as documented. (Presumably
14808 this allows a nice loop with column != NULL as test.)
14809 (gtk_tree_view_move_to): document what 0.0, 0.5, 1.0 alignments
14810 mean (left/right/center etc.).
14811 (gtk_tree_view_collapse_all): only queue a draw if we're mapped
14812 (gtk_tree_view_expand_row): add docs
14813 (gtk_tree_view_collapse_row): add docs
14815 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_clicked): new
14816 function to emit the clicked signal on a column
14818 * gdk/gdkevents.c (gdk_event_get_state): new function, to get the
14820 (gdk_event_get_time): don't treat GDK_SCROLL
14821 as a button event, remove default case from switch so gcc
14822 will whine if we don't explicitly handle all event types
14824 * gtk/gtktreeselection.h: added some FIXME
14826 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): rename
14827 "columns" to "n_columns" and "column" to "columns" for clarity
14829 2000-12-16 Havoc Pennington <hp@pobox.com>
14831 * gtk/gtktextiter.c: General cleanup of the log attr iteration
14832 stuff. This should make e.g. the delete key work again in the
14834 (gtk_text_iter_forward_cursor_positions): handle negative count
14835 (gtk_text_iter_backward_cursor_positions): handle negative count
14836 (gtk_text_iter_forward_word_ends): handle negative count
14837 (gtk_text_iter_backward_word_starts): handle negative count
14839 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktexttag.h,
14840 gtk/gtktexttag.c, gtk/gtktexttagtable.h, gtk/gtktexttagtable.c,
14841 gtk/gtktextbuffer.h, gtk/gtktextbuffer.c: Convert everything to
14842 GObject. No doubt will cause breakage.
14844 * demos/gtk-demo/textview.c: remove hacks around
14845 non-GObject-ification of the text objects
14847 * demos/gtk-demo/main.c (main): use g_object_set() to manipulate
14850 2000-12-14 Havoc Pennington <hp@pobox.com>
14852 * configure.in: only AC_DEFINE(HAVE_XFT) if we actually determined
14853 that we have Xrender
14855 Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com>
14857 * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}:
14858 Add two virtualized functions gdk_drawable_get_clip_region - to
14859 get the clip region when drawing.
14861 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple
14862 use invalidate_region.
14864 * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible
14867 * acconfig.h configure.in: Check for Xft. For now, assume
14868 that if Xft is found, Pango was compiled with Xft support
14871 * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add
14872 gdk_colormap_query_color().
14874 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw
14875 with Xft if appropriate.
14877 * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create
14878 a pangoxft context if we have XFT and the environment
14879 variable GD_USE_XFT is set.
14881 * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel
14882 and also possibly an XftDraw structure.
14884 * gtk/gtkfontsel.c: Handle the case where the font from the
14885 style doesn't match any of the fonts a bit better.
14887 * gtk/testgtk.c: Add tabs between directional segments for
14888 hebrew/arabic test. (Not really necessary, just a little
14891 2000-12-14 Havoc Pennington <hp@redhat.com>
14893 * gtk/testtext.c (fill_file_buffer): fix unicode validation when
14896 2000-12-14 Havoc Pennington <hp@redhat.com>
14898 * gtk/gtktextbtree.c (_gtk_text_btree_validate_line): remove
14899 unused call to get_last_line()
14901 * gtk/gtkobject.c (gtk_object_add_arg_type): add G_TYPE_POINTER
14902 here until boxed is working (and maybe after that - we should
14903 really not gratuitously break old code)
14905 * gtk/gtktexttag.c (gtk_text_tag_class_init): add commented-out
14906 specific types for font_desc and tabs args, move them to
14907 GTK_TYPE_POINTER for now, waiting on g_param_spec_boxed() to get
14908 fixed. Move GdkColor args to GTK_TYPE_POINTER also.
14910 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): temporarily
14911 use GTK_TYPE_POINTER for signal signatures as a hack-around
14913 * gtk/gtk-boxed.defs: Add boxed types for PangoFontDescription and
14916 * gtk/gtktextlayout.c (line_display_iter_to_index):
14918 (line_display_index_to_iter): make static
14920 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
14921 to marshal a string not a boxed
14923 * gtk/gtkmarshal.list: add marshaller for GtkTextBuffer:insert_text
14925 * gtk/testtext.c (fill_file_buffer): don't use g_utf8_next_char
14926 since the UTF-8 isn't validated yet
14928 * gtk/gtktextsegment.c (char_segment_check_func): don't require
14929 lines to end in '\n'
14931 * gtk/gtktextview.c (gtk_text_view_move_cursor): update to use
14932 forward_to_delimiters, and grapheme boundaries
14933 (gtk_text_view_delete_from_cursor): properly handle non-newline
14934 delimiters, and grapheme boundaries
14936 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): rename
14937 to gtk_text_iter_forward_to_delimiters, and make it work properly
14938 if empty lines end with a character other than '\n'
14940 * gtk/gtktextiter.h, gtk/gtktextiter.c: Add movement by cursor
14943 2000-12-15 Tor Lillqvist <tml@iki.fi>
14945 * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys.
14948 * gdk/gdk.def: Update.
14950 * gdk/win32/gdkmain-win32.c
14951 * gdk/win32/gdkkeys-win32.c: New file. Move some functions from
14952 gdkmain-win32.c here.
14954 * gdk/win32/makefile.mingw.in (all): No need to make
14955 gdk-win32res.o here, the makefile one step up will call us to make
14958 * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add
14961 * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall.
14963 * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover
14964 call to g_source_add().
14966 * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory
14967 leak. Thanks to Andreas Kemnade.
14969 2000-12-13 Havoc Pennington <hp@pobox.com>
14971 * gtk/gtktextbtree.h: Remove double _ in front of some functions
14973 * gtk/gtktext*.[hc]: update accordingly
14975 2000-12-13 Havoc Pennington <hp@pobox.com>
14977 * gtk/gtktextbtree.h: Put _ in front of every function in this
14980 * gtk/gtktext*.[hc]: update to reflect renamed btree functions
14982 2000-12-13 Alex Larsson <alexl@redhat.com>
14984 * gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
14985 Add support for ps2 intellimouse.
14987 * gdkkeyboard-fb.c:
14988 Move shift-F1 repaint handling to xlate handler only.
14990 * docs/README.linux-fb:
14992 Document the new refresh keys.
14994 Tue Dec 12 23:46:44 2000 Tim Janik <timj@gtk.org>
14996 * gtk/stock-icons/Makefile.am: doh, this was broken beyond believe.
14998 * gtk/gtkbox.c: change property types from (u)long to (u)int for
14999 ::position and ::padding.
15001 * gtk/gtkcontainer.c: make ::border_width an INT property.
15003 * gtk/gtkpacker.c: make ::position an INT property.
15005 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_adjustment_changed):
15006 guard against NULL h/v scrollbars, since this is used at construction
15009 * gtk/gtkclist.[hc]: nuked gtk_clist_construct(), implemented
15010 internal gtk_clist_constructor().
15012 * gtk/gtkctree.[hc]: nuked gtk_ctree_construct(), implemented
15013 gtk_ctree_constructor().
15015 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): property
15016 ::pulse_step should use ARG_PULSE_STEP, not ARG_FRACTION.
15018 * docs/reference/Makefile.am: fun stuff, disabled docs generation
15019 again, gtk-scan.c needs to introspec paramspecs, not GtkAgs.
15021 * gtk/gtkwidget.[hc]:
15022 removed gtk_widget_setv(), gtk_widget_getv(), gtk_widget_newv()
15023 and gtk_widget_get().
15024 (gtk_widget_new): use g_object_new_valist().
15025 (gtk_widget_set): use g_object_set_valist().
15027 * gtk/gtkobject.[hc]:
15028 removed gtk_object_arg_get_info(), gtk_object_getv(),
15029 gtk_object_query_args(), gtk_object_newv(),
15030 gtk_object_class_add_signals(),
15031 gtk_object_class_user_signal_new(),
15032 gtk_object_class_user_signal_newv(),
15033 gtk_object_arg_set(), gtk_object_arg_get(),
15034 gtk_object_args_collect(),
15035 gtk_object_default_construct(),
15036 gtk_object_constructed(),
15037 GTK_CONSTRUCTED and GTK_OBJECT_CONSTRUCTED().
15038 removed nsignals, signals and n_args members from GtkObjectClass.
15039 (gtk_object_new): use g_object_new_valist().
15040 (gtk_object_set): use g_object_set_valist().
15041 (gtk_object_get): use g_object_get_valist().
15043 * gtk/gtkcompat.h: define gtk_object_default_construct().
15045 * gtk/gtktypeutils.c (gtk_type_new): create constructed objects via
15048 * gtk/*.c: removed gtk_object_class_add_signals() from class_init()
15049 fucntions, cleaned up method assignments (make sure your structures
15050 are setup properly before calling out). removed all GTK_CONSTRUCTED
15053 Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
15055 * gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
15056 off-by-one error in checks. (Dave Lambert)
15058 2000-12-12 Alexander Larsson <alexl@redhat.com>
15060 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):
15061 Don't free gdk_fb_keyboard twice.
15063 Tue Dec 12 08:24:42 2000 Tim Janik <timj@gtk.org>
15067 (create_statusbar): get rid of object_signal:: GtkObject argument uses,
15068 use GObject swapped_signal:: properties instead.
15070 * gtk/gtkcellrenderertoggle.c:
15071 * gtk/gtkcellrenderertextpixbuf.c:
15072 * gtk/gtkcellrenderertext.c:
15073 * gtk/gtkcellrendererpixbuf.c:
15074 * gtk/gtkcellrenderer.c:
15075 * gtk/gtktreeviewcolumn.c: s/[sg]et_param/[sg]et_property/, fixed
15076 missing warnings for invalid property ids, install properties
15077 with g_object_class_install_property() now.
15080 (gtk_signal_emit): let g_signal_emit_valist() collect the values for us.
15082 Wed Oct 25 14:17:43 2000 Owen Taylor <otaylor@redhat.com>
15084 * gtk/gtkwidget.[ch] (gtk_widget_is_focus): Add a function
15085 to determine if a window is the focus widget within
15088 * gtk/gtkcontainer.[ch]: Fix the return type of ::focus
15091 * gtk/gtkcontainer.c (gtk_container_real_focus): Move handling
15092 of the case where the container CAN_FOCUS to here instead
15093 of having it in each individual move-the-focus place.
15095 * gtk/gtkcontainer.c: Rewrite handling of left-right and up-down
15096 focusing to be geometric in a much more obvious sense. Arrowing
15097 around is still non-intuitive because it isn't perfect and
15098 because entries, etc, grab the arrow keys, but it at least
15099 usually will do what you expect now.
15101 * gtk/gtknotebook.[ch]: Many cleanups. Moved docs inline in this
15104 * gtk/gtknotebook.c: Change tabs to be a single item in
15105 the focus chain. Make movement of focus on tabs with arrow
15108 * gtk/gtknotebook.c (gtk_notebook_find_child): Add
15109 CHECK_FIND_CHILD macro to give informative error messages
15110 instead of silent returns.
15112 * gtk/gtknotebook.c (gtk_notebook_init): Set the RECEIVES_DEFAULT
15113 flag since we handle GdkReturn on the tabs.
15115 * gtk/gtknotebook.c (gtk_notebook_expose_tabs): Invalidate
15116 windows rather than sending expose events directly.
15118 * gtk/gtknotebook.[ch] docs/Changes-2.0.txt: Move structure
15119 definition for GtkNotebookPage into .c file, since it is private.
15121 * gtk/testgtk.c (create_notebook): Add option for
15122 testing borderless notebook.
15124 * gtk/testgtk.c (page_switch): Removed egregious poking
15125 around in GTK+ internals.
15127 * docs/widget-system.txt: Remove references to GTK_REDRAW_PENDING.
15129 * gtk/gtkclist.[ch]: Remove key press handler, handle focusing
15130 properly through gtk_clist_focus. Make the title headers a
15131 single item in the tab-focus chain, and make left-right wrap
15134 * gtk/gtkwindow.c (gtk_window_focus): Add a custom
15135 focus method so that wrapping around works properly.
15137 * gtk/gtktreeview.c: Remove calls to gtk_container_set_focus_child() -
15138 that is handled for the widget now.
15140 Mon Dec 11 11:41:12 2000 Owen Taylor <otaylor@redhat.com>
15142 * gtk/gtkinvisible.c (gtk_invisible_init): Flag invisible
15143 widgets as TOPLEVEL.
15145 * gtk/gtkwidget.c (gtk_widget_queue_resize): Don't assume
15146 TOPLEVEL widgets are containers.
15148 * gtk/gtkinvisible.h: Remove useless include.
15150 2000-12-11 Havoc Pennington <hp@redhat.com>
15152 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
15153 Handle chopping off \r\n and 0x2029 in addition to \n before
15154 passing to PangoLayout
15156 * gtk/gtkimcontextsimple.c
15157 (gtk_im_context_simple_get_preedit_string):
15158 return an empty string if no match is pending
15160 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): add
15161 assertion that the returned preedit string was sane
15163 * gtk/gtktext*.[hc], gtk/testtext.c, gtk/testtextbuffer.c:
15164 s/gtk_text_iter_next_char/gtk_text_iter_forward_char/g;
15165 s/gtk_text_iter_prev_char/gtk_text_iter_backward_char/g;
15167 Mon Dec 11 10:02:26 2000 Owen Taylor <otaylor@redhat.com>
15169 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_finalize):
15170 Fix up finalizer to chain to its parent.
15172 2000-12-11 Alexander Larsson <alexl@redhat.com>
15174 * docs/README.linux-fb (GDK_KEYBOARD_TYPE):
15175 Clearified the difference between the keyboard types. Wrote a note
15176 about the magic sysrq key to get out of raw mode.
15178 2000-12-09 James Henstridge <james@daa.com.au>
15180 * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
15181 member to hold masks for detecting the start of a protocol packet.
15182 (mouse_devs): add packet start masks for ps2 and ms device types.
15183 Left the mask for fidmour blank, as I have no idea what it should
15185 (handle_mouse_io): skip bytes until we get to the start of a
15186 packet. My Logitech mouse seems to be passing an extra NULL pad
15187 byte, and GPM does a similar thing here.
15188 (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
15189 this is the ms mouse driver.
15190 (gdk_fb_mouse_ms_packet): fix up button handling, which was
15191 completely broken except for button1. It was checking the wrong
15192 bit in the packet for the status of the right mouse button, and
15193 wrongly assuming right == button2 rather than 3. I fixed that and
15194 also added support for middle button (button2).
15196 2000-12-08 Havoc Pennington <hp@redhat.com>
15198 * gtk/gtktextbtree.c (gtk_text_btree_insert): fix breakage here
15199 that cause a segfault on text insertion
15201 * gtk/gtktextchild.c (gtk_text_child_anchor_queue_resize): fix
15204 * gtk/gtktextiter.c (test_log_attrs): use
15205 _gtk_text_buffer_get_line_log_attrs to speed things up a bit
15207 * gtk/gtktextbuffer.c (_gtk_text_buffer_get_line_log_attrs):
15208 Get log attrs for a line, using a cache stored on the buffer
15210 * gtk/gtkcolorsel.h (GTK_COLOR_SELECTION_GET_CLASS): fix typo,
15211 reported by Jeff Franks
15213 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
15215 * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
15216 /dev/ttyS0 -> /dev/mouse
15218 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
15220 * gdk/linux-fb/gdkfont-fb.c (gdk_fontset_load):
15221 Added dummy gdk_fontset_load.
15223 2000-12-08 Alexander Larsson <alexl@redhat.com>
15225 * docs/README.linux-fb:
15226 * docs/Makefile.am:
15227 Initial GtkFB docs.
15229 * gdk/linux-fb/Makefile.am:
15230 Define GDK_DATA_PREFIX.
15232 * gdk/linux-fb/gdkmain-fb.c:
15234 Change default display to /dev/fb0.
15236 * gdk/linux-fb/gdkpango-fb.c:
15237 Add $(prefix)/share/fonts/ to font path.
15239 2000-12-08 Alexander Larsson <alla@lysator.liu.se>
15241 * gdk/linux-fb/gdkkeyboard-fb.c:
15242 New file containing the abstracted keyboard driver. Most code
15243 taken from gdkinput-ps2.c
15245 * gdk/linux-fb/gdkinput-ps2.c:
15248 * gdk/linux-fb/Makefile.am:
15249 Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
15251 * gdk/linux-fb/gdkcolor-fb.c:
15252 display->fb was renamed to display->fb_fd.
15254 * gdk/linux-fb/gdkcursor-fb.c:
15255 gdk_mouse_get_info -> gdk_fb_mouse_get_info
15257 * gdk/linux-fb/gdkinput.c:
15258 Moved gdk_input_init here from gdkinput-ps2.c
15260 * gdk/linux-fb/gdkmain-fb.c:
15261 display->fb was renamed to display->fb_fd.
15262 Now the tty and the console is opened here instead
15263 of in the keyboard driver. Also check GDK_VT to see what
15265 Move gdk_beep () here from gdkinput-ps2.c
15266 gdk_mouse_get_info -> gdk_fb_mouse_get_info
15268 * gdk/linux-fb/gdkmouse-fb.c:
15270 gdk_mouse_get_info -> gdk_fb_mouse_get_info
15271 Return correct keyboard modifiers.
15272 GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
15274 * gdk/linux-fb/gdkprivate-fb.h:
15275 Add tty and vt info to display.
15276 Add orignal modeinfo storage to display
15277 Update global functions
15279 * gdk/linux-fb/gdkwindow-fb.c:
15280 Added gdk_fb_window_find_focus().
15281 gdk_mouse_get_info -> gdk_fb_mouse_get_info
15283 2000-12-07 Havoc Pennington <hp@pobox.com>
15285 * gdk/x11/gdkkeys-x11.c (gdk_keymap_lookup_key): fix name of
15286 function, noticed by Alex
15288 2000-12-06 Elliot Lee <sopwith@redhat.com>
15290 * configure.in: Detect freetype properly
15292 * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of
15295 2000-12-06 Alexander Larsson <alexl@redhat.com>
15297 * gdk/linux-fb/Makefile.am:
15300 * gdk/linux-fb/gdkmouse-fb.c:
15301 New file. Abstracted the mouse drivers a bit.
15303 * gdk/linux-fb/gdkcursor-fb.c:
15304 The cursor hide/show functions was moved here from gdkinput-ps2.c.
15306 * gdk/linux-fb/gdkinput-ps2.c:
15307 Removed old mouse handling code. Moved cursor handling code
15308 to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
15309 gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
15310 gdk_mouse_get_info.
15312 * gdk/linux-fb/gdkmain-fb.c:
15313 Pass NULL pointers for x,y in gdk_mouse_get_info call.
15315 * gdk/linux-fb/gdkprivate-fb.h:
15316 Removed public gdk_fb_find_common_ancestor, added and renamed
15317 functions for the new mouse handling code.
15319 * gdk/linux-fb/gdkwindow-fb.c:
15320 Moved gdk_fb_window_send_crossing_events here. added global
15321 variable gdk_fb_window_containing_pointer. made
15322 gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
15323 renamed to gdk_mouse_get_info.
15325 2000-12-06 Alexander Larsson <alexl@redhat.com>
15327 * gdk/linux-fb/gdkevents-fb.c:
15328 Update to match latest gmain/gsource changes.
15330 * gdk/linux-fb/gdkinput-ps2.c:
15331 Bogus gdk_keymap_get_entries_for_keycode implementation so that
15332 it links. Will be implemented later.
15334 2000-12-03 Havoc Pennington <hp@pobox.com>
15336 * gdk/Makefile.am: add gdkkeys.[hc]
15338 * gdk/gdkkeys.h, gdk/gdkkeys.c: Move all the keyval stuff to these
15339 files from gdk.h, gdk.c; add GdkKeymap type and operations on it.
15341 * acconfig.h, configure.in: add checks and command line options
15344 * gdk/x11/gdkkeys-x11.c: Implement the above functions
15346 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Put the keycode
15347 and group in the key event
15349 * gdk/gdkevents.h (struct _GdkEventKey): Add a hardware_keycode
15350 field with the low-level hardware key code, and a group
15351 field with the keyboard group
15353 * gdk/x11/gdkprivate-x11.h: include config.h for HAVE_XKB,
15354 and declare a couple globals used for keymap handling
15356 * gtk/gtkimcontextsimple.c: Implement ISO 14755 input method,
15357 hold down Shift-Control and type a hex number to get a Unicode
15358 character corresponding to the hex number
15359 (gtk_im_context_simple_get_preedit_string): Fix cursor position
15360 (return bytes not chars)
15362 2000-12-05 Elliot Lee <sopwith@redhat.com>
15364 * gdk/gdkcolor.h: Make GdkColor specify element sizes
15365 to avoid waste on 64-bit platforms.
15367 Tue Dec 5 15:49:31 2000 Owen Taylor <otaylor@redhat.com>
15369 * INSTALL: Fix link to PNG home, remove reference
15372 * gdk/x11/gdkevents-x11.c: Fix up for new GMain API.
15374 * gdk/win32/gdkevents-win32.c: Fix up for new GMain API. (Not
15377 * gtk/gtkcheckmenuitem.c: Permanently turn on
15378 always_show_toggle.
15380 * gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
15381 be NULL. (Vladimir Klebanov, #26545)
15383 * gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
15384 some signed/unsigned comparison problems. (#6510,
15387 * gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
15388 return type to boolean (Oskar Liljeblad, #18648)
15390 2000-12-05 Alexander Larsson <alexl@redhat.com>
15392 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
15393 Remove bogus colormap setting.
15395 2000-12-05 Alexander Larsson <alexl@redhat.com>
15397 * gdk/linux-fb/gdkcolor-fb.c:
15398 More complete colormap handling. Now GdkRGB work in 8 bpp modes.
15400 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
15403 Tue Dec 5 13:17:53 GMT 2000 Tony Gale <gale@gtk.org>
15405 * docs/tutorial/gtk-tut.sgml: DND updates
15407 2000-12-05 Alexander Larsson <alla@lysator.liu.se>
15409 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15410 Remove old debug g_warning().
15411 (gdk_fb_draw_drawable): The src argument can be either a wrapper
15412 or an implementation, just pass the implementation to draw_drawable_2.
15414 * gdk/linux-fb/gdkprivate-fb.h:
15415 Added GDK_IS_DRAWABLE_IMPL_FBDATA()
15417 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15418 clear and invalidate area when window is destroyed.
15419 (send_map_events): Remove old commented out code.
15421 2000-12-05 Alexander Larsson <alexl@redhat.com>
15423 * gdk/linux-fb/gdkpango-fb.c:
15424 Use italic instead of oblique in font aliases.
15426 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
15427 _gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
15428 other unsupported functions.
15430 2000-12-04 Havoc Pennington <hp@redhat.com>
15432 * gtk/gtkpaned.c (gtk_paned_expose): fix this to be sane
15434 * gtk/gtkvpaned.c (gtk_vpaned_expose): Add an expose handler
15436 * gtk/gtkhpaned.c (gtk_hpaned_expose): Add an expose handler
15438 * gtk/gtknotebook.c (gtk_notebook_draw_tab): put in a temporary
15439 hack to avoid infinite loops (synthetic expose event) -
15440 Owen has more appropriate fixes in a branch he'll check in later.
15442 * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle paragraph
15443 separator, CR, and CRLF as line ends
15445 * gtk/gtktextbtree.c (gtk_text_btree_insert): on insertion, break
15446 into lines using pango_find_paragraph_boundary(); other bits of
15447 the widget are still going to be broken if the boundary isn't '\n'
15450 2000-12-04 Alexander Larsson <alexl@redhat.com>
15452 * gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
15455 * gdk/linux-fb/gdkpango-fb.c:
15456 Copied some 26.6 scaling macros from pango to clean up the rounding.
15457 (pango_fb_font_get_glyph_info): Correct sign on x value.
15459 * gdk/linux-fb/gdkprivate-fb.h:
15460 Removed unreferenced external functions.
15462 * modules/linux-fb/Makefile.am: Use ` instead of '.
15464 * modules/linux-fb/basic.c:
15465 Remove dead code. In particular the dummy lang engine which broke all
15466 pango layouts in GtkFB. Don't include tables-big.i anymore.
15468 * modules/linux-fb/tables-big.i:
15469 Upgrade to latest version from pango. Left for reference, basic_ranges
15472 2000-12-04 Havoc Pennington <hp@redhat.com>
15474 Fix bugs Alex found:
15476 * gtk/gtktooltips.c (gtk_tooltips_force_window): nuke connection
15479 * gtk/gtkdnd.c (gtk_drag_highlight): nuke connection to "draw"
15481 * gtk/gtkcolorsel.c (palette_new): nuke connection to "draw"
15483 * gtk/gtklistitem.c (gtk_list_item_expose): Put the old _draw()
15484 implementation in here, apparently the expose() implementation was
15487 2000-12-04 Alexander Larsson <alexl@redhat.com>
15489 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15490 Return positive descent.
15492 2000-12-02 Havoc Pennington <hp@pobox.com>
15494 * gtk/gtkwidget.h (struct _GtkWidgetClass): Remove "draw" virtual
15497 * gtk/gtkwidget.c (gtk_widget_draw): Now just queues a draw then
15498 calls gdk_window_process_updates() to push the exposes through
15499 (gtk_widget_class_init): No more draw signal, no
15500 gtk_widget_real_draw()
15502 * gtk/gtkbin.c (gtk_bin_draw): remove
15504 * gtk/gtkbox.c (gtk_box_draw): remove
15506 * gtk/gtkbutton.c (gtk_button_draw): remove
15508 * gtk/gtkcalendar.c (gtk_calendar_draw): remove
15510 * gtk/gtkcheckbutton.c (gtk_check_button_draw): remove
15512 * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_draw): remove
15514 * gtk/gtkclist.c (gtk_clist_draw): remove
15516 * gtk/gtkentry.c (gtk_entry_draw): remove
15518 * gtk/gtkeventbox.c (gtk_event_box_draw): remove
15520 * gtk/gtkfixed.c (gtk_fixed_draw): remove
15522 * gtk/gtkframe.c (gtk_frame_draw): remove
15524 * gtk/gtkhandlebox.c (gtk_handle_box_draw): remove
15526 * gtk/gtkhpaned.c (gtk_hpaned_draw): remove
15528 * gtk/gtklayout.c (gtk_layout_draw): remove
15530 * gtk/gtklist.c (gtk_list_draw): remove
15532 * gtk/gtklistitem.c (gtk_list_item_draw): remove
15534 * gtk/gtkmenu.c (gtk_menu_draw): remove
15536 * gtk/gtkmenubar.c (gtk_menu_bar_draw): remove
15538 * gtk/gtkmenuitem.c (gtk_menu_item_draw): remove
15540 * gtk/gtknotebook.c (gtk_notebook_draw): remove
15542 * gtk/gtkoptionmenu.c (gtk_option_menu_draw): remove
15544 * gtk/gtkpacker.c (gtk_packer_draw): remove
15546 * gtk/gtkrange.c (gtk_range_draw): remove
15548 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_draw): remove
15550 * gtk/gtkspinbutton.c (gtk_spin_button_draw): remove
15552 * gtk/gtktable.c (gtk_table_draw): remove
15554 * gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_draw): remove
15556 * gtk/gtktext.c (gtk_text_draw): remove
15558 * gtk/gtktextview.c (gtk_text_view_draw): remove
15560 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): remove
15562 * gtk/gtktoolbar.c (gtk_toolbar_draw): remove
15564 * gtk/gtktree.c (gtk_tree_draw): remove
15566 * gtk/gtktreeitem.c (gtk_tree_item_draw): remove
15568 * gtk/gtktreeview.c (gtk_tree_view_draw): remove
15570 * gtk/gtkviewport.c (gtk_viewport_draw): remove
15572 * gtk/gtkvpaned.c (gtk_vpaned_draw): remove
15574 * gtk/gtkvscale.c (gtk_vscale_draw): remove
15576 * gtk/gtkwindow.c (gtk_window_draw): remove
15578 2000-20-01 Anders Carlsson <andersca@gnu.org>
15580 * gtk/gtktogglebutton.c (gtk_toggle_button_draw): Fix bug when
15581 a GtkToggleButton is both insensitive and active, it was being
15582 drawn by the GtkButton draw handler which doesn't check the
15583 state. Now it's calling gtk_toggle_button_paint instead.
15585 2000-12-01 Havoc Pennington <hp@redhat.com>
15587 * gtk/gtktextdisplay.c (gtk_text_layout_draw): don't create
15588 dangling pointers to the appearance attributes from the
15591 * gdk/gdkdraw.c (gdk_drawable_get_image): allow negative
15592 width/height to mean "full width/height of drawable"
15594 * gtk/gtktextview.h, gtk/gtktextview.c: Implement double/triple
15595 click to select word/line
15597 * gtk/gtktextiter.c (test_log_attrs): include paragraph delimiters
15598 when getting log attrs. Get a slice, so that pixmaps and stuff
15599 are properly handled.
15601 * gtk/gtktextbuffer.c (paste): Fix pasting to work properly if you
15602 paste into the selection (replaces selection now, previously
15603 crashed or added to selection). Reveals longstanding btree bug -
15604 select multiple lines, middle-click on the selection, boom. This
15605 isn't related to my changes though.
15607 * gtk/gtkentry.c (gtk_entry_move_forward_word): Update to reflect
15608 PangoLogAttrs changes
15609 (gtk_entry_move_backward_word): ditto
15611 * gtk/gtktextlayout.h, gtk/gtktextlayout.c: Make the iter motion
15612 functions return bool whether the iter moved onto a
15613 dereferenceable position.
15615 * gtk/gtktextview.h, gtk/gtktextview.c: Add a bunch of public
15616 functions for motion in terms of display lines.
15618 * gtk/gtktextmark.c (gtk_text_mark_get_buffer): Add function to
15619 get the buffer a mark is inside
15621 2000-12-01 Alexander Larsson <alexl@redhat.com>
15623 * gdk/linux-fb/Makefile.am:
15624 * modules/linux-fb/Makefile.am:
15625 Freetype 2 final uses freetype-config
15627 * gdk/linux-fb/gdkpango-fb.c:
15628 Upgrade to use Freetype 2 final.
15629 More flexible support for font aliases, this also fixes a bug with
15630 GtkFontSelector, as the aliases must be visible in the font/family list,
15631 or GtkFontSelector reads uninitialized memory.
15633 2000-11-30 Hidetoshi Tajima <tajima@eng.sun.com>
15635 * modules/input/gtkimcontextxim.c (setup_im): Add NULL argument to
15636 XGetIMValues to properly terminate variable argument list, and do
15637 NULL return check for ic_values and xim_styles.
15639 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset):
15640 Restore preedit state after XmbResetIC().
15642 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
15643 XvaCreateNestedList() should take XvaNestedList, but not
15646 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_reset,
15647 preedit_draw_callback, preedit_caret_callback): Match
15648 "preedit-changed" signal name to "preedit_changed" to be
15649 consistent to the spec.
15651 * gtk/gtkimcontextsimple.c (check_table):
15652 Match "preedit-changed" to "preedit_changed" to be consistent
15655 Thu Nov 30 23:03:04 2000 Owen Taylor <otaylor@redhat.com>
15657 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Properly handle
15658 gc->clip_region == NULL>
15660 2000-11-30 Tor Lillqvist <tml@iki.fi>
15662 Changes by Hans Breuer:
15664 * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
15665 Dont't use negative width and height as max_hints. This fixes
15666 Owen's recent testgtk changes for win32.
15668 * gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get,
15669 gdk_win32_hdc_release): These are exported and may be called with
15670 other drawable types than our GdkDrawableImplWin32 (?).
15672 * gdk/gdkwindow.c: Backing store appears to work on Windows now,
15673 so always #define USE_BACKING_STORE.
15675 * gtk/gtktextdisplay.c (render_layout_line): Use g_print instead
15676 of printf for debugging output.
15678 * gtk/gtktextlayout.c (allocate_child_widgets): Ditto.
15680 * gtk/gtktextview.c (gtk_text_view_child_allocated): Ditto.
15682 * gtk/gtkmain.h (GTKMAIN_C_VAR): Win32 fix for dllimport
15685 * gtk/gtktexttypes.h: Ditto.
15687 * gtk/gtklabel.c (gtk_label_set_markup_with_accel): Return a value
15688 (GDK_VoidSymbol) also if in case of arg check failure.
15690 * gtk/gtkimcontextsimple.c
15691 (gtk_im_context_simple_get_preedit_string): Don't assign cursor
15692 position to the pointer, but to the variable it points to.
15694 * gtk/makefile.msc.in (DEFINES): Define GTK_VERSION.
15696 * gtk/gtk.def: Updates.
15698 2000-11-29 Elliot Lee <sopwith@redhat.com>
15700 * gtk/gtkmodelsimple.c: Inherits from GTK_TYPE_OBJECT, not
15701 GTK_TYPE_TREE_MODEL.
15703 2000-11-29 Alexander Larsson <alexl@redhat.com>
15705 * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
15706 Set the size of the font from the description.
15707 (gdk_text_width): Gross hack that calculates the width
15708 of text by text_length * size/2. This is necessary because
15709 GtkLabel does some ugly gtk_string_width call to calculate
15711 (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
15713 Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
15715 * docs/tutorial/gtk-tut.sgml: DND updates
15717 2000-11-29 Alexander Larsson <alexl@redhat.com>
15719 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
15720 If you pass width or height == 0 to gdk_window_clear_area they
15721 should be calculated from the window size.
15723 2000-11-29 Alexander Larsson <alexl@redhat.com>
15725 * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
15726 a grab, but no grab-cursor, use the cursor from the grabbed
15727 window. (gdk_fb_window_send_crossing_events): Send normal
15728 enter/leave notifications if grab and owner_events == TRUE.
15730 2000-11-29 Alexander Larsson <alexl@redhat.com>
15732 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15733 Do implicit button grabs, even if the window doesn't
15735 (gdk_fb_window_send_crossing_events): If there is a
15736 grab, only the grabbed window gets normal enter/leave
15737 notifications. On ungrab go from grabbed window to current.
15738 Don't send any notification to b when propagating from c -> b.
15739 If setting a grab on window, don't set prev_window.
15740 (handle_mouse_input): Send enter/leave events to the window the
15741 mouse is over, not the grabbed one.
15743 2000-11-28 Elliot Lee <sopwith@redhat.com>
15745 * gdk/gdkregion-generic.c: Zap warning.
15746 * modules/input/Makefile.am: Only build im-xim if USE_X11 is enabled
15747 * gtk/gtkrc.c: s/strcpy/memcpy/ to save a few nanoseconds.
15749 2000-11-28 Alexander Larsson <alla@lysator.liu.se>
15751 * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
15752 The cursor should be hidden if it is part of either the
15753 source or destination region. Not only if it is in both.
15754 (gdk_window_set_transient_for): Silence warnings.
15756 2000-11-28 Alexander Larsson <alexl@redhat.com>
15758 * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup):
15759 The default mode in X is Pie Arcs, therefore that is
15762 2000-11-28 Alexander Larsson <alexl@redhat.com>
15764 * gdk/linux-fb/gdkinput-ps2.c:
15765 Implement correct EnterNotify/LeaveNotify:
15766 (gdk_fb_window_send_crossing_events): New function that sends
15767 all GdkCrossingEvents from the last mouse-window to the specified
15769 (gdk_fb_window_visibility_crossing): Removed function.
15770 (handle_mouse_input): Use gdk_fb_window_send_crossing_events()
15771 (send_button_event, gdk_fb_cursor_reset): Use gdk_window_at_pointer
15772 instead of gdk_window_get_pointer() for better readability.
15774 * gdk/linux-fb/gdkmain-fb.c (gdk_fb_pointer_grab,
15775 gdk_fb_pointer_ungrab): Use gdk_fb_window_send_crossing_events.
15777 * gdk/linux-fb/gdkprivate-fb.h:
15778 removed gdk_fb_window_visibility_crossing, added
15779 gdk_fb_window_send_crossing_events and gdk_fb_find_common_ancestor.
15781 gdk/linux-fb/gdkwindow-fb.c (gdk_fb_find_common_ancestor):
15782 New function that finds the least common ancestor of two windows.
15783 (gdk_window_show, gdk_window_hide):
15784 Use gdk_fb_window_send_crossing_events.
15785 (gdk_fb_window_move_resize): Send configure events to toplevel
15786 windows. Use gdk_fb_window_send_crossing_events.
15788 2000-11-27 Havoc Pennington <hp@redhat.com>
15790 * gtk/gtkprivate.h (enum): Remove a trailing comma
15792 2000-11-27 Federico Mena Quintero <federico@helixcode.com>
15794 * gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
15795 the "changed" callback of the adjustment. We need to redraw the
15796 spin button's arrows when the adjustment's range changes.
15797 (adjustment_changed_cb): Draw the arrows.
15798 (gtk_spin_button_value_changed): Draw the arrows.
15800 2000-11-23 Alexander Larsson <alexl@redhat.com>
15802 * gdk/linux-fb/gdkselection-fb.c:
15803 Initial selection implementation.
15805 * gtk/gtkselection.c:
15806 if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
15807 requestor in gtk_selection_request.
15809 * gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
15810 Added gdk_selection_property atom.
15812 * gdk/linux-fb/gdkprivate-fb.h:
15813 Export _gdk_selection_window_destroyed.
15814 Removed mask_off_x/y from GdkCursorPrivateFB.
15815 Removed hbearing, added top, left to PangoFBGlyphInfo.
15817 * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
15818 Call _gdk_selection_window_destroyed
15819 (_gdk_windowing_window_init): Don't call gdk_cursor_new() before
15820 the root window has been created.
15821 (static_dx_hack, static_dy_hack, compare_draw_rects,
15822 gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
15823 in region. They are already sorted. Instead just traverse them in
15824 reverse if draw_direction < 0.
15826 * gdk/linux-fb/gdkinput-ps2.c (send_button_event):
15827 Double-clicks must be sent after the normal button_press.
15828 (gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
15830 * gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
15831 Pass _gdk_fb_screen_gc instead of NULL.
15833 * gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
15834 Initialize gdk_selection_property.
15835 (gdk_event_make): Remove unused code.
15837 * gdk/linux-fb/gdkcursor-fb.c:
15838 Make the pixmap for the cursor the same size as the mask. Also remove
15839 the mask_off_x/y fields in GdkCursorPrivateFB and combine
15840 _gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
15841 Now the whole cursor is visible.
15843 * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
15844 Fix bug where xdest+height instead of ydest+height was used
15845 to calculate if the source and dest overlapped. This fixes the
15846 redraw bug when the main window in testgtk was scrolled when
15847 partially covered by a tall window.
15848 Copy rectangles in region in order depending on draw_direction.
15849 Also moved the draw_direction flipping of start_y and end_y into
15850 the gc functions, as this might not be what all of them want.
15851 (gdk_fb_draw_lines): Support dashed lines.
15852 (gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
15853 so that the text is positioned correctly (was 1 pixel high).
15855 gdk/linux-fb/gdkgc-fb.c:
15856 Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
15857 all lines were drawn a pixel to short. Also checked the default of
15858 the rest of the values, and they're the same as X now.
15860 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
15861 Clean up pixel positioning of the glyphs. Just use bgy->top and
15862 bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
15863 to all divisions to get correct rounding behaviour.
15865 * gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
15866 gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
15867 Moved start_y/end_y flip into draw_drawable implementations.
15868 Flip also x rendering when draw_direction < 0.
15869 Remove unneccesary multiply with draw_direction.
15871 Wed Nov 22 14:11:19 GMT 2000 Tony Gale <gale@gtk.org>
15873 * docs/tutorial/gtk-tut.sgml:
15874 - get rid of gtk_toggle_button_toggled FUD
15875 - start DND section - needs work - based on:
15876 http://wolfpack.twu.net/docs/gtkdnd/
15878 2000-11-22 Alexander Larsson <alexl@redhat.com>
15880 * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
15881 Correct calculation of font metrics. Now GtkEntrys have sane
15884 2000-11-22 Alexander Larsson <alexl@redhat.com>
15887 Add new type GdkSpan
15889 * docs/reference/gdk/gdk-sections.txt,
15890 docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
15892 Implement and document gdk_region_spans_intersect_foreach.
15894 * gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
15895 Add new file gdkrender-fb.c which contains all core
15897 Add gdk_fb_fill_rectangle_generic (old rectangle code) and
15898 gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
15899 (optimized rectangle fillers).
15901 * gdk/linux-fb/gdkdrawable-fb2.c:
15902 Move all rendering code to gdkrender-fb.c.
15903 Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
15904 Use the new span intersection functions in gdk_fb_fill_spans.
15905 gdk_fb_draw_rectangle() clips filled rectangles and calls
15906 gc->fill_rectangle with the result.
15907 gdk_fb_fill_spans() gets extra argument "sorted".
15909 * gdk/linux-fb/gdkevents-fb.c:
15910 Remove unused includes and defines.
15911 New function gdk_fb_get_time() to get correct time for events.
15913 * gdk/linux-fb/gdkinput-ps2.c:
15914 Use gdk method of generating multiple-clicks (gdk_event_button_generate)
15915 Make sure to set the time of all events.
15917 * gdk/linux-fb/gdkmain-fb.c:
15918 Use gdk_fb_get_time ().
15920 * gdk/linux-fb/gdkprivate-fb.h:
15921 New virtual GC calls: fill_span & fill_rectangle.
15922 Export gdk_fb_get_time().
15923 gdk_fb_fill_spans() gets extra argument "sorted".
15925 * gdk/linux-fb/mi*.c:
15926 Use GdkSpan instead of GdkRectangle.
15927 Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
15928 from XFree 4 source)
15930 2000-11-22 <jrb@redhat.com>
15932 * gtk/gtktreeview.c (gtk_tree_view_calc_size): It's amazing what
15933 reversing the order in an if statement will do. Doing so managed
15934 to make the treemodelsort half work. Other half will follow after
15935 I get the insert function fully fixed.
15937 2000-11-21 Elliot Lee <sopwith@redhat.com>
15938 * gtk/gtkmenushell.h: GdkEventButton->button can occupy significantly
15939 more than 2 bits. Besides, I need to implement an evil hack. :)
15941 Tue Nov 21 14:17:51 GMT 2000 Tony Gale <gale@gtk.org>
15943 * docs/tutorial/gtk-tut.sgml: minor corrections
15945 2000-11-20 Jonathan Blandford <jrb@redhat.com>
15946 * gtk/gtktreemodelsort.h: Add convertion functions to let you
15947 convert to and from relative path's and iters.
15949 * gtk/treestoretest.c: move to having a sorted/unsorted view. Start
15950 testing sorting functions a bit better. Currently broken -- will
15953 2000-11-20 Havoc Pennington <hp@redhat.com>
15955 * gtk/gtkwidget.c: Documented a bunch of functions in here
15956 (gtk_widget_realize): Warn if you try to realize
15957 a widget with no parent that isn't a toplevel
15958 (gtk_widget_intersect): return a gboolean
15960 2000-11-20 Havoc Pennington <hp@redhat.com>
15962 * gtk/gtktextview.c, gtk/gtktextlayout.c, gtk/gtktextchild.c,
15963 gtk/testtext.c: Semi-finish widget embedding. Need guffaw
15964 scrolling to be implemented in GDK to finish. Also, right now
15965 we just size_allocate all children on every layout change,
15966 which is pretty lame. Test commented out of testtext.c,
15967 until it works better.
15969 2000-11-20 Alexander Larsson <alla@lysator.liu.se>
15971 * gdk/linux-fb/gdkdrawable-fb2.c:
15972 Removed unused arguments from gdk_fb_drawable_get_pixel().
15974 * gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
15975 Renamed fidur specific mouse packet data in MouseDevice to
15976 generic. Used it in ps2 mouse handling code to avoid blocking
15979 Sat Nov 18 18:00:17 2000 Jonathan Blandford <jrb@redhat.com>
15981 * demos/gtk-demo/main.c: Changed to have the list become
15982 non-italic when the demo window is destroyed through an external
15983 event (like a close button). Doing so found three bugs in the
15986 * demos/gtk-demo/*.c (do_*): Changed to return the toplevel window.
15988 * gtk/gtkliststore.c (gtk_list_store_set_cell): emit "change" when
15989 we actually set the cell.
15991 * gtk/gtktreestore.c (gtk_tree_store_set_cell): ditto
15993 * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
15994 free a leaked path. Thanks memprof.
15996 Sat Nov 18 11:58:17 2000 Owen Taylor <otaylor@redhat.com>
15998 * gdk/gdkrgb.c (gdk_rgb_allocate_images): Fix
15999 off-by-one error when destroying allocated segments
16000 on failure. (Elliot)
16002 Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
16004 * gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
16005 memleaks found by Evan Martin.
16007 Fri Nov 17 20:14:20 2000 Owen Taylor <otaylor@redhat.com>
16011 * NEWS: Updates for 1.3.2
16013 2000-11-17 Tor Lillqvist <tml@iki.fi>
16015 * gdk/gdkevents.h: Add comment that GdkXEvent isn't only for XEvent,
16016 but in general for window system specific events.
16019 * gtk/makefile.mingw.in
16020 * gtk/makefile.msc.in: Update.
16022 * gtk/gtktexttypes.h: Mark variables for export/import from DLL.
16024 Thu Nov 16 16:11:39 2000 Owen Taylor <otaylor@redhat.com>
16026 * gtk/Makefile.am (EXTRA_DIST): Do not, in any circumstances,
16027 distribute gtk.immodules.
16029 * gtk/Makefile.am (install-data-local): Don't install the
16030 gtk.immodules file created for the uninstalled modules;
16031 instead run gtk-query-immodules after install
16033 Wed Nov 15 21:51:31 2000 Owen Taylor <otaylor@redhat.com>
16035 * modules/input/Makefile.am (im_xim_la_LDFLAGS): Point
16036 -rpath to the right install location.
16038 * modules/input/Makefile.am (im_inuktitut_la_LDFLAGS): Remove
16041 * gtk/gtkthemes.c (gtk_theme_engine_get): Set engine->name
16044 2000-11-15 Havoc Pennington <hp@pobox.com>
16046 * gtk/gtktextview.c (gtk_text_view_start_cursor_blink): Apply
16047 patch from Mikael Hermansson to temporarily stop blinking while
16048 the user is using the keyboard to type or navigate.
16050 Also, when blinking, stay on for longer than we stay off. Also,
16051 return from start_cursor_blink if !cursor_visible, to save
16052 checking that flag all over the place before we call
16053 start_cursor_blink.
16055 Thu Nov 16 01:25:51 2000 Robert Brady <robert@suse.co.uk>
16057 * gtk/gtkrc.*: Remove the locale-specific gtkrc's, as they
16058 only contain a "fontset" line, which is now ignored.
16060 * gtk/gtkentry.c (gtk_entry_button_release): Make
16061 double-click-to-select-word work.
16063 Wed Nov 15 20:16:54 2000 Owen Taylor <otaylor@redhat.com>
16065 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
16066 Don't move back one char when we are actually at the end of the
16069 2000-11-15 Robert Brady <robert@suse.co.uk>
16071 * modules/input/iminuktitut.c (inuktitut_compose_seqs):
16074 * gtk/gtkmain.c: s/CODSET/CODESET/, include <libintl.h> for
16075 bind_textdomain_codeset.
16077 (gtk_init_check): Make the warning about translating default:LTR
16080 Wed Nov 15 18:39:40 2000 Owen Taylor <otaylor@redhat.com>
16082 * **/Makefile.am : remove unecessary rules for win32-specific
16083 config-substituted targets. If you want these rules, use
16084 --enable-maintainer-mode (called automatically by autogen.sh).
16085 Stops a lot of unneccessary make-time warnings.
16087 * gtk/gtktext{layout,display}.c: Factor in total width as
16088 well as screen when figuring alignment for word-wrap as well as
16089 no wrap; this is necessary to handle lines that cannot be wrapped
16092 2000-11-15 Havoc Pennington <hp@redhat.com>
16094 * gtk/testtext.c: Implement essential color cycling feature
16096 2000-11-15 Havoc Pennington <hp@redhat.com>
16098 * gtk/gtktextview.c (changed_handler): Invalidate the side windows
16099 when we invalidate the main window.
16101 * gtk/testtext.c (create_view): Get rid of text_changed_callback,
16102 GtkTextView will now invalidate the side windows for us when text
16105 Wed Nov 15 16:02:20 2000 Owen Taylor <otaylor@redhat.com>
16107 * gtk/gtktextview.c (changed_handler): Call scroll_calc_now()
16108 unconditionally, since we may need to update the horizontal
16109 scrollbars even if the height didn't change.
16111 * gtk/gtktextlayout.c (add_preedit_attrs): Always get
16112 the extra attrs, since some of them affect size.
16114 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Factor in
16115 x_offset correctly.
16117 2000-11-15 Havoc Pennington <hp@redhat.com>
16119 * gtk/gtktextlayout.c (set_para_values): If indent is negative,
16120 don't move the first line out into the margin, instead move the
16121 whole paragraph in order to make space for the first line within
16124 2000-11-15 Havoc Pennington <hp@redhat.com>
16126 * gtk/gtktextview.c (changed_handler): offset redraw rect by
16127 xoffset in addition to yoffset, so horizontal scrolling doesn't
16130 2000-11-15 Havoc Pennington <hp@redhat.com>
16132 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Remove extra pixel
16134 (render_layout_line): fix reversed test that caused weird
16135 underlines to get drawn
16137 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
16139 * gdk/linux-fb/gdkprivate-fb.h:
16142 2000-11-15 Alexander Larsson <alla@lysator.liu.se>
16144 * gdk/linux-fb/gdkprivate-fb.h:
16145 Added virtual functions set_pixel, get_color,
16146 fill_span and draw_drawable to the GC.
16147 Added global _gdk_fb_screen_gc to use instead of
16148 NULL when drawing to the screen.
16149 Added _gdk_fb_gc_calc_state() prototype.
16151 * gdk/linux-fb/gdkgc-fb.c:
16152 Call _gdk_fb_gc_calc_state() on any gc state change.
16154 * gdk/linux-fb/gdkglobals-fb.c:
16155 Add _gdk_fb_screen_gc
16157 * gdk/linux-fb/gdkdrawable-fb2.c:
16158 _gdk_fb_gc_calc_state() calculates best functions
16159 for the GC state and depth.
16160 Moved bpp specialized code to separate functions.
16161 Added optimized 24 bpp AA draw_drawable.
16163 * gdk/linux-fb/gdkevents-fb.c:
16164 Silence gcc warning.
16166 * gdk/linux-fb/gdkimage-fb.c:
16167 Use _gdk_fb_screen_gc
16169 * gdk/linux-fb/gdkwindow-fb.c:
16170 Init and use _gdk_fb_screen_gc
16172 * gdk/linux-fb/mitypes.h:
16173 Remove unused types.
16175 2000-11-14 Havoc Pennington <hp@pobox.com>
16177 * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
16180 2000-11-14 Havoc Pennington <hp@pobox.com>
16182 * gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
16184 * gtk/gtktexttypes.h (GTK_TEXT_UNKNOWN_CHAR): Add macro for
16185 unknown char, no real reason we were using a variable.
16186 Remove gtk_text_unknown_char variable. Fix all the text widget
16189 * gtk/gtktexttypes.c: Change "unknown character" to 0xFFFC,
16190 since the Unicode spec seems to prefer that character for our
16193 Wed Nov 15 02:18:01 2000 Robert Brady <robert@suse.co.uk>
16195 * gtk/gtkrc.c (gtk_rc_get_im_module_file): The return
16196 value of g_getenv() isn't freeable, so g_strdup it.
16198 * modules/input/inuktitut.c: Inuktitut input method.
16200 * modules/input/Makefile.am: Build this.
16202 2000-11-14 Elliot Lee <sopwith@redhat.com>
16204 * gtk/Makefile.am: Install gtk.immodules, needed for operation
16207 Tue Nov 14 20:13:06 2000 Owen Taylor <otaylor@redhat.com>
16209 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix
16210 reversed > that was causing Home to go to end of previous line.
16212 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): Ignore
16213 modified-keypresses (leave for bindings.)
16215 * modules/input/Makefile.am: Remove useless -export-dynamic
16216 from module LDFLAGS.
16218 2000-11-14 Havoc Pennington <hp@redhat.com>
16220 * gdk/gdkpango.c (gdk_draw_layout_line): Draw underlines one pixel
16223 * gtk/gtktextdisplay.c (render_layout_line): Take rise into
16224 account. Also, render rise, underline, background, etc. for
16225 pixbufs as well as text. Also, draw underlines one pixel higher.
16227 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display): Add a
16228 PangoAttribute for the rise, so it gets drawn properly. Also,
16229 add the GtkTextAppearance attribute for pixbuf/widget segments
16230 as well; we should go ahead and have rise, underline, background,
16231 stipple work for those
16233 * gtk/gtktexttag.c: Rename "offset" property to "rise" to match
16236 2000-11-15 Tor Lillqvist <tml@iki.fi>
16238 * gtk/makefile.{mingw,msc}.in (gtk_OBJECTS): Add new objects.
16240 * gtk/gtk.def: Update.
16242 * gtk/gtkrc.c: Can't check for G_OS_WIN32 until glib.h has been
16244 (gtk_rc_get_im_module_file): Use run-time installation directory
16247 * gdk/win32/rc/gdk.rc: Remove.
16248 * gdk/win32/rc/gdk.rc.in: New file.
16249 * gdk/win32/rc/Makefile.am: New file
16250 * gdk/win32/Makefile.am: Corresponding changes.
16252 * gtk/gtk.rc: Remove.
16253 * gtk/gtk-win32.rc.in: New file.
16254 * gtk/Makefile.am: Corresponding changes.
16256 * configure.in: Corresponding changes.
16258 * gtk/gtkcompat.h.win32: Remove, useless. A distribution already
16259 has a built gtkcompat.h. Developers using CVS code on Win32 can
16260 hand-edit it from gtkcompat.h.in.
16262 * gtk/makefile.{mingw,msc}.in: Correspondingly don't try to make
16263 gtkcompat.h from gtkcompat.h.win32.
16265 2000-11-14 Havoc Pennington <hp@redhat.com>
16267 * gtk/gtktextview.c (gtk_text_view_drag_motion): Fix drag-and-drop
16268 to default to GDK_ACTION_MOVE if the drag is within a single
16269 widget. Defaults to GDK_ACTION_COPY between widgets.
16271 Mon Nov 13 14:43:48 2000 Owen Taylor <otaylor@redhat.com>
16273 * demos/Makefile.am (test-inline-pixbufs.h): Fix srcdir != builddir
16275 * gtk/Makefile.am (INCLUDES): Add -I$(builddir)/gtk
16277 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h): Handles
16280 * modules/input/Makefile.am (INCLUDES): add $(top_srcdir)/gdk
16282 * configure.in (GTK_VERSION): Up to 1.3.2
16284 * modules/input/Makefile.am (im_xim_la_SOURCES): Add
16287 * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): Add
16288 missing doc comment.
16290 2000-11-14 Alexander Larsson <alexl@redhat.com>
16292 * modules/linux-fb/basic.c:
16293 Use the glib iconv wrappers.
16295 2000-11-13 Havoc Pennington <hp@pobox.com>
16297 * demos/gtk-demo/textview.c: spiff up the demo a bit; reveals
16300 * gtk/gtktextview.c (gtk_text_view_value_changed): don't try to
16301 scroll the GdkWindows before realization.
16303 2000-11-13 Havoc Pennington <hp@redhat.com>
16305 * gtk/gtktextdisplay.c (gtk_text_render_state_update): fix bug
16306 where GC didn't always get updated properly
16308 * demos/gtk-demo/textview.c (create_tags): Use subattributes
16309 of fonts instead of setting the entire font
16311 * gtk/testtext.c (fill_example_buffer): Use "size" instead of
16312 setting entire font
16314 * gtk/gtkdialog.c (gtk_dialog_add_button): Fix some warnings
16316 * gtk/gtktexttag.h, gtk/gtktexttag.c: Explode font_desc into
16317 a bunch of individually-settable font attributes. You can still
16318 use the "font" and "font_desc" args, they just set all the font
16319 attributes at once.
16321 2000-11-13 Elliot Lee <sopwith@redhat.com>
16323 * gdk/gdk.h: Add a couple of missing G_GNUC_CONST's.
16325 Mon Nov 13 14:29:32 2000 Jonathan Blandford <jrb@redhat.com>
16327 * gtk/gtktreemodel.c (gtk_tree_path_copy): confirm path != NULL
16328 * gtk/gtktreemodel.c (gtk_tree_path_free): ditto
16330 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): make
16333 2000-11-13 Havoc Pennington <hp@redhat.com>
16335 * gtk/gtkimmodule.c (gtk_im_module_init): Free the filename of
16338 * gtk/gtktexttag.c (gtk_text_attributes_copy): fix memory leak of
16341 * gtk/testtext.c: Test pixels above/below/inside paragraphs
16344 * gtk/gtktextview.c: Implement object args and setters/getters for
16345 all the aspects of the GtkTextAttributes that are not set from
16346 GtkWidget attributes. This is spacing, justification, margins,
16349 (gtk_text_view_set_arg)
16350 (gtk_text_view_get_arg): implement get/set for editable, wrap mode
16352 (gtk_text_view_class_init): Add args for justify, left_margin,
16353 right_margin, indent, and tabs
16356 * gtk/gtktextlayout.c (set_para_values): fix to display indent
16359 * gtk/gtktexttag.c: Remove left_wrapped_line_margin attribute,
16360 replace with indent attribute
16362 * gtk/gtktextlayout.c (set_para_values): multiply indent by
16365 * gtk/gtktextdisplay.c (render_para): Use PangoLayoutIter,
16366 rearranging code to do that
16367 (gtk_text_layout_draw): Pass in the y for the whole LineDisplay,
16368 i.e. don't subtract the top_margin first, just to keep
16369 all margin-futzing in one place.
16371 * gdk/gdkpango.c (gdk_draw_layout): Use PangoLayoutIter
16373 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Remove
16374 special case of last line, Pango now handles this itself.
16375 (gtk_text_layout_get_iter_at_pixel): Fix incorrect clamp of the
16377 (gtk_text_layout_move_iter_to_x): port to use PangoLayoutIter
16378 (find_display_line_above): wasn't moving the byte index as it
16379 iterated over lines, so always returned byte 0. Also, port to use
16381 (find_display_line_below): same problem as
16382 find_display_line_above. Also, port to use PangoLayoutIter.
16384 2000-11-13 Alexander Larsson <alexl@redhat.com>
16386 * gdk/linux-fb/*.[ch]:
16387 Massive reindent to gtk+ standard. My hands hurt.
16389 * gdk/linux-fb/gdkcolor-fb.c:
16390 Move GdkColorPrivateFB from inherited to windowing_data
16392 * gdk/linux-fb/gdkcursor-fb.c:
16393 _gdk_cursor_new_from_pixmap made static
16395 * gdk/linux-fb/gdkdnd-fb.c:
16396 GdkDragContextPrivate moved to windowing_data
16398 * gdk/linux-fb/gdkdrawable-fb2.c:
16399 Removed endian.h, use glib endianness macros instead
16400 Some cleanups in the usage of GDK_DRAWABLE_FBDATA
16401 and GDK_DRAWABLE_IMPL_FBDATA
16403 * gdk/linux-fb/gdkfont-fb.c:
16404 Add empty gdk_font_load(). Needed for linking of Gtk+.
16406 * gdk/linux-fb/gdkimage-fb.c:
16407 Removed endian.h, use glib endianness macros instead
16408 Moved GdkImagePrivateFB to windowing_data
16409 gdk_image_new_bitmap didn't always allocate enough
16412 * gdk/linux-fb/gdkinput-ps2.c:
16413 Added semi-working support for MS serial mice.
16415 * gdk/linux-fb/gdkprivate-fb.h:
16416 s/GdkWindowPrivate/GdkWindowObject/
16417 Removed GdkWindowPrivate typedef
16418 s/GDK_DRAWABLE_P/GDK_DRAWABLE_FBDATA/
16419 Removed GDK_DRAWABLE_P
16420 Move GdkColorPrivateFB from inherited to windowing_data
16421 Moved GdkImagePrivateFB to windowing_data
16423 * gdk/linux-fb/gdkvisual-fb.c:
16424 Removed some unused debug code.
16426 * gdk/linux-fb/gdkwindow-fb.c:
16427 Use stock cursors instead of including X headers.
16428 s/GdkWindowPrivate/GdkWindowObject/
16430 * gdk/linux-fb/mitypes.h:
16431 Removed unused types.
16433 * modules/linux-fb/basic.c:
16434 Use the pango fribidi wrappers.
16436 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
16438 * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c,
16439 gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c,
16440 gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c,
16441 gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc ->
16442 GEqualFunc where applicable.
16444 * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare ->
16445 pango_font_description_equal as changed in pango.
16447 * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal.
16449 * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal.
16451 * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal.
16453 * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal.
16455 * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal.
16457 * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal.
16459 * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and
16460 gtk_gc_drawable_compare -> gtk_gc_drawable_equal.
16462 * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and
16463 gtk_rc_styles_compare -> gtk_rc_styles_equal.
16465 2000-11-12 Havoc Pennington <hp@pobox.com>
16467 * demos/gtk-demo/Makefile.am (democodedir): change demo install
16468 dir to datadir/gtk+-2.0/demo
16470 * demos/gtk-demo/textview.c: Text widget demo; reveals all
16471 sorts of text widget and Pango font bugs. Urgh.
16473 * demos/gtk-demo/Makefile.am (demos): Add textview.c
16475 * demos/gtk-demo/main.c (create_tree): Add instructions at top of
16476 tree that you should double click to see the demo. Fix
16477 types of variables to reflect changed return values from
16478 GtkTreeStore and GtkTreeViewColumn constructors.
16480 * gtk/gtktextbuffer.c (gtk_text_buffer_new): ref/sink the
16481 newly-created buffer to prepare for GObject semantics
16483 * gtk/testtext.c: don't leak the buffer with GObject semantics
16485 * gtk/testtextbuffer.c: ditto
16487 2000-11-12 Havoc Pennington <hp@pobox.com>
16489 Rename this testgtk to gtk-demo to avoid confusion, and
16490 install it so people can use it as a supplement to
16493 * demos/gtk-demo: Moved from demos/testgtk
16495 * demos/testgtk: Removed
16497 * configure.in: make Makefile in gtk-demo
16499 * demos/gtk-demo/Makefile.am: Install sample source to
16500 datadir/gtk-demo (maybe there's a better place?), and
16501 rename the binary to gtk-demo
16503 * demos/gtk-demo/main.c (load_file): Load installed sample
16504 source if source isn't found in pwd.
16506 2000-11-09 Havoc Pennington <hp@pobox.com>
16508 * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char"
16509 argument to set the char displayed when visibility == FALSE
16510 (gtk_entry_create_layout): If !entry->visible, replace
16511 all chars with the "invisible char"
16513 * gtk/testgtk.c: Test the invisible_char deal
16515 Mon Nov 13 02:16:33 2000 Robert Brady <robert@suse.co.uk>
16517 * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
16518 can't get a native font in the right encoding.
16520 Mon Nov 13 00:09:29 2000 Robert Brady <robert@suse.co.uk>
16522 * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
16525 Sun Nov 12 19:11:42 2000 Owen Taylor <otaylor@redhat.com>
16527 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
16528 Fix warning when moving between paragraphs.
16530 * gtk/gtkentry.[ch]: Change move => move_cursor,
16531 delete => delete_from_cursor, insert => insert_at_cursor
16533 Sun Nov 12 22:52:51 2000 Robert Brady <robert@suse.co.uk>
16535 * modules/input/imviqr.c: A vietnamese VIQR-based input method.
16537 * modules/input/imthai-broken.c: A Thai input method for use if
16538 Thai keys are really generating Latin1 keysyms.
16540 * modules/input/Makefile.am: Build these.
16542 Sun Nov 12 22:15:35 2000 Robert Brady <robert@suse.co.uk>
16544 * gtk/gtkfileselection.c, gdk/win32/gdkfont-win32.c:
16545 g_filename_{to,from}_utf8 now takes an extra parameter.
16547 * gtk/gtkcalendar.c (gtk_calendar_init): Convert output of
16548 strftime into UTF-8.
16550 (column_from_x, gtk_calendar_paint_day_names): Support RTL
16553 (gtk_calendar_paint_day_names): Draw day names in the right
16556 Sun Nov 12 14:10:09 2000 Owen Taylor <otaylor@redhat.com>
16558 * gdk/x11/gdkselection-x11.c (gdk_utf8_to_compound_text): Fix
16559 problem with using result of g_get_charset() backwards -
16560 pointed out by Mikael Hermansson <mikeh@bahnhof.se>.
16562 * gtk/gtkwindow.c (gtk_window_compute_hints): Support
16563 negative min_width/height and max_width/height to
16564 mean "requisition"; this allows setting a window
16565 to be user-resizable in only one direction easily.
16567 * gtk/testgtk.c (create_main_window): Remove hard-coded
16568 usize - set a default size in the vertical direction.
16570 Sun Nov 12 13:33:01 2000 Owen Taylor <otaylor@redhat.com>
16572 * gtk/gtkrange.c: Add some missing casts. Support
16573 2 and 3 button clicks on the arrows to mean
16574 "move by pages" and "jump to end". (Like gtkspinbutton)
16576 2000-11-12 Hans Breuer <Hans@Breuer.Org>
16578 * gdk/win32/makefile.msc : reflect build module changes
16580 * gdk/win32/gdkcursor-win32.c : can't cast to impl type directly
16581 from GdkPixmap*, cast implementation member instead.
16583 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_drawable) : The
16584 passed in drawable is of type GdkDrawableImplWin32, the GdkPixmap *src
16585 maybe either GdkDrawable or GdkDrawableImpl. Corrected all casts, add
16586 more Gdi functions return value checking.
16587 (gdk_win32_draw_image) : use IMAGE_PRIVATE_DATA to get on the
16588 GdkImagePrivateWin32 *.
16590 * gdk/win32/gdkevents-win32.c : Disable the SetCapture call to make
16591 menus useable again. Add #pragma message to keep reminded on this issue.
16592 (gdk_event_translate) : don't generate GDK_EXPOSE events for InputOnly
16593 windows. This allows to enable backing store on Win32!
16595 * gdk/win32/gdkimage-win32.c (_gdk_win32_get_image) : the passed
16596 in drawable is of impl type. Correct specific type checks appropriate.
16598 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data) : check
16599 GDK_WINDOW_DESTROYED before allocating new resources.
16601 * gdk/win32/gdkselection-win32.c : Handle GDK_WINDOW_DESTROYED case
16603 * gdk/win32/gdkwindow-win32.c : more Gdi return value checking,
16604 (gdk_window_foreign_new) initialize parent handle.
16605 (gdk_window_destroy_notify) add GDK_IS_WINDOW check
16607 * gdk/win32/gdkgeometry-win32.c (_gdk_window_move_resize_child) :
16608 Let the GDI invalidate the window on MoveWindow call to fix scrolling
16609 problems (e.g. main buttons in testgtk).
16611 Sat Nov 11 23:07:30 2000 Owen Taylor <otaylor@redhat.com>
16613 * gtk/gtkentry.c (gtk_entry_key_press): Call
16614 gtk_widget_activate for GDK_Return.
16616 * gtk/gtkentry.c (gtk_entry_preedit_changed_cb): Fix handling
16617 of preedit cursor position.
16619 Sun Nov 5 04:24:53 2000 Owen Taylor <otaylor@redhat.com>
16621 * gtk/gtkcellrenderertextpixbuf.c: Make parent_class
16624 Tue Sep 19 10:54:22 2000 Owen Taylor <otaylor@redhat.com>
16626 * modules/input/{gtkimcontextxim.[ch],imxim.c}: Rip
16627 out support for multiple locales; that simple doesn't
16628 work reliably with current Xlib
16630 * gtk/gtkimcontext*.[ch] gtk/gtkimmulticontext.[ch]
16631 gtk/gtktextlayout.[ch] gtk/gtktextview.c gtk/gtkentry.c:
16632 Add support for positioning the cursor within the preedit string.
16634 Mon Sep 18 23:56:32 2000 Owen Taylor <otaylor@redhat.com>
16636 * modules/input/{imxim.c,gtkimcontextxim.[ch]}: Start
16637 at XIM input method module.
16639 * gtk/gtktextview.c: Check for bindings after passing
16640 events to im context filter.
16642 Mon Sep 18 11:50:51 2000 Owen Taylor <otaylor@redhat.com>
16644 * gtk/gtktextlayout.c (add_preedit_attrs): Handle
16645 empty attribute lists properly.
16647 Sun Sep 17 10:08:16 2000 Owen Taylor <otaylor@redhat.com>
16649 * gtk/queryimmodules.c (main): Return non-zero exit
16650 status if errors were encountered querying any
16653 * modules/input/Makefile.am (moduledir): remove
16654 leftover bin program target.
16656 * docs/make-todo: Fix typo in error message.
16658 Sat Sep 16 14:04:30 2000 Owen Taylor <otaylor@redhat.com>
16660 * configure.in: Add modules/input/Makefile
16662 Sat Sep 16 14:01:52 2000 Owen Taylor <otaylor@redhat.com>
16664 * gtk/gtk.h: include gtkmodule.h gtkoldeditable.h,
16665 don't include gtkthemes.h.
16667 * gtk/testgtk.c gtk/testtext.c: Set environment variables
16670 * gtk/Makefile.am: Add new .c and .h files, build
16671 gtk-query-immodules and use it to create a gtk.immodules
16672 file for use of test programs.
16674 * gtk/gtkpreview.c: remove extra blank line.
16676 Sat Sep 16 13:21:04 2000 Owen Taylor <otaylor@redhat.com>
16678 * gtk/gtkimcontextsimple.c (gtk_im_context_simple_add_table):
16679 Add the ability to add extra tables beyond the default
16680 one, and also the ability to have compose sequences
16681 that are prefixes of other compose sequences.
16683 * gtk/gtkimcontextsimple.c: Export a preedit string which
16684 consists of possible candidates for keystrokes that have
16685 been entered but not yet committed.
16687 * gtk/gtkimcontext.[ch] gtk/immulticontext.[ch]
16688 gtk/gtkimcontextsimple.[ch]: add gtk_im_context_reset()
16690 * gtk/gtkmulticontext.[ch] (gtk_im_multicontext_append_menuitems):
16691 Add a function to add input-method switching menu items
16694 * gtk/gtkimmulticontext.[ch]: Properly handly set_client_window
16695 when switching input methods.
16697 * gtk/gtkimcontextsimple.[ch]: Change the format of
16698 the compose table to allow compose tables of different
16699 lengths / sequence.
16701 Sat Sep 16 13:05:48 2000 Owen Taylor <otaylor@redhat.com>
16703 * gtk/gtkimmodule.[ch]: Support routines for loading
16704 GtkIMContext implementations dynamically at runtime.
16706 * modules/input/imcyrillic-translit.c: A sample input
16707 method (based on GtkIMContextSimple with an extra table),
16708 which demonstrates preedit strings and the module
16709 system for input modules
16711 * gtk/queryimmodules.c: Program to query the available
16712 input modules and write the results into a file.
16714 * gtk/gtkrc.[ch] (gtk_rc_get_im_module_file): Add
16715 extra config options "im_module_file" (cache file for
16716 input method modules), and "im_module_path" - path
16717 to look for modules when generating cache file.
16719 This doesn't scale.
16721 Sat Sep 16 13:09:06 2000 Owen Taylor <otaylor@redhat.com>
16723 * gtk/gtkthemes.[ch] gtk/gtkmodule.[ch]: Move most of the
16724 generic code from gtkthemes into a new abstraction
16725 GtkModule which has the logic for implementing
16726 a loadable module which implements a number of
16729 Sat Sep 16 13:07:13 2000 Owen Taylor <otaylor@redhat.com>
16731 * gtk/gtkeditable.[ch]: Convert GtkEditable from
16732 a class into an interface
16734 * gtk/gtkoldeditable.[ch]: Move the old editable
16735 implementation into here, so legacy widgets can
16736 still rely on the implemenation. GtkOldEditable
16737 exports GtkEditable. Make selection handling
16738 code use new text conversion functions (and
16739 handle UTF-8 as a side-effect). Use GtkClipboard
16742 * gtk/gtktext.[ch] gtk/gtkcombo.c gtk/gtkspinbutton.c:
16743 Adopt to match above changes.
16745 * gtk/gtkentry.[ch]: Implement GtkEditable directly,
16746 avoid GtkOldEditable implementation. Restructure
16747 to reduce number of places that modify state directly.
16748 Move to GtkBindingSet. Display the preedit string.
16749 Queue recomputation of PangoLayout and scroll position
16750 to improve effiency of doing complex changes naively.
16751 Add a menu with cut/copy/paste and input method selection.
16753 Thu Sep 14 22:11:05 2000 Owen Taylor <otaylor@redhat.com>
16755 * gtk/gtktextlayout.[ch]: Add gtk_text_layout_set_preedit_string()
16756 to set preedit string and attributes; display preedit string by
16757 inserting string and attributes at cursor when creating the
16758 GtkTextLineDisplay.
16760 * gtk/gtktextlayout.c: Move all conversions between byte
16761 positions in PangoLayout and GtkTextIter into new functions
16762 line_display_iter_to_index/index_to_iter that properly
16763 handle the preedit string.
16765 * gtk/gtktextmark.[ch]: Restore gtk_text_mark_get_name, modify
16766 it to return const char * (eventually will end up
16767 as GCONST char *, most likely.)
16769 * gtk/gtktextview.[ch]: Handle the preedit string, call
16770 gtk_im_context_reset() as necessary, add a menu to switch
16773 * gtk/gtktextlayout.[ch]: Remove useless
16774 gtk_text_layout_get_log_attrs() function.
16776 2000-11-11 Tor Lillqvist <tml@iki.fi>
16779 * gtk/gtk.def: Update.
16781 * gdk/win32/*.c: Add last argument to g_type_register_static()
16784 * gdk/win32/gdkwindow-win32.c: Silence gcc -Wall.
16786 * gdk/win32/gdkevents-win32.c: Handle MSH_MOUSEWHEEL messages
16787 generated by older wheel mouse drivers. Get the correct y
16788 coordinate from WM_MOUSEWHEEL messages.
16790 * gdk/win32/gdkgc-win32.c (gdk_win32_cap_style_to_string,
16791 gdk_win32_fill_style_to_string, gdk_win32_function_to_string,
16792 gdk_win32_join_style_to_string, gdk_win32_line_style_to_string):
16793 Debugging functions.
16795 * gdk/win32/gdkprivate-win32.h: Declare them.
16797 * gdk/win32/gdkinput-win32.h: Add declaration for
16798 gdk_input_window_destroy().
16800 * gtk/makefile.mingw.in: Pass -DGTK_VERSION. Add gtktreemodel.o.
16802 Fri Nov 10 19:06:41 2000 Jonathan Blandford <jrb@redhat.com>
16804 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): New
16805 function to help handle keeping things in sync.
16807 Fri Nov 10 12:10:34 2000 Jonathan Blandford <jrb@redhat.com>
16809 * gtk/gtkliststore.c (gtk_model_simple_class_init): use the new
16812 * gtk/gtkliststore.c (gtk_list_store_get_column_type): Add this.
16813 (gtk_list_store_class_init): use the new BOXED marshallers.
16815 * gtk/gtktreestore.c (gtk_tree_store_new_with_types): change
16816 new_with_values to new_with_types.
16817 (gtk_tree_store_get_column_type): add this.
16818 (gtk_tree_store_class_init): use the new BOXED marshallers.
16820 * gtk/gtkmarshal.list: Added a number of BOXED marshallers to
16821 mirror some POINTER marshallers.
16823 Thu Nov 9 11:23:22 2000 Jonathan Blandford <jrb@redhat.com>
16825 * gtk/gtktreemodel.h (struct _GtkTreeIter): added more fields to
16826 allow more interesting iterators. Also, made the lifecycle of
16827 iterators more explicit.
16829 * gtk/gtktreemodelsort.[ch]: New model for sorting.
16831 * gtk/gtk-boxed.defs (GtkTreeIter, GtkTreePath): Added two boxed
16834 2000-11-09 Alexander Larsson <alexl@redhat.com>
16836 * demos/testgtk/menus.c:
16837 Changes to make the new testgtk compile after
16838 gtk_menu_append was removed.
16840 * gdk/linux-fb/gdkdrawable-fb2.c
16841 (gdk_fb_get_depth, gdk_fb_get_visual,
16842 gdk_drawable_impl_fb_class_init): Implement
16843 these drawable functions. Now GtkImages work again.
16845 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype.
16847 * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype.
16849 * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode,
16850 gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new);
16851 Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE,
16852 GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
16854 2000-11-08 Havoc Pennington <hp@pobox.com>
16856 * gtk/gtktexttag.c (gtk_text_tag_class_init): Add visible and
16857 visible_set args, don't know where these had gone, I thought they
16860 * gtk/testtext.c: Add a menu item to apply invisibility tag;
16861 now we can test the feature and see that it's totally broken.
16863 2000-11-08 Havoc Pennington <hp@pobox.com>
16865 Make DND copy pixbufs and tags when source and target share a
16868 * gtk/gtktextview.c (gtk_text_view_drag_data_get): provide the
16869 in-process GTK_TEXT_BUFFER_CONTENTS target
16870 (gtk_text_view_drag_data_received): Paste from
16871 GTK_TEXT_BUFFER_CONTENTS if we receive it.
16873 2000-11-08 Alexander Larsson <alexl@redhat.com>
16875 * docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
16878 * gtk/gtkmenu.c: Add support for scrolling menus.
16879 Remove gtk_menu_append/prepend/insert, these have been moved to
16880 gtkcompat.h as #defines.
16882 * gtk/gtkcompat.h.in:
16883 Add compatibility #defines for gtk_menu_append/prepend/insert
16885 * gtk/gtkmenu.h: Add data needed for scrolling menus.
16886 GtkMenuPositionFunc gets an extra argument push_in.
16887 gtk_menu_append/prepend/insert removed.
16889 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
16890 positioning behaviour to fit to scrolling menus.
16892 * gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
16893 into menuitem->submeny. That is wrong, and broke torn
16894 off submenus of torn off menus, since they were unrealized
16895 when the first menu was unrealized.
16897 * gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
16898 gtk_menu_shell_select_item() since these need to be overridden in
16901 * gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
16902 positioning behaviour to fit to scrolling menus.
16903 (gtk_option_menu_key_press, gtk_option_menu_button_press): Select
16904 the current item so that it is prelighted when the menu pops up.
16905 This is a workaround to the fact that the menu doesn't get the
16906 initial enter event (due to grabs).
16908 * gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
16909 s/gtk_menu_append/gtk_menu_shell_append/
16911 * gtk/gtknotebook.c:
16912 s/gtk_menu_insert/gtk_menu_shell_insert/
16914 * gtk/testgtk.c (create_menu, create_menus):
16915 Create the first menu with 50 items so that menu scrolling
16919 Patch from Jonathan Blandford <jrb@redhat.com>
16921 * gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
16922 system to handle size requests. First, we ask what the size of
16923 the toggle is. Then, when allocating the size, we allocate the
16924 toggle_size first. This way we can have multiple menu-item
16925 classes w/o needing a seperate class for each.
16927 * gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
16928 * gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
16930 * gtk/gtkcheckmenuitem.c
16931 (gtk_check_menu_item_toggle_size_request): New function to handle
16932 the toggle size-request.
16934 2000-11-07 Havoc Pennington <hp@redhat.com>
16936 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location):
16937 Half-ass somewhat fix this function, so that scrolling to the
16938 insertion point works. Pango hacking is in the future to really
16941 * gtk/gtktextview.c (gtk_text_view_drag_data_get): Don't calculate
16942 length of data, no longer used.
16944 * gtk/gtktextbuffer.c (gtk_text_buffer_finalize): move destroy
16945 method contents in here, get rid of destroy method
16946 (gtk_text_buffer_insert_range): Fix some g_return_if_fail checks
16947 that were backward. Remove debug spew.
16948 (cut_or_copy): Make the clipboard work with insert_range to
16949 preserve tags and pixbufs, not just the primary selection.
16951 2000-11-07 Havoc Pennington <hp@redhat.com>
16953 * gtk/gtktextmark.c (gtk_text_mark_is_visible): rename
16954 to gtk_text_mark_get_visible
16956 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): fix
16957 bug that was generating an invalid iterator
16959 * gtk/gtktextiter.c (gtk_text_iter_get_offset): move call to
16960 ensure_char_offsets() in front of code placing the iter in an
16963 * gtk/gtktextbuffer.c (gtk_text_buffer_paste_primary):
16964 make override_location arg const
16965 (paste): Replace the selection if we paste into the
16968 * gtk/gtkselection.h: Remove "GtkSelectioData"
16969 (struct _GtkSelectionData): move the definition here.
16971 * gtk/gtktextbuffer.c (gtk_text_buffer_update_primary_selection):
16972 Export the GTK_TEXT_BUFFER_CONTENTS target for in-process copies
16974 * gtk/gtktextiter.c (gtk_text_iter_get_tags): New function
16976 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_range): implement
16977 (gtk_text_buffer_insert_range_interactive): implement
16978 (gtk_text_buffer_get_tags): Remove, replaced by
16979 gtk_text_iter_get_tags()
16981 * gtk/gtktextiter.c (gtk_text_iter_forward_search): Add a search
16982 limit parameter, to avoid infinite linear scan.
16983 (gtk_text_iter_backward_search): Add search limit
16984 (gtk_text_iter_forward_find_char): Add search limit
16985 (gtk_text_iter_backward_find_char): Add search limit
16987 2000-11-07 Alexander Larsson <alla@lysator.liu.se>
16989 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
16990 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c,
16991 gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c,
16992 gdk/linux-fb/gdkwindow-fb.c:
16993 use g_object_new() instead of g_type_create_instance() which
16994 is a private function for fundamental type implementations.
16996 * gdk/linux-fb/gdkinput-ps2.c:
16997 Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table
16998 instead just store the current modifier state. Add a (somewhat broken)
16999 keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW.
17000 Rename exported function gdk_input_ps2_get_mouseinfo to
17001 gdk_input_get_mouseinfo.
17003 * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h,
17004 gdk/linux-fb/gdkwindow-fb.c:
17005 gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
17008 2000-11-02 Havoc Pennington <hp@redhat.com>
17010 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog, and
17011 use stock buttons. Should be 100% source compatible, appropriate
17012 filesel fields now point to dialog->vbox and dialog->action_area.
17013 On the bizarre side, dialog->action_area and filesel->action_area
17014 are not the same widget.
17015 (gtk_file_selection_init): Put some padding around the selection
17016 entry, so it isn't touching the GtkDialog separator.
17018 * gtk/gtkfontsel.h, gtk/gtkfontsel.c: Derive from GtkDialog,
17019 use stock buttons, etc. Should also be source compatible.
17020 Set the dialog default title in _init not _new().
17022 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init):
17023 Use stock buttons; don't put a button box inside the existing
17024 dialog button box. Don't bother with push/pop colormap anymore.
17026 * gtk/gtkdialog.h (GtkResponseType): Add a bunch of more
17027 specific GTK_RESPONSE_* values. This is clearer than ACCEPT/REJECT
17028 for message dialog, and necessary for the font selection and color
17029 selection with help and apply buttons.
17031 * gtk/gtkdialog.c (gtk_dialog_add_button): Return a pointer
17032 to the created button widget. Set GTK_CAN_DEFAULT on the button.
17033 (gtk_dialog_init): Default to GTK_BUTTONBOX_END, put less spacing
17034 between buttons, put less padding around the action area.
17035 (gtk_dialog_run): Exit on unmap rather than on destroy.
17036 This will also exit the loop if the widget is hidden.
17037 (gtk_dialog_delete_event_handler): Use GTK_RESPONSE_DELETE_EVENT
17038 instead of GTK_RESPONSE_NONE; since we're already adding a bunch
17039 of GTK_RESPONSE_* stuff, this seems cleaner, and lets you
17040 special-case delete event.
17042 * gtk/gtktexttagtable.c, gtk/gtktextview.c: Fix doc comment
17045 Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org>
17047 * gtk/testgtk.c (uposition_stop_configure): provide a toggle
17048 button to temporarily disable position recording in the
17049 "saved position" test.
17051 Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org>
17053 * gtk/gtkthemes.c: added compat code that temporarily implements
17054 GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is
17055 going to be revamped by owen's upcoming GtkModule patches, but
17056 untill then people want gtk to build, right? ;)
17058 2000-11-04 Havoc Pennington <hp@pobox.com>
17060 * gtk/gtkenums.h: remove trailing comma from GtkDeleteType member
17063 * docs/Changes-2.0.txt: Add note about
17064 gtk_container_get_toplevels()
17066 * gtk/gtktextview.h: formatting
17068 * gtk/gtktextview.c: don't start descriptions with "Returns",
17071 Sat Nov 4 10:12:27 2000 Owen Taylor <otaylor@redhat.com>
17073 * autogen.sh: When doing sanity checking on ACLOCAL_FLAGS,
17074 look for glib-2.0.m4 not glib.m4. (Ali Abdin)
17076 2000-11-03 Havoc Pennington <hp@redhat.com>
17078 * gtk/gtktexttagtable.c: Docs
17079 (gtk_text_tag_table_size): return a signed int
17081 * gtk/gtktexttag.c: s/tkxt/text/g; write documentation
17082 (gtk_text_tag_event): make the event_object a GObject
17084 * gtk/gtktextview.c: Write API docs for all functions.
17086 * gtk/gtktextview.h: add GTK_TEXT_WINDOW_PRIVATE as return value
17087 for gtk_text_view_get_window_type() called on one of the private
17090 * gtk/gtktextview.c: Instead of accessing text_view->buffer
17091 directly, call get_buffer() which demand-creates a default
17092 buffer. So gtk_text_view_new() can be used to create a view with a
17093 default buffer in it, if you just want an empty text box users can
17094 put data in. Useful for GUI builders also.
17096 2000-11-03 Pablo Saratxaga <pablo@mandrakesoft.com>
17098 * gtk/gtkrc.zh_TW.*: moved gtkrc.zh_TW.Big5 to gtkrc.zh_TW.big5;
17099 the charset encodign portion MUST be in lowercase.
17100 * gtk/gtkrc.az: added file for Azeri language
17102 2000-11-03 Havoc Pennington <hp@redhat.com>
17104 Get widgets working on the btree/buffer side. Display of them
17105 still doesn't work.
17107 * gtk/gtktextview.c: start implementing child widget stuff
17109 * gtk/gtktextiter.c (gtk_text_iter_get_child_anchor): new function
17111 * gtk/gtktextlayout.c: handle embedded widgets
17113 * gtk/gtktextdisplay.c: handle embedded widgets
17115 * gtk/gtktextchild.c: Implement all the child anchor goo
17117 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor): New
17120 * gtk/gtktextbtree.c: Add child anchor table to the btree struct
17121 (insert_pixbuf_or_widget_segment): abstract out common portions of
17122 creating a child anchor or a pixbuf segment.
17123 (gtk_text_btree_create_child_anchor): new function
17124 (gtk_text_btree_unregister_child_anchor): new function
17126 * gtk/gtkmarshal.list: added VOID:OBJECT,INT,INT for the
17127 allocate_child signal on GtkTextLayout
17129 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): fix bogus return
17131 (gtk_text_iter_get_child_anchor): new function
17133 * gtk/gtktextbuffer.c (gtk_text_buffer_real_changed): Add a
17134 default handler for the changed signal, which calls
17135 gtk_text_buffer_set_modified(), instead of just always emitting
17136 changed then calling set_modified() manually. I guess this is
17137 maybe more flexible. It seems logical.
17139 Fri Nov 3 08:58:38 2000 Tim Janik <timj@gtk.org>
17141 * gtk/gtkobject.c: _g_signal_handlers_destroy() is prefixed with '_'
17144 * gtk/gtksignal.c: use g_signal_connect_closure_by_id() now.
17146 Thu Nov 2 14:10:51 2000 Owen Taylor <otaylor@redhat.com>
17148 * gdk/x11/gdkdnd-x11.c: Fix a bunch of functions that should have
17149 been marked static.
17151 2000-11-02 Havoc Pennington <hp@redhat.com>
17153 * gtk/testgtk.c (create_labels): had a test backward
17155 * gdk/x11/gdkgc-x11.c (gdk_gc_copy): Copy the client-side GC
17156 fields, so the dest GC ends up with the correct clip origin,
17157 etc. Fixes a bug where colored labels didn't redraw
17160 2000-11-02 Alexander Larsson <alexl@redhat.com>
17162 * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c,
17163 gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c,
17164 gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c:
17165 Add last argument to t_type_register_static call.
17167 * gdk/linux-fb/gdkdrawable-fb2.c:
17168 Add last argument to t_type_register_static call.
17169 export the get_image drawable virtual function.
17171 * gdk/linux-fb/gdkimage-fb.c:
17172 Add last argument to t_type_register_static call.
17173 rename gtk_image_get to _gdk_fb_get_image and
17174 export it for use by gdkdrawable-fb2.
17176 * gdk/linux-fb/gdkprivate-fb.h:
17177 export _gdk_fb_get_image.
17179 * gdk/linux-fb/gdkselection-fb.c:
17180 Add new api call stubs.
17183 Missing ( in linux-fb part.
17185 * modules/linux-fb/Makefile.am:
17186 Must link with gdk_pixbuf or get unresolved symbol.
17188 2000-11-01 Havoc Pennington <hp@pobox.com>
17190 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Use
17191 GTK_TYPE_TEXT_ITER and BOXED marshallers
17193 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): ditto
17195 * gtk/gtktexttag.c (gtk_text_tag_class_init): ditto
17197 * gtk/gtk-boxed.defs: add GtkTextIter
17199 * gtk/gtkmarshal.list: Add marshallers for text widget that
17200 properly use OBJECT and BOXED
17202 2000-11-01 Havoc Pennington <hp@redhat.com>
17204 * gtk/testgtk.c (create_labels): Test set_markup_with_accel()
17206 * gtk/gtklabel.c (set_markup): Convert the unichar to a GDK keyval
17207 before returning it.
17209 2000-11-01 Havoc Pennington <hp@redhat.com>
17211 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
17212 Clip the rectangle to be rendered to the drawable, since
17213 get_from_drawable() requires a region within the drawable
17215 2000-11-01 Havoc Pennington <hp@redhat.com>
17217 * gtk/gtkimage.c (gtk_image_expose): Um, don't randomly subtract 4
17220 Wed Oct 25 20:10:57 2000 Owen Taylor <otaylor@redhat.com>
17222 * gdk/gdkevents.c (gdk_event_copy): Only ref the window if
17225 2000-11-01 Havoc Pennington <hp@pobox.com>
17227 * gtk/gtklabel.c (gtk_label_set_attributes): Set a PangoAttrList
17229 (gtk_label_finalize): unref the attr list if any.
17231 * gtk/testgtk.c (create_get_image): close test on second click
17232 (make_message_dialog): close dialog if it exists
17234 * gdk/gdkpango.c (gdk_draw_layout): Handle rise attribute
17236 * gdk-2.0.pc.in (Requires): Make it require gdk-pixbuf-2.0 not
17239 * gtk/gtklabel.c (gtk_label_set_markup): new function to set label
17240 from Pango markup format
17241 (gtk_label_set_markup_with_accel): ditto but with accelerator
17244 * gtk/gtkimage.c (gtk_image_expose): reformatting.
17246 * gdk/gdkpixbuf-drawable.c (gdk_pixbuf_get_from_drawable): Hack to
17247 reflect current state of GDK - use gdk_drawable_get_colormap, etc.
17248 Check GDK_IS_WINDOW() not !GDK_IS_PIXMAP() to decide whether to
17249 call gdk_window_get_origin().
17251 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable_alpha):
17252 implement GDK_PIXBUF_ALPHA_FULL
17254 Wed Nov 1 03:43:42 2000 Tim Janik <timj@gtk.org>
17256 * gtk/gtksignal.c (gtk_signal_compat_matched): make use of
17257 g_signal_handlers_block_matched, g_signal_handlers_unblock_matched and
17258 g_signal_handlers_disconnect_matched to block/unblock and disconnect
17259 multiple handlers respectively, instead of only treating the
17260 first handler found (bug reported by owen).
17262 Mon Oct 30 19:23:50 2000 Jonathan Blandford <jrb@redhat.com>
17264 * gtk/gtktreeview.c (gtk_tree_view_expand_row): New function.
17266 * gtk/gtktreeview.c (gtk_tree_view_collapse_row): New function.
17268 * gtk/gtktreeview.c, gtk/gtktreemodel.c, gtk/gtktreeselection.c
17269 gtk/gtktreestore.h, gtk/gtktreeview.h, gtk/gtktreeviewcolumn.c,
17270 gtk/gtktreeviewcolumn.h: Fixed inline docs.
17272 * docs/reference/gtk/tree_widget.sgml: Proto intro to the tree
17273 widget. Needs writing someday.
17275 * docs/reference/gtk/tmpl/gtktree*sgml: Added the tree widget to
17278 2000-10-30 Havoc Pennington <hp@redhat.com>
17280 * gtk/gtktextview.h, gtk/gtktextview.c:
17281 Rename delete_at_cursor delete_from_cursor, and
17282 move to move_cursor.
17284 2000-10-30 Havoc Pennington <hp@redhat.com>
17286 * gtktextbtree.c, gtktextbtree.h, gtktextbuffer.c,
17287 gtktextbuffer.h, gtktextchild.c, gtktextchild.h,
17288 gtktextchildprivate.h, gtktextdisplay.c, gtktextdisplay.h,
17289 gtktextiter.c, gtktextiter.h, gtktextiterprivate.h,
17290 gtktextlayout.c, gtktextlayout.h, gtktextmark.c, gtktextmark.h,
17291 gtktextmarkprivate.h, gtktextsegment.c, gtktextsegment.h,
17292 gtktexttag.c, gtktexttag.h, gtktexttagprivate.h,
17293 gtktexttagtable.c, gtktexttagtable.h, gtktexttypes.c,
17294 gtktexttypes.h, gtktextview.c, gtktextview.h:
17296 Massive reindentation and reformatting. Arg alignment and comments
17297 still need fixing in various places.
17299 2000-10-30 Havoc Pennington <hp@redhat.com>
17301 * gtk/gtktextview.h, gtk/gtktextview.c: Change run action signals
17302 to be named insert_at_cursor and delete_at_cursor so C++ can
17305 2000-10-28 Tor Lillqvist <tml@iki.fi>
17307 * gtk/gtkrc.c (gtk_rc_append_default_module_path): Make sure not
17308 to get a double directory separator in case the home directory
17309 ends with one. This would cause trouble especially on Windows,
17310 where the path will be confused with the syntax for an an UNC
17311 (network share) path \\server\share\path.
17312 (gtk_rc_add_initial_default_files): Ditto.
17314 Sat Oct 28 02:33:09 2000 Robert Brady <robert@suse.co.uk>
17316 * gtk/gtkmarshal.list: add new marshallers for GtkTextView.
17318 * gtk/gtktextview.c: Use correct marshallers.
17320 Fri Oct 27 17:56:26 2000 Jonathan Blandford <jrb@redhat.com>
17322 * gtk/gtkliststore.c: Not sure how this ever worked. Fixed it to
17323 use new iter stuff, and added all the appropriate signals et al.
17325 * gtk/gtktreedatalist.h: s/gtk/_gtk to further reinforce that this
17326 code is internal to gtk only.
17328 2000-10-28 Tor Lillqvist <tml@iki.fi>
17331 * gtk/makefile.{mingw,msc}.in: Adjust to Tim's changes. Use
17332 glib-genmarshal etc.
17334 Fri Oct 27 20:15:00 2000 Tim Janik <timj@gtk.org>
17336 * gtk/Makefile.am: added dependancies for testtextbuffer which broke
17339 Fri Oct 27 18:51:44 2000 Tim Janik <timj@gtk.org>
17341 * gtk/gtksignal.[hc]: adapt to GSignal signature changes.
17343 2000-10-27 Robert Brady <robert@suse.co.uk>
17345 * configure.in (ALL_LINGUAS): Add en@IPA (English, phonetic),
17346 en_GB (British), ia (Interlingua).
17348 2000-10-26 Havoc Pennington <hp@redhat.com>
17350 * gtk/gtktextiter.c (my_strrstr): fix constness warning
17353 nm -g -l .libs/libgtk-x11-1.3.so | grep ' T ' | grep -v gtk_ | grep -v GTK_
17355 * gtk/gtktextsegment.c (char_segment_new): rename
17356 (_char_segment_new_from_two_strings): rename
17357 (_toggle_segment_new): rename
17359 * gtk/gtkclipboard.c (ensure_clipboard_widget): make this static
17360 (make_clipboard_widget): make it static
17361 (text_get_func): static
17362 (text_clear_func): static
17364 * gtk/gtkcolorsel.c (adjustment_changed): make this function
17366 (hex_changed): make it static
17367 (hsv_changed): make it static
17368 (opacity_entry_changed): make it static
17370 * gtk/gtktextbtree.c (change_node_toggle_count): rename with _gtk
17371 (toggle_segment_check_func): rename with _gtk
17373 * gtk/gtktextchild.c (_pixbuf_segment_new): rename with _gtk
17374 (_widget_segment_new): rename
17375 (_widget_segment_add): rename
17376 (_widget_segment_remove): rename
17377 (_widget_segment_ref): rename
17378 (_widget_segment_unref): rename
17380 * gtk/gtktextmark.c (_mark_segment_new): Rename
17381 _gtk_mark_segment_new
17383 2000-10-26 Havoc Pennington <hp@redhat.com>
17385 * gtk/gtkmarshal.list: add new marshallers used by the text widget
17386 * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): fix marshaller
17389 * gtk/gtktexttagtable.c (gtk_text_tag_table_class_init): fix
17392 * gtk/gtktextlayout.h, gtk/gtktextlayout.c, gtk/gtktextdisplay.h,
17393 gtk/gtktextdisplay.c: We need to preserve Tk copyrights and
17394 license on these files.
17396 * gtk/gtktextiter.c (gtk_text_iter_backward_search): Make this
17399 * gtk/gtktextbtree.c (gtk_text_btree_new): init stamps to
17400 runtime random number different for each tree, instead of
17401 a constant I made up.
17403 Thu Oct 26 07:36:16 2000 Tim Janik <timj@gtk.org>
17405 * gtk/Makefile.am: buncha cleanups, kludged build sources
17406 dependencies with a Makefile: oldest-source-stamp dependancy
17407 for the moment. automake is really fighting us here, with
17408 intentionally not allowing user-defined rules or dependancies
17409 prior to it's -include $(DEP_FILES) statement. sucks rocks!
17411 * gtk/Makefile.am: added gtktextlayout.h and gtktextdisplay.h
17412 to public headers. tehy have a comment stating that they are
17413 "semi-public" aren't included by gtk.h and if enums popup there,
17414 they can be /*< skip >*/-ed.
17416 * gtk/gtktextlayout.h:
17417 * gtk/gtktextdisplay.h: indentation fixes, comment fixes,
17418 added LGPL... <SIGH>
17420 Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com>
17422 * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
17423 GtkTreeIter. Added iterators everywhere.
17425 * gtk/gtktreeviewcolumn.c: Changed to use the iterators.
17427 * gtk/gtktreeviewselection.c: Changed to use the iterators.
17429 * gtk/gtktreestore.c: Changed to use the iterators.
17431 * gtk/gtkliststore.c: Commented out the code. Will convert to
17432 iterators tomorrow.
17434 * gtk/gtkmodelsimple.c: Commented out the code. Will convert to
17435 iterators tomorrow.
17437 * gtk/treestoretest.c: Changed to use iterators.
17439 * demos/testgtk/main.c: Moved to use the new iterator system.
17441 Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
17443 * gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
17444 localization misbehaviour.
17446 * gtk/gtk-boxed.defs: nuked "boxed" type GtkCTreeNode, since it's
17447 a useless type without copy/free.
17449 * gtk/gtkctree.c (gtk_ctree_class_init): use GTK_TYPE_POINTER instead
17450 of GTK_TYPE_CTREE_NODE.
17452 Thu Oct 26 00:51:52 2000 Tim Janik <timj@gtk.org>
17455 (gtk_signal_emitv): use g_value_set_static_{string|boxed} where
17458 * gtk/gtk-boxed.defs (GtkSelectionData): specify
17459 gtk_selection_data_copy and gtk_selection_data_free
17460 do GtkSelectionData work as params in signals.
17462 Wed Oct 25 20:47:41 2000 Tim Janik <timj@gtk.org>
17464 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init): urg, removed
17465 implementation of gtk_marshal_VOID__INT_INT_INT_INT. if people do that,
17466 couldn't they at least give it a non-standard name?
17468 * gtk/gtktextlayout.c: arg! yet another implementation of
17469 gtk_marshal_VOID__INT_INT_INT_INT(), is this a conspiracy?
17471 * gtk/gtktextbuffer.c: gotcha! captured a vagabonding
17472 gtk_marshal_VOID__INT_POINTER_INT() implementation, braught it back
17473 home. now i know this _is_ a conspiracy.
17475 * gtk/gtkwidget.c (gtk_widget_class_init): marshaller fixups for
17478 * gtk/gtkaccelgroup.c (gtk_accel_group_create_remove):
17479 (gtk_accel_group_create_add): marshaller signature fixups.
17481 * gtk/gtklistitem.c (gtk_list_item_class_init): signal creation fixups,
17482 pass in GTK_TYPE_SCROLL_TYPE instead of GTK_TYPE_ENUM.
17484 * gtk/gtkobject.[hc]: removed GTK_CONNECTED flag, it's not valid
17487 Tue Oct 24 23:59:21 2000 Tim Janik <timj@gtk.org>
17489 * docs/reference/Makefile.am: disabled SUBDIRS for the moment, since
17490 due to the signal system changes, it wouldn't build currently. to
17493 * docs/Changes-2.0.txt: GtkSignal/GSignal updates.
17495 * gtk/gtkwidget.c: ::direction_changed takes an enum as argument,
17496 so it needs gtk_marshal_VOID__ENUM() instead of
17497 gtk_marshal_NONE__UINT().
17499 * gdk/gdk*.c: adapted type registration functions.
17501 * gtk/gtkbindings.c:
17502 * gtk/gtkaccelgroup.c: operate on GSignalQuery, GtkSignalQuery is
17505 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType.
17508 (gtk_object_destroy):
17509 (gtk_object_shutdown): fixed recursion guards. basically we have to
17510 catch the case where any of GObject.shutdown() or gtk_object_destroy()
17511 is called during ::destroy, and avoid recursion there.
17513 * gtk/gtktypeutils.c:
17514 * gtk/maketypes.awk: awk-script hackup to provide gtk_type_init() with
17515 boxed_copy/boxed_free. this needs a more general solution based on a
17516 publically installed code-generator utility.
17518 * gtk/gtktypeutils.[hc]: compat aliased GTK_TYPE_BOXED to G_TYPE_BOXED,
17519 glib's gobject has support for that now.
17520 define GtkSignalMarshaller in terms of GSignalCMarshaller.
17522 Mon Oct 23 09:36:42 2000 Tim Janik <timj@gtk.org>
17524 * gtk/gtksignal.[hc]:
17525 * gtk/gtkmarshal.[hc]:
17526 * gtk/Makefile.am: generate marshallers with glib-genmarshal and don't
17527 compile gtkmarshal.c on its own anymore, just include it in gtksignal.c.
17528 removed #include <gtkmarshal.h>s all over the place, gtksignal.h takes
17531 * *.c: marshaller name fixups.
17533 * gtk/gtkmarshal.list: added a comment briefing the format.
17535 Sun Oct 22 23:14:39 2000 Tim Janik <timj@gtk.org>
17537 * gtk/gtksignal.[hc]: nuked old implementation. we mostly have
17538 compatibility macros here now. more specifically, most of
17539 the API is preserved (yes, _most_, nonwithstanding the
17540 following exceptions listed, the API is stil lHUGE ;)
17541 things that got removed completely:
17542 GtkSignalQuery, gtk_signal_query(), gtk_signal_n_emissions(),
17543 gtk_signal_n_emissions_by_name(), gtk_signal_handlers_destroy(),
17544 gtk_signal_set_funcs(), gtk_signal_handler_pending_by_id(),
17545 gtk_signal_add_emission_hook(), gtk_signal_add_emission_hook_full(),
17546 gtk_signal_remove_emission_hook().
17547 non-functional functions variants:
17548 gtk_signal_add_emission_hook(), gtk_signal_remove_emission_hook().
17549 the GtkCallbackMarshal argument to gtk_signal_connect_full() is
17550 not supported anymore.
17551 (gtk_signal_compat_matched): new internal function to aid
17552 implementation of the compatibility macros, it provides
17553 functionality to block/unblock/disconnect handlers based
17556 * gtk/gtkenums.h: define GtkSignalRunType in terms of GSignalType,
17558 * *.c: adaptions to new type registration API signatures.
17560 Fri Oct 20 15:26:33 2000 Tim Janik <timj@gtk.org>
17562 * gtk/gtktypeutils.[hc]: removed G_TYPE_GTK_POINTER cludge.
17564 2000-10-25 Robert Brady <robert@suse.co.uk>
17566 * gdk/x11/gdkproperty-x11.c (gdk_property_get, gdk_property_change,
17567 gdk_property_delete): If window == NULL, assume the root window.
17568 (restoring the behaviour that was in 1.2).
17570 * gtk/testtext.c (save_buffer): Allow creation of new files when
17573 (fill_file_buffer): Don't die if a UTF-8 sequence is split across
17576 2000-10-25 Tor Lillqvist <tml@iki.fi>
17578 * gdk/gdkwindow.c: Include x11/gdkx.h only when building for X11.
17580 * gdk/win32/gdkdrawable-win32.c
17581 * gdk/win32/gdkimage-win32.c
17582 * gdk/win32/gdkprivate-win32.h: Corresponding changes as in the
17585 * gdk/win32/gdkcc-win32.c
17586 * gdk/win32/gdkcolor-win32.c
17587 * gdk/win32/gdkfont-win32.c
17588 * gdk/win32/gdkinput-win32.c
17589 * gdk/win32/gdkmain-win32.c
17590 * gdk/win32/gdkproperty-win32.c: Silence gcc -Wall.
17592 2000-10-24 Havoc Pennington <hp@redhat.com>
17594 * gtk/gtktextview.c (gtk_text_view_scroll_to_mark_adjusted): make
17595 it a static function
17597 * gtk/gtktextbtree.c (gtk_text_btree_tag): Gee, maybe we should
17598 redraw text when a tag is applied to it.
17600 * gtk/gtktexttag.c (gtk_text_tag_affects_size)
17601 (gtk_text_tag_affects_nonsize_appearance): private functions to
17602 see if a tag requires various kinds of redraw/layout to be queued
17605 * gtk/gtktexttag.h (struct _GtkTextTag): Remove relief crackrock
17607 * gtk/testtext.c (fill_example_buffer): Put the cursor
17608 at the start of the buffer, so search works by default
17610 * gtk/gtktextiter.c (lines_match): init match_start always
17612 * gtk/gtktextbuffer.c (gtk_text_buffer_get_iter_at_line_index): New
17613 function, get iter at a line + a byte index
17615 * gtk/gtktextiter.c (gtk_text_iter_set_line_index): New function,
17616 to set byte position within a line
17617 (gtk_text_iter_check): remove leftover G_BREAKPOINT thing
17619 2000-10-23 Havoc Pennington <hp@redhat.com>
17621 * gtk/testtext.c: Re-enable the "find" dialog
17623 * gtk/testgtk.c: Add test for gdk_drawable_get_image
17625 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix bug where
17626 the arguments to gdk_draw_drawable were in the wrong order
17627 (gdk_window_paint_init_bg): This function was ignoring the
17628 init_region, instead of clipping to it, so the entire backing
17629 pixmap was cleared on every begin_paint()
17630 (gdk_window_begin_paint_region): Hmm, the same list-walking bug
17631 was in here again, the loop kept using the same GtkWindowPaint
17633 (gdk_window_begin_paint_region): Fix a bug where we had two
17634 x_offset instead of x_offset and y_offset
17636 * gdk/gdkdraw.c (gdk_drawable_get_image): get composite drawable
17637 before we get the image.
17638 (gdk_draw_drawable): get the composite before we draw the drawable.
17639 (gdk_drawable_real_get_composite_drawable): default
17640 get_composite_drawable implementation that returns the drawable
17643 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Add
17644 get_composite_drawable virtual function
17646 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Fix a cheesy
17649 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable): Add a hack to
17650 make this work if the source drawable is a GdkDrawableImplX11
17651 instead of a public drawable type. This is really broken; the
17652 problem is that GdkDrawable needs a virtual method get_xid(), but
17653 of course that doesn't work in practice. Enter RTTI.
17655 Also, improve mismatched depth message.
17657 * gdk/gdkpixmap.c (gdk_pixmap_get_image): Implement get_image for
17660 * gdk/x11/gdkdrawable-x11.c (gdk_drawable_impl_x11_class_init):
17661 install _gdk_x11_get_image as our implementation of get_image
17663 * gdk/x11/gdkimage-x11.c (gdk_image_get): Rename to
17664 _gdk_x11_get_image and export for use in gdkdrawable-x11.c
17666 * gdk/gdkimage.c (gdk_image_get): Make this just a wrapper around
17667 gdk_drawable_get_image
17669 * gdk/gdkdraw.c (gdk_drawable_get_image): call virtual get_image
17671 * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Virtualize
17674 * gtk/gtktreestore.c (gtk_tree_store_get_node): remove weird
17675 trailing semicolon after for loop
17677 Mon Oct 23 12:07:57 2000 Owen Taylor <otaylor@redhat.com>
17679 * gtk/gtkwidget.c (gtk_widget_set_style_internal): Fix problem
17680 where font_desc for widget's context lagged widget's font_desc by
17683 2000-10-22 Tor Lillqvist <tml@iki.fi>
17685 * gdk/win32/gdkgc-win32.c
17686 * gdk/win32/gdkimage-win32.c: Remove gcc -Wall warnings.
17688 * gtk/makefile.mingw.in
17689 * gtk/gtk.def: Updates.
17691 * gtk/testgtk.c: sleep() is called _sleep in MS's C
17694 * gtk/gtkimcontextsimple.c: Include <stdlib.h> for bsearch().
17696 * gtk/makefile.msc: Remove
17698 * gtk/makefile.msc.in: New file, like makefile.mingw.in.
17700 * gtk/Makefile.am: Add it.
17702 * configure.in: Generate it.
17704 * gtk/gtktextbuffer.c (gtk_text_buffer_create_child_anchor)
17705 * gtk/gtktextbtree.c (gtk_text_line_char_to_byte): Return
17706 something even if not implemented, to satisfy picky MSVC.
17708 Patches by Hans Breuer:
17710 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_glyphs): Call
17711 SetBkMode() and SetTextAlign() before calling
17712 pango_win32_render().
17714 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
17715 Set hcliprgn to NULL after destroying it.
17716 (gdk_gc_set_clip_rectangle): Delete hcliprgn and set to NULL.
17718 * gdk/win32/gdkgeometry-win32.c
17719 (_gdk_windowing_window_queue_antiexpose): More effective
17722 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use drawable's
17723 depth as default, not the visual's.
17725 * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Guard
17726 against empty title.
17728 * gdk/win32/gdkprivate-win32.h: Define a helper macro,
17729 IMAGE_PRIVATE_DATA.
17731 * gdk/win32/gdkimage-win32.c: Use it.
17733 2000-10-22 Robert Brady <robert@suse.co.uk>
17735 * configure.in: Check for bind_textdomain_codeset
17737 * gtk/gtkmain.c (gtk_init_check): If bind_textdomain_codeset
17738 present, make use of it.
17740 Add a translatable string "default:LTR" which, if translated
17741 to "default:RTL", will cause the default direction to be
17744 * gtk/gtkrange.h, gtk/gtkrange.c: Take into account the widget
17745 direction if marked as flippable.
17747 * gtk/gtkhscale.c: Mark widget as flippable.
17749 2000-10-04 Havoc Pennington <hp@redhat.com>
17751 * gtk/testgtk.c (create_buttons): create some stock buttons
17752 with the default accel group
17753 (create_image): test some new GtkImage features
17754 (make_message_dialog): test GtkMessageDialog
17755 (create_modal_window): fix someone's bizzarro indentation
17757 * gtk/gtkwindow.h, gtk/gtkwindow.c: Implement
17758 GTK_WIN_POS_CENTER_ON_PARENT.
17759 Add "destroy with parent" setting, which means the window goes
17760 away with its transient parent.
17761 (gtk_window_get_default_accel_group): get the default accel group
17763 (gtk_window_set_destroy_with_parent): set/unset destroy with
17765 (gtk_window_read_rcfiles): invalidate icon set caches
17766 after reloading rcfiles
17768 * gtk/gtkenums.h (GtkWindowPosition): add
17769 GTK_WIN_POS_CENTER_ON_PARENT, which centers a dialog
17770 on its parent window when the dialog is mapped for the first time.
17772 * gtk/gtkmessagedialog.h, gtk/gtkmessagedialog.c: Add
17773 a simple message dialog class
17775 * gtk/gtkdialog.c (gtk_dialog_init): Connect delete event
17776 handler to emit response signal, and maybe later it would
17777 honor a hide_on_delete flag - though that isn't there yet.
17778 Set border width on the vbox to 2, so we get some padding.
17779 Use a button box for the action area.
17780 (gtk_dialog_key_press): synthesize a delete event if Esc
17781 is pressed and the GtkWidget key press handler didn't
17782 handle the escape key.
17783 (gtk_dialog_new_with_buttons): new function creates a dialog
17784 with some default buttons in it.
17785 (gtk_dialog_add_action_widget): add an activatable widget
17786 as a button in the dialog - you can also add a non-activatable
17787 widget by accessing the action area directly.
17788 (gtk_dialog_add_button): add a simple button - stock ID or
17789 label - to the action area
17790 (gtk_dialog_response): emit response signal
17791 (gtk_dialog_run): block waiting for the dialog, return
17792 the response. Override normal delete_event behavior, so that
17793 delete_event does nothing inside gtk_dialog_run().
17794 * gtk/gtkdialog.h, gtk/gtkdialog.c: Add "response" signal
17795 emitted when an action widget is clicked or the dialog gets
17798 * gtk/gtk.h: add gtkmessagedialog.h
17800 * gtk/Makefile.am: add gtkmessagedialog.[hc]
17802 2000-10-18 Havoc Pennington <hp@redhat.com>
17804 * gtk/gtktextiter.c (gtk_text_iter_forward_to_newline): Fix a bug
17805 where any number of empty lines would get skipped
17807 * gtk/gtktextiter.h: Remove padding from GtkTextIter; live on the
17810 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): enhance the
17811 warning about invalid iterators (explain more thoroughly)
17812 (gtk_text_iter_in_region): rename gtk_text_iter_in_range
17814 * gtk/gtktextview.c (FOCUS_EDGE_WIDTH): Make focus rectangle less
17817 * demos/*.c: Add error handling
17819 * gtk/gtktextbuffer.c: don't modify const iterators
17821 * gtk/gdk-pixbuf-loader.c: Add full error handling here
17823 * gtk/gtkimage.c (gtk_image_set_from_file): ignore errors
17826 * gtk/gtkiconfactory.c: Update to reflect addition of error
17827 handling to gdk-pixbuf loaders
17829 Wed Oct 18 11:14:05 2000 Owen Taylor <otaylor@redhat.com>
17831 * configure.in demos/Makefile.am demos/testgtk/*: Start of work to
17832 move to new modularized testgtk.
17834 2000-10-17 Jonathan Blandford <jrb@redhat.com>
17836 * gtk/gtktreeview.c: Draw the arrows correctly.
17838 * gtk/gtktreemodel.c: Added user docs.
17840 * gtk/gtk.h: remove gtktreedatalist.h.
17842 * gtk/gtktreestore.c (gtk_tree_store_get_type): Get the correct
17843 parent when generating my type.
17845 * gtk/gtkmarshal.list: Added four more marshallers: INT:NONE,
17846 POINTER:NONE, POINTER:POINTER, and POINTER:POINTER,INT.
17848 2000-10-16 Jonathan Blandford <jrb@redhat.com>
17850 * gtk/gtktreemodel.h (struct _GtkTreeModelIface): Move
17851 GtkTreeModel from object to interface.
17853 2000-10-16 Havoc Pennington <hp@redhat.com>
17855 * gtk/gtktreeviewcolumn.c: #include gtklabel.h, fixing
17858 2000-10-16 Jonathan Blandford <jrb@redhat.com>
17860 * gtk/gtktreeselection.c: Add API documentation to all public
17863 * gtk/gtktreeviewcolumn.c: Added API documentation to all public
17866 2000-10-15 Jonathan Blandford <jrb@redhat.com>
17868 * gtk/gtktreeview.c (gtk_tree_view_insert_column): New function
17869 proposed by Guy Harris <gharris@flashcom.net>. Also, added API
17870 docs to all public functions.
17872 * gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
17873 gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
17874 gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
17875 gtk/gtktreemodel.h, gtk/gtktreeselection.c,
17876 gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
17879 2000-10-14 Robert Brady <robert@suse.co.uk>
17881 * configure.in: Added "fa" (Persian) to ALL_LINGUAS.
17883 2000-10-12 Jonathan Blandford <jrb@redhat.com>
17885 * gtk/gtktreedatalist.[ch] (gtk_tree_data_list_value_to_node): Added
17886 values other then G_TYPE_STRING.
17887 * gtk/gtktreeselection.c: Minor commenting updates.
17888 * gtk/gtktreeview.c: Format updates.
17890 2000-10-09 Tor Lillqvist <tml@iki.fi>
17892 * README.win32: Update.
17894 * gdk/win32/gdkgeometry-win32.c (gdk_window_clip_changed): Add two
17895 lines that had been deleted by mistake (?).
17897 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Handle
17898 also the case fg==white and bg==black (but still not randomly
17899 coloured cursors). Thanks to Wolfgang Sourdeau.
17901 * gdk/win32/*.c: Silence gcc -Wall.
17903 * gtk/gtk.def: Add missing entry points.
17905 Fixes by Hans Breuer:
17908 * gdk/win32/makefile.msc: Update.
17910 * gdk/testgdk.c: If compiling with debugging (with _DEBUG defined,
17911 some MSVC thing, presumably), cause breakpoint on failures. Add
17912 GDK_NOR case. Call g_log_set_always_fatal.
17914 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_insert): Handle
17915 should be pased by reference.
17917 * gdk/win32/gdkprivate-win32.h: Correct declaration accordingly.
17919 * gdk/win32/*.c: Correct calls to gdk_win32_handle_table_insert.
17921 * gdk/win32/gdkevents-win32.c
17922 * gdk/win32/gdkwindow-win32.c: Handle WM_CREATE.
17924 * gdk/win32/gdkgc-win32.c: Fix mixups of drawable and
17925 implementation object.
17927 * gdk/win32/gdkimage-win32.c (gdk_image_get): Handle drawables,
17930 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_impl_win32_finalize):
17931 Use the wrapper object.
17933 2000-10-06 Havoc Pennington <hp@redhat.com>
17935 * Makefile.am (SRC_SUBDIRS): contrib subdir
17937 * gdk/gdkpixbuf.h: Move GdkPixbufAlphaMode to gdk-pixbuf library,
17938 so it can be used in Xlib version
17940 * demos/testpixbuf.c (update_timeout): error checking from 1.0
17943 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_pixbuf): Sync
17944 change from 1.0 tree that returns first frame of animation
17945 if the loaded file is an animation.
17947 * contrib: add new directory to hold stuff that comes with GTK+
17948 but isn't really part of GTK+ (for now, gdk-pixbuf-xlib)
17950 * configure.in: add contrib/*
17952 2000-10-05 Havoc Pennington <hp@redhat.com>
17954 * demos/testpixbuf-save.c: add pixbuf save test
17956 * demos/Makefile.am: add testpixbuf-save.c
17958 2000-10-05 Jonathan Blandford <jrb@redhat.com>
17960 * gtk/gtktree.h (GTK_TREE_SELECTION): Replaced with
17961 GTK_TREE_SELECTION_OLD to prevent conflict with gtktreeselection.c
17962 * gtk/testgtk.c: s/GTK_TREE_SELECTION/GTK_TREE_SELECTION_OLD/
17963 * gtk/gtktreeselection.[ch]: Replaced
17964 "node_selected"/"node_unselected" signal with "selection_changed"
17967 2000-10-04 Jonathan Blandford <jrb@redhat.com>
17969 * gtk/gtk{tree,cell}?*.[ch]: Checked in initial draft of the new
17972 2000-10-04 Jonathan Blandford <jrb@redhat.com>
17974 * gdk/gdkwindow.c (gdk_window_draw_arc): Fix obvious bug in circle
17977 Wed Oct 4 15:52:15 2000 Owen Taylor <otaylor@redhat.com>
17979 * gdk/x11/gdkselection-x11.c (_gdk_selection_window_destroyed):
17980 Move list pointer forwards before removing item from
17981 list. (Crash reported by Salmaso Raffaele)
17983 * gdk/gdkwindow.h: Remove spurious trailing ,
17985 * gdk/Makefile.am (LDFLAGS): You can't do interlibrary
17986 dependencies on uninstalled libraries, sorry folks.
17988 2000-10-04 Havoc Pennington <hp@redhat.com>
17990 * gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
17991 gtk/gtkiconfactory.c: Fix copyrights
17993 * demos/testpixbuf.c: add inline pixbuf test
17995 Mon Sep 25 15:05:17 2000 Owen Taylor <otaylor@redhat.com>
17997 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c (gdk_window_iconify):
17998 Add gdk_window_iconify.
18000 * gdk/gdkwindow.h gdk/x11/gdkwindow-x11.c
18001 (gdk_window_set_geometry_hints): Add win_gravity
18002 to geometry structure.
18004 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
18005 Implement _NET_WM_PING.
18007 * gdk/x11/gdkmain-x11.c (_gdk_windowing_init_check):
18008 Set _NET_WM_PID on the client leader.
18010 * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_name):
18011 Handle UTF-8 better.
18013 * gdk/x11/gdkwindow-x11.c (gdk_window_set_title): Handle
18014 UTF-8 better, set _NET_WM_NAME as well. Only set
18015 icon name if it hasn't previously been explicitely
18018 2000-10-03 Havoc Pennington <hp@redhat.com>
18020 * gtk/testtextbuffer.c: clean up trailing whitespace,
18021 add extensive tests for tag toggle iteration.
18023 * gtk/gtktextiter.c (MAX_LINEAR_SCAN): decrease linear scan
18026 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
18027 optimize case where the tag root is on level 1
18028 (gtk_text_line_previous_could_contain_tag): attempt to implement
18029 (gtk_text_line_next_could_contain_tag): Abstract out node_compare
18032 * gtk/gtktextiter.c (gtk_text_iter_backward_to_tag_toggle):
18033 Implement this, though not very efficiently.
18035 * gtk/gtktextiterprivate.h: reformat
18037 * gtk/gtktextiter.c (gtk_text_iter_get_char): return 0 on the end
18040 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Fix
18041 this to properly revalidate the iterators.
18043 * gtk/gtktextview.c (gtk_text_view_delete): fix control-K to work
18044 properly at the end of the line (and therefore on empty lines)
18046 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Gee,
18047 maybe we should return a value...
18049 2000-10-03 Tor Lillqvist <tml@iki.fi>
18051 * config.h.win32: Guard definition of alloca(). glib.h now handles
18055 * gtk/gtk.def: Add new entry points.
18057 Changes just to make GTK+ build without errors on Win32. No hope
18058 of it working in its current state, though...:
18060 * gdk/win32/gdkselection-win32.c: Remove gcc -Wall warnings. Add
18061 some functions from the X11 backend, just to make GTK+ build.
18063 * gdk/makefile.mingw.in
18064 * gtk/makefile.mingw.in: Use correct gdk_pixbuf version
18065 number. Add new object files.
18067 * gtk/gtkclipboard.c: Include gdkwin32.h on Win32. Use
18068 GetMessageTime to get timestamp (where on X11 uses
18069 gdk_x11_get_server_time()).
18071 2000-10-02 Havoc Pennington <hp@pobox.com>
18073 * gtk/gtktextview.c: text_window_* weren't static and should have
18075 Start work on child widgets; not yet complete, syncing to
18078 * gtk/gtktextchild.h: change this to contain a public interface,
18079 starting work on child interfaces.
18080 * gtk/gtktextchildprivate.h: move private interfaces here
18082 * gtk/Makefile.am: update to reflect gtktextchildprivate.h
18084 * gtk/gtktextview.h, gtk/gtktextview.c, gtk/gtktextbuffer.h,
18085 gtk/gtktextbuffer.c, gtk/gtktextiter.h, gtk/gtk/textiter.c,
18086 gtk/gtktextmark.c: copyright notices
18088 * gtk/gtktextmarkprivate.h: reformat, and put _ in front of
18091 * gtk/gtktextchild.c (_pixbuf_segment_new): put _ in front of
18094 * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
18097 2000-09-30 Havoc Pennington <hp@pobox.com>
18099 * gtk/gtktextbtree.c (gtk_text_btree_get_selection_bounds): Handle
18100 NULL start/end pointers
18102 * gtk/gtktextbuffer.c: Write some docs
18103 (gtk_text_buffer_get_selection_bounds): Allow start/end to be
18104 NULL, so you can just check whether there's a selection.
18106 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): No need to
18107 cleanup_line or segments_changed ourselves, it gets done
18110 * gtk/gtktextmark.h:
18111 s/gtk_text_mark_deleted/gtk_text_mark_get_deleted/
18113 * gtk/gtktextsegment.h: Clean up some indentation and naming mess
18115 * gtk/gtktextmark.c: delete some more old Tk cruft
18117 * gtk/gtktextbuffer.c (gtk_text_buffer_delete_mark): add ref to
18118 mark before removing it, so we can emit MARK_DELETED with a valid
18120 (gtk_text_buffer_mark_set): hold ref across signal emission
18122 * gtk/gtktextbtree.c (gtk_text_btree_remove_mark): improve
18123 whining about attempts to delete special marks
18125 * gtk/gtktextbuffer.c (_gtk_text_buffer_spew): Prepend with
18126 underscore, since it's internal.
18128 * gtk/gtktextbuffer.h: Remove find_string prototype, this is
18129 now implemented in terms of iterators in gtktextiter.h
18131 * gtk/gtktextbuffer.c (gtk_text_buffer_set_text):
18132 New function, destructively sets contents of buffer. Also
18133 a convenient way to clear the buffer by setting text to ""
18135 * gtk/gtktextiter.c (gtk_text_iter_make_surreal): reformat
18136 multiline string literal
18138 * gtk/testtext.c (text_changed_callback): Redraw line numbers if
18141 * gtk/gtktextiter.c (forward_char): Return FALSE if new location
18142 is not dereferenceable
18143 (gtk_text_iter_forward_lines): fix return value
18145 2000-09-29 Havoc Pennington <hp@redhat.com>
18147 * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation
18149 * gtk/gtktextview.c: Implement drag thresholding; change functions
18150 that set border window size to have nicer name
18151 (gtk_text_view_mark_set_handler): Fix this to have the
18154 * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes
18156 * gtk/testtext.c: Update with API changes, put line numbers on
18159 * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap
18162 * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with
18163 pixbuf; delete a big block of #if 0 Tk code
18165 * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace
18166 insert_pixmap with insert_pixbuf
18168 2000-09-29 Martin Baulig <baulig@suse.de>
18170 * gdk-pixbuf.pc.in: Renamed to gdb-pixbuf-2.0.pc.in to avoid
18171 confusion with the GdkPixbuf of the GNOME 1.x platform.
18173 2000-09-29 Havoc Pennington <hp@pobox.com>
18175 * gtk/gtktextview.c: Implement the side windows.
18177 * gtk/testtext.c: Implement simple line numbering in the
18178 left side window; seems to make scrolling sloooow. Oops.
18179 Also, cursor blink is for some reason causing redraws
18180 of the line numbers. Should investigate...
18182 2000-09-28 Havoc Pennington <hp@redhat.com>
18184 * gtk/gtktextview.c: Set up infrastructure to deal with lots of
18185 scrolling child windows, and draw focus rectangle properly.
18187 (gtk_text_view_buffer_to_window_coords):
18188 Coordinate transformation to deal with all these freaking windows
18190 (gtk_text_view_window_to_buffer_coords): transform the other way
18192 * gtk/testtext.c (create_buffer): Update to match Pango API change
18194 * gtk/gtktexttagtable.c (gtk_text_tag_table_foreach): Go over the
18196 (foreach_unref): don't emit remove signal from finalize, just
18197 set tag's parent to NULL
18199 2000-09-26 Havoc Pennington <hp@redhat.com>
18201 * gtk/gtkiconfactory.c (gtk_icon_set_clear): remove
18204 2000-09-26 Havoc Pennington <hp@redhat.com>
18206 * gtk/Makefile.am (gtk_private_h_sources): Move more text widget
18207 headers into the private header list
18209 * Makefile.am (pkgconfig_DATA): install pkg-config files
18211 * configure.in: add pkg-config files
18213 * gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
18215 * gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
18216 outstanding icon caches on theme change.
18218 * gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
18221 (GtkIconSource): Specification for creating a pixbuf
18222 appropriate for a direction/state/size triplet from
18223 a source pixbuf or filename
18225 (GtkIconSet): List of GtkIconSource objects that are used to
18226 create the "same" icon (e.g. an OK button icon), and cache for
18229 (GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
18230 up the icon set for a given stock ID. GTK maintains a stack of
18231 GtkIconFactory to search, and applications or libraries can add
18232 additional icon factories on top of the stack
18234 * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
18235 the set of GtkIconSource specified for a given stock ID into
18236 a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
18237 RcStyle, under the specified stock ID.
18239 * gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
18240 render_icon used to derive a GdkPixbuf from a GtkIconSource.
18241 This allows people to theme how prelight, insensitive, etc. are
18244 (gtk_style_lookup_icon_set): Look up a stock ID in the list of
18245 icon factories for a style, and return the resulting
18248 (gtk_style_render_icon): Render an icon using the render_icon
18249 method in the GtkStyleClass.
18251 * gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
18252 Use the style for a given widget to look up a stock ID, get the
18253 icon set, and render an icon using the render_icon method
18256 * gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
18257 (contains information about a stock item), the built-in stock item
18258 IDs, and functions to add/lookup stock items.
18260 * gtk/stock-icons/*: Stock icons that come with GTK
18262 * gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
18263 a button based on a GtkStockItem
18264 (gtk_button_new_accel): Takes a uline string and accel group, and
18265 installs the accelerator.
18267 * gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
18268 image-display widget.
18270 2000-09-25 Havoc Pennington <hp@redhat.com>
18272 * gtk/gtktexttypes.c: Remove Latin1 conversion stuff
18274 * gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
18275 Fix a bug when removing node data, we didn't properly
18276 re-splice the linked list after removing the data.
18278 * gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
18279 GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
18281 * gtk/gtktextbuffer.c (selection_received): fix g_convert usage
18283 * gtk/gtktextlayout.c (set_para_values): Set tab array
18284 for the layout from the GtkTextTag.
18286 * gtk/gtktexttypes.h: delete tab and search cruft,
18287 remove g_convert() in favor of GLib version
18289 * gtk/gtktexttypes.c: remove tab implementation from here,
18292 * gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
18293 tab stuff using new PangoTabArray from Pango
18295 * gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
18296 unused border_width stuff
18298 Thu Sep 14 12:21:12 2000 Owen Taylor <otaylor@redhat.com>
18300 * gtk/gtktexttypes.[ch]: Remove g_convert (moved to
18301 glib) and now useless utf_to_latin1() latin1_to_utf()
18303 * gtk/gtktextview.[ch]: Change ::move_insert and
18304 ::delete_text action signals to ::move and ::delete;
18305 create the signals with the right enumeration type,
18306 not GTK_TYPE_ENUM so that bindings work. Add C-d, M-d,
18307 C-v bindings, change Home, End to move to beginning/end
18308 of line, Add C-Home C-End to move to beginning/end
18309 of buffer. Change ::cut_text to ::cut_clipboard, etc;
18310 combine ::scroll_text into ::move; use new GtkSelectionData
18311 functions to simplify DND text handling.
18313 * gtk/gtkenums.h gtk/gtktextview.h: Move movement,
18314 deletion enumerations here, rename enumeration values to
18315 be consistently plural.
18317 * gtk/gtktextbuffer.c: Use new clipboard interfaces
18318 for cut/copy/paste and primary selection.
18320 * gtk/gtktextbuffer.[ch]: Remove excess time and
18321 'interactive' arguments from cut/copy/paste;
18322 rename cut to cut_clipboard, etc; remove
18323 gtk_text_buffer_get_clipboard_contents().
18325 * gtk/gtktextlayout.[ch]: Add
18326 gtk_text_layout_move_iter_to_line_end() to move the iter to
18329 * gtk/gtkselection.[ch] (gtk_selection_data_set/get_text):
18330 Functions to set or get a UTF-8 string on the selection
18333 * gtk/gtkclipboard.[ch]: New, simplified selection handling
18336 * gtk/gtkinvisible.c (gtk_invisible_new): Realize newly
18337 created widgets - one of these is useless if we don't.
18339 * gtk/gtkselection.[ch] (gtk_selection_clear_targets): Export
18340 a public function clear all targets registered for the
18343 * gtk/gtkselection.c (gtk_selection_owner_set) docs/Changes-2.0.txt:
18344 Never call gtk_widget_realize() - that was just asking
18345 for bizarre side-effects.
18347 * gtk/gtkselection.c (gtk_selection_owner_set): Call
18348 gdk_selection_owner_set even if the widget is the
18349 same so that we reliably update the timestamp on
18352 * gdk/x11/gdkevents-x11.c gdk/x11/gdkx.h: Add a
18353 gdk_x11_get_server_time() function.
18355 * gdk/x11/gdkevents-x11.c gdk/x11/gdkprivate-x11.h
18356 gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.h:
18357 Add some tricky filtering on serial numbers for
18358 selection clear events to fix up long-standard
18359 race condition FIXME's in gtkselection.c.
18361 * gdk/gdkproperty.h gdk/x11/gdkselection-x11.h: Add
18362 routines to convert from utf8 to compound text or
18363 STRING and from a text property to UTF-8.
18365 * gtk/gtkmain.[ch] (gtk_get_current_event_time): Add
18366 a convenience function gdk_get_current_event_time().
18368 * gtk/gtkselection.c (gtk_selection_data_copy/free): Copy
18369 and free selection_data->data properly
18371 Sat Sep 9 10:23:53 2000 Owen Taylor <otaylor@redhat.com>
18373 * gtk/gtkthemes.c: Remove some unecessary includes.
18375 2000-09-08 Jonathan Blandford <jrb@redhat.com>
18377 * gtk/gtktextdisplay.c
18378 * gtk/gtktextlayout.c
18381 * gtk/testtext.c: Change the overstrike property to strikethrough,
18382 to closer match pango.
18384 Fri Sep 8 14:28:00 2000 Owen Taylor <otaylor@redhat.com>
18386 * gtk/gtktextview.c: Fix up visibility so that focus,
18387 cursor_visible and blink interact properly. Reenable cursor blink
18388 which had been roughly disabled. Make blink and focus
18391 * gtk/gtktextlayout.[ch] (gtk_text_layout_set_cursor_visible):
18392 Add a flag for whether to display insertion cursor and
18393 a function to set the flag.
18395 * gtk/gtktextlayout.c (gtk_text_layout_get_line_yrange): Change
18396 get_line_y() to get_line_yrange(), to be a bit more generally
18399 Thu Sep 07 20:54:33 2000 George Lebl <jirka@5z.com>
18401 * gtk/gtkmenu.c: in gtk_menu_set_submenu_navigation_region
18402 do stop_navigating_submenu, to clear last timeout properly.
18403 Also in gtk_menu_motion_notify move ignore_enter above
18404 the conditional to make it always happen as suggested by Owen
18406 2000-09-07 Tor Lillqvist <tml@iki.fi>
18408 * gdk/win32/makefile.mingw.in: Use -Wall. Add gdkpango-win32.o
18410 * gdk/win32/gdkwin32.h: Add more definitions missing from the free
18413 * gdk/win32/gdkprivate-win32.h: Add a couple of missing
18416 * gdk/win32/gdkdrawable-win32.c: Remove gcc -Wall warnings.
18417 (gdk_win32_get_colormap): A line had been deleted by mistake.
18419 * gdk/win32/gdkevents-win32.c: Remove lint (gcc -Wall) here, too.
18420 (gdk_event_translate): Handle more virtual keycodes to be able to
18421 generate GDK events for Control-comma, Control-period, etc.
18423 * gtk/gtk.def: Add some missing entry points.
18425 Thu Sep 7 11:47:02 2000 Owen Taylor <otaylor@redhat.com>
18427 * gtk/gtktextbuffer.c gtk/gtkimcontext.c gtk/gtkwidget.c:
18428 Doc comment fixing. (Mostly non-matching parameter names.)
18430 * gtk/gtkcalendar.c gtk/gtklist.c gtk/gtknotebook.c: Modify
18431 comments a little to avoid looking like a doc comment.
18433 * gtk/gtkspinbutton.h (GTK_INPUT_ERROR): Change INPUT_ERROR to
18434 GTK_INPUT_ERROR. (Should the mechanism for erros in spin button
18435 conversions be changed to GError?)
18437 * gtk/gtkcolorsel.c (GTK_CUSTOM_PALETTE_WIDTH/HEIGHT):
18438 Move private #defines into .c file.
18440 * gtk/gtktexttag.c (gtk_text_tag_class_init): Alphabetize
18441 order of argument addition, remove duplicates.
18443 * gtk/gtkaspectframe.h (struct _GtkAspectFrameClass):
18444 parent class is FrameClass, not BinClass.
18446 * gtk/gtk.h: Add gtkinvisible, which was missing.
18447 (It's occasionalyl useful for client apps, if seldom.)
18449 * gdk/gdktypes.h: Remove obsolete GDK_CORE_POINTER
18452 Wed Sep 6 09:53:15 2000 Owen Taylor <otaylor@redhat.com>
18454 * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use X-space
18455 coordinates when creating window, instead of GDK-space
18456 coordinates. (Avoid BadValue on too large windows.)
18458 2000-09-05 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
18460 * configure.in (use_mmx_asm): Remove conftest* after use along the
18461 lines of AC_TRY_COMPILE.
18463 * gtk/gtkrc.c (gtk_rc_parse_file): Use g_path_get_dirname instead
18464 of g_dirname, which is deprecated.
18465 (gtk_rc_parse_any): Removed calls to
18466 g_scanner_{freeze,thaw}_symbol_table, which are deprecated.
18468 * gtk/gtkbindings.c (binding_entry_new, binding_entry_destroy):
18469 Removed calls to g_hash_table_{freeze,thaw}, as they are
18472 * gtk/testtext.c (buffer_pretty_name): Use g_path_get_basename
18473 instead of g_basename.
18475 2000-09-04 Elliot Lee <sopwith@redhat.com>
18477 * gdk/gdkpixbuf.h: Put text after #endif inside a comment to avoid
18480 Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
18482 * gtk/gtkwidget.h: Add some documenting comments about
18483 GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
18484 just as owen said on irc.
18486 * gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
18487 set HAS_DEFAULT. Only set it if there isn't another window
18488 holding it (a focus window which RECEIVES_DEFAULT) and only unset
18489 it if the widget is not the focused window with RECEIVES_DEFAULT.
18490 This fixes weird double default bugs in dialogs which has things
18491 call gtk_window_set_default at times.
18493 Fri Sep 1 22:39:07 2000 Owen Taylor <otaylor@redhat.com>
18495 * gtk/gtkmenu.[ch] TODO.xml: Apply patch from
18496 Nils Barth and David Santiago to improve submenu
18497 navigation. The patch does this by creating a triangular
18498 region from the point where the pointer leaves the
18499 menu to the submenu. While the pointer is in
18500 that region and a timeout has not expired, events
18501 that would cause the active submenu to change are
18504 Fri Sep 1 15:34:46 2000 Owen Taylor <otaylor@redhat.com>
18506 * gdk/x11/gdkwindow-x11.c (gdk_window_move): Fix bug where
18507 moving a toplevel window immediately after sizing it would
18508 result in it being sized back to the old size since
18509 impl->width, impl->height aren't updated until we hear
18510 back from the server. There is still a (longstanding) bug
18511 here that gdk_window_get_size() will give the wrong size
18512 until we do hear back.
18514 2000-08-31 Havoc Pennington <hp@redhat.com>
18516 * gtk/gtktextiter.h, gtk/gtktextiter.c, gtk/gtktextlayout.h,
18517 gtk/gtktextlayout.c, gtk/gtktexttag.h, gtk/gtktexttag.c,
18518 gtk/gtktexttagprivate.h, gtk/gtktextview.c:
18519 Rename GtkTextStyleValues to GtkTextAttributes
18521 2000-08-31 Havoc Pennington <hp@pobox.com>
18523 * gtk/gtktextbtree.c (GtkTextBTree): cache end line,
18524 for rapid testing whether an iterator is the end iterator
18525 (gtk_text_btree_new): init end line cache
18526 (gtk_text_line_is_last): use fast cached line to
18527 see if we're the last line.
18528 (get_last_line): use cached line here too, should
18529 speed up some random unrelated code.
18531 2000-08-30 Havoc Pennington <hp@pobox.com>
18533 * gtk/gtkmarshal.list: Add marshallers for changed GtkTextBuffer
18536 * gtk/gtktextbuffer.h: Add "interactive" arg to insert_text and
18537 delete_text signals. This allows the signals to be used for
18540 * gtk/gtktextbuffer.c: Change signal handler signatures;
18541 provide "interactive" argument when emitting insert_text or
18542 delete_text signal.
18544 2000-08-30 Havoc Pennington <hp@pobox.com>
18546 * gtk/gtktextbuffer.c: Docs
18548 Fri Aug 25 12:16:15 2000 Owen Taylor <otaylor@redhat.com>
18550 * gdk/x11/gdkimage-x11.c: remove GDK_IMAGE_SHARED_PIXMAP
18551 from switch statements, since Tor removed the enumeration
18554 * gdk/x11/gdkimage-x11.c (gdk_image_get):
18555 s/GDK_IS_WINDOW/GDK_IS_DRAWABLE/.
18557 2000-08-29 Elliot Lee <sopwith@redhat.com>
18558 * */*.h: Use G_GNUC_CONST.
18560 2000-08-27 Havoc Pennington <hp@pobox.com>
18562 * gtk/gtktextiter.c, gtk/gtktextiter.h: wrote lots of API docs,
18563 minor indentation fixes, inserted some FIXME about stuff I
18564 realized was broken while documenting it.
18565 (gtk_text_iter_get_pixmap): allow out params to be NULL, following
18568 Tue Aug 22 12:33:24 2000 Owen Taylor <otaylor@redhat.com>
18570 * gtk/testgtk.c (create_styles): Fix double free of
18573 Mon Aug 21 22:39:18 2000 Owen Taylor <otaylor@redhat.com>
18575 * gtk/gtkwidget.[ch]: Add gtk_widget_modify_{fg,bg,text,base,font}.
18577 * gtk/testgtk.c (create_styles): Add a test for modifying
18578 the style through gtk_widget_modify_*.
18580 * gtk/gtkwidget.c (gtk_widget_get_modifier_style): Add
18581 a function to get the current modifier style.
18583 * gtk/gtkwidget.c (gtk_widget_modify_style): Make a copy
18584 of the passed in GtkRcStyle instead of ref'ing it.
18586 * gtk/gtkrc.[ch]: Add gtk_rc_style_copy().
18588 2000-08-20 Tor Lillqvist <tml@iki.fi>
18591 * gdk/win32/gdkimage-win32.c: No need any longer on Win32 for the
18592 shared memory image+pixmap GdkImage type, or
18593 gdk_image_bitmap_new(). They were used in the gdk_imlib port, but
18594 I am dropping that.
18596 * gtk/gtkmain.h: On Win32, use a #define to map gtk_init() to
18597 actually call gtk_init_abi_check(), passing also
18598 sizeof(GtkWindow). Ditto for gtk_init_check().
18601 * gtk/gtkmain.c: (gtk_init_abi_check, gtk_init_check_abi_check):
18602 New functions, used to check that the GTK+-using code has been
18603 compiled using the correct compiler and switches. In particular,
18604 with gcc one has to use the -fnative-struct switch as GTK+ is
18605 compiled with that.
18607 Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
18609 * gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
18610 ->prev fields when merging lists. (Found simultaneously
18611 by Pawel Salek and Jakub Jelinek)
18613 2000-08-12 Tor Lillqvist <tml@iki.fi>
18616 * gtk/gtk.def: Add missing entries.
18618 * gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Use
18619 OUT_TT_ONLY_PRECIS, try to get a TrueType font.
18621 * gdk/win32/gdkinput-win32.c (gdk_device_get_state): New
18622 function. Dummy implementation at this point.
18624 * gtk/makefile.mingw.in: Fix typo. Add testtext and testtextbuffer
18625 rules. Undefine GTK_COMPILATION when compiling the test programs.
18627 * gtk/gtkdebug.h: Mark gtk_debug_flags for export/import.
18629 2000-08-11 Tor Lillqvist <tml@iki.fi>
18631 * gtk/gtkfilesel.c: Add more calls to g_filename_{to,from}_utf8()
18632 to convert back and forth from UTF-8 and the "system" (or "current
18633 locale") charset when necessary. Indentation/spacing cleanup.
18635 2000-08-10 Havoc Pennington <hp@redhat.com>
18637 * Makefile.am (snapshot): Change the format of the snapshot
18638 version to match glib
18640 * gdk/win32/Makefile.am (EXTRA_DIST): remove gdkinputprivate.h
18641 from EXTRA_DIST since it doesn't seem to exist
18643 2000-08-10 Tor Lillqvist <tml@iki.fi>
18645 * gtk/gtkfilesel.c (open_new_dir): Use the "system codepage"
18646 version of the directory name (not the UTF-8 one) when building
18647 the path name to stat().
18649 2000-08-03 Elliot Lee <sopwith@redhat.com>
18651 * gdk/gdkpango.c (gdk_draw_layout_line): Don't shape runs with a
18652 PANGO_ATTR_SHAPE set.
18654 Thu Aug 3 09:17:06 2000 Owen Taylor <otaylor@redhat.com>
18656 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Applied patch from
18657 Peter Osterlund to simplify the code while keeping the
18658 functionality the same.
18660 Wed Aug 2 14:57:38 2000 Owen Taylor <otaylor@redhat.com>
18662 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Move
18663 is_viewable() test further inside the function, since removing the
18664 window from the redraw list without clearing ->update_area
18665 was also very broken.
18667 2000-08-02 Tor Lillqvist <tml@iki.fi>
18669 * configure.in: Check for <unistd.h>.
18671 2000-08-01 Martin Baulig <baulig@suse.de>
18673 * gtk/gtkmain.c (gtk_init_check): Use g_message() and not g_warning()
18674 to display the message that this is a development version of GTK+.
18676 Mon Jul 31 18:37:36 2000 Owen Taylor <otaylor@redhat.com>
18678 * gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
18679 was depending on widget->allocation instead of the width of text_area,
18680 which was incorrect for subclasses like GtkSpinButton.
18682 * gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
18683 with width == 1 tests that should be width == -1.
18685 Mon Jul 31 16:45:48 2000 Owen Taylor <otaylor@redhat.com>
18687 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
18688 (broken, Elliot, every single window blank on X) custom code with call
18689 to gdk_window_is_viewable() which a) prevents code duplicate and
18692 2000-07-31 Elliot Lee <sopwith@redhat.com>
18694 * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order
18695 to get the GDK_PARENT_ROOT() macro to work.
18696 * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
18697 * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces
18698 of, windows that aren't shown.
18699 * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of
18700 pointer grab stuff.
18702 Mon Jul 31 13:53:16 BST 2000 Tony Gale <gale@gtk.org>
18704 * docs/gtkfaq.sgml docs/gtk-faq.sgml:
18705 s/gtk_main_iteration/g_main_iteration/
18707 Did this already in change:
18708 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
18709 don't know how it got reverted.
18711 2000-07-31 Stanislav Brabec <utx@penguin.cz>
18713 * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
18714 gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
18716 * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
18719 2000-07-30 Pablo Saratxaga <pablo@mandrakesoft.com>
18721 * configure.in,po/{sp,sr}.po: Added Serbian files
18723 2000-07-30 Tor Lillqvist <tml@iki.fi>
18725 * gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
18727 * gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
18728 Remove the g_pipe_readable_msg stuff. Not needed with new GLib
18729 GIOChannel implementation.
18731 * gdk/win32/gdkinput.c
18732 * gdk/win32/gdkpango-win32.c: Update license name here, too.
18734 * gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
18735 definition to match prototype.
18737 * gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
18739 2000-07-27 Elliot Lee <sopwith@redhat.com>
18741 * gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
18742 function, to allow handling image formats that cannot be detected
18743 by looking at content alone.
18745 Thu Jul 27 13:13:21 BST 2000 Tony Gale <gale@gtk.org>
18747 * docs/tutorial/*.gif *.jpg *.eps
18748 Update these to the same look-n-feel.
18749 Why does including images in DocBook suck so badly?
18751 Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
18753 * gtk/gtktable.c: applied patch from Phil Thompson
18754 <phil@river-bank.demon.co.uk> that enables space settings for
18755 the last row/columns as well.
18757 Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org>
18759 * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that
18760 updates the license headers to the GNU Lesser General Public License,
18761 as well as updating the copyright year to 2000.
18763 2000-07-26 Robert Brady <rwb197@zepler.org>
18765 * configure.in: Cause GETTEXT_PACKAGE to be consistent in config.h
18766 and po/Makefile, was installing and looking for them under gtk20
18767 and gtk2 respectively.
18769 2000-07-25 Havoc Pennington <hp@redhat.com>
18771 * gtk/testtext.c: Comment out some stuff that depends on the rest
18774 2000-07-25 Havoc Pennington <hp@redhat.com>
18776 * gtk/gtkmarshal.list: Add NONE:POINTER,POINTER,INT for the text
18779 2000-07-25 Havoc Pennington <hp@redhat.com>
18781 * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
18784 * gtk/gtktextview.h: To be consistent with usage of "line"
18785 throughout the API to mean "newline-terminated thingy", change
18786 MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
18789 (GtkTextView): Add flags for default editability, and whether to
18790 show the cursor. Add functions to get/set that. Add
18792 (gtk_text_view_get_iter_location): new function
18794 * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
18796 (g_convert): Add g_convert temporarily, will go in glib in a bit
18798 * gtk/gtktexttagtable.h: include gtktexttag.h, and define
18799 GtkTextTagTableForeach instead of brokenly using GHFunc.
18800 Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
18802 * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
18803 moved to public header.
18805 * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
18806 "invisible", since "elide" was a bad name.
18807 (gtk_text_tag_get_priority): Added
18809 (GtkTextStyleValues): put this in public header, along with
18810 functions to use it.
18812 * gtk/gtktextmarkprivate.h: Include more headers, since we no
18813 longer include gtktextbtree.h.
18815 * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
18816 gtk_text_mark_deleted
18818 * gtk/gtktextlayout.h: Don't include the "really private" headers,
18819 only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
18820 to make this possible. Now we only need to install
18821 gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
18822 (However the Makefile.am isn't changed yet because of the
18823 logistics of merging gtk-hp-patches piecemeal)
18825 * gtk/gtktextiterprivate.h: include btree header, so it compiles;
18826 rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
18827 gtk_text_iter_get_line is now used in the public API for a
18830 * gtk/gtktextiter.h: Clean up function names to be more
18831 consistent. Always call char offset "offset" and byte index
18832 "index". A "line" is always a line number.
18834 (gtk_text_iter_is_last): new function, more efficient than
18835 the existing way to check
18836 (gtk_text_iter_is_first): new function, also more efficient
18838 (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
18840 (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
18841 gtk_text_iter_forward_char, etc.
18843 (gtk_text_iter_forward_to_tag_toggle): Renamed from
18844 forward_find_tag_toggle, since this isn't a linear search
18846 (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
18848 (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
18849 New functions, search for a buffer substring.
18851 * gtk/gtktextbuffer.h: Add fields to store whether a paste is
18852 interactive and default editable (since we need to store that info
18853 until we receive the selection data).
18855 Remove all the _at_char and at_line etc. versions of functions;
18856 only have iterator versions.
18858 Add _interactive() versions of functions, that consider the
18859 editability of text. (FIXME add interactive flag to the
18860 insert/delete signals per Darin's suggestion)
18862 (gtk_text_buffer_get_tag_table): new function, demand-creates the
18863 tag table if necessary
18865 Remove declaration of gtk_text_buffer_get_iter_from_string
18867 (_gtk_text_buffer_get_btree): private/internal function, added.
18870 * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
18871 (gtk_text_line_is_last): new function
18873 2000-07-25 Havoc Pennington <hp@redhat.com>
18875 * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
18876 using GtkProgressBar. See Changes-2.0.txt for details.
18878 * gtk/gtkprogressbar.c: Add object arguments "fraction" and
18879 "pulse_step" which are the equivalent of
18880 gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
18883 * gtk/gtkprogress.h (struct _GtkProgress): Add a field
18884 (use_text_format) to mark whether text set on the progress bar is
18885 a format string. Deprecate entire GtkProgress interface.
18887 * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
18888 (gtk_progress_build_string): make this a no-op if use_text_format
18891 * docs/Changes-2.0.txt: Describe progress bar changes.
18893 2000-07-25 Tor Lillqvist <tml@iki.fi>
18895 * Makefile.am: Include the build directory.
18897 * configure.in: Generate build/Makefile, build/win32/Makefile,
18898 gdk/, gdk/win32/, and gtk/makefile.mingw.
18900 * config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
18901 Add GETTEXT_PACKAGE.
18904 * gtk/gtk.def: Updates.
18907 * gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
18908 need them any longer.
18910 * gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
18912 * gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
18913 PANGOWIN32_LIBS and gdk_pixbuf.
18915 * gdk/win32: Compiles, but no doubt doesn't work at all.
18917 * gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
18919 * gdk/win32/gdkinput.c: New file, temporarily.
18921 * gdk/win32/gdkinput-win32.h: New file
18923 * gdk/win32/gdkinputprivate.h: Remove.
18925 * gdk/win32/gdkpango-win32.c: New file.
18927 * gtk/makefile.mingw.in: New file
18929 * gtk/makefile.cygwin: Removed
18931 * gtk/Makefile.am: Update accordingly.
18933 * gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
18934 made externally visible.
18936 * gtk/gtkmain.c: Use it.
18938 * gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
18941 * gtk/gtktypeutils.c: Mark glib_debug_objects for import.
18943 2000-07-24 Elliot Lee <sopwith@redhat.com>
18944 * gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
18945 individual backends already.
18946 * gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
18947 again. Yes, there really is a good reason for this, if you are using the gdkregion
18948 internals, and if you're not, why do you care?
18949 * gdk/gdkwindow.c: Fix inverted condition
18950 * gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
18951 * gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
18952 * gtk/gtkrange.c: Redraw trough when moving.
18953 * gtk/gtktypeutils.c: Fix warning by adding const cast.
18954 * modules/linux-fb/basic.c: Fix unknown glyph retrieval.
18956 2000-07-23 Tor Lillqvist <tml@iki.fi>
18958 * configure.in: Check for mkstemp and sigsetjmp. Output
18959 gdk-pixbuf/makefile.mingw and gdk-pixbuf/pixops/makefile.mingw.
18961 More work on GDK for Win32. Still in an intermediate state.
18963 * gdk/makefile.cygwin
18964 * gdk/win32/makefile.cygwin: Removed.
18966 * gdk/makefile.mingw.in
18967 * gdk/win32/makefile.mingw.in: New files.
18970 * gdk/win32/Makefile.am: Generate and distribute them.
18972 * gdk/win32/gdkwindow-win32.h
18973 * gdk/win32/gdkdrawable-win32.h
18974 * gdk/win32/gdkpixmap-win32.h: New files.
18976 * gdk/win32/gdkcolor-win32.c
18977 * gdk/win32/gdkcursor-win32.c
18978 * gdk/win32/gdkdrawable-win32.c
18979 * gdk/win32/gdkgc-win32.c
18980 * gdk/win32/gdkimage-win32.c
18981 * gdk/win32/gdkprivate-win32.h
18982 * gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
18983 Rename fields and variables called xcursor, xid, etc (these names
18984 were leftovers from the X11 backend) to hcursor, hwnd, hbitmap etc.
18986 Sat Jul 22 17:41:26 2000 Owen Taylor <otaylor@redhat.com>
18988 * gtk/gtkentry.[ch]: Fix some problems with vertical
18991 * gtk/gtkentry.c (gtk_entry_find_position): Fix
18992 char/byte confusion.
18994 Sat Jul 22 11:16:05 2000 Owen Taylor <otaylor@redhat.com>
18996 * gtk/gtktextview.c (changed_handler): Fix bug where
18997 redraw wasn't being done properly when height of
18998 dirty region changed.
19000 * demos/Makefile.am: Remove various references to
19003 Fri Jul 21 15:28:13 2000 Owen Taylor <otaylor@redhat.com>
19005 * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
19006 PangoAttrShape to reserve space for pixmaps, add
19007 GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
19008 in the display functions.
19010 * gtk/testgtk.c (create_layout): Set some more exotic
19011 scrolled window options
19013 * gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
19014 Add function to set the shadow type of a window, to allow
19015 putting a shadow around widgets such as GtkLayout or GnomeCanvas
19016 which don't draw their own frame.
19018 Fri Jul 21 16:34:42 BST 2000 Tony Gale <gale@gtk.org>
19020 * docs/tutorial/package-db-tutorial.sh: New file for
19021 packaging DocBook format tutorial
19023 Fri Jul 21 14:23:51 BST 2000 Tony Gale <gale@gtk.org>
19025 * docs/tutorial/gtk-tut.sgml: Minor updates
19027 * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
19029 2000-07-19 Tor Lillqvist <tml@iki.fi>
19031 * gtk/gtksignal.c: Fix C++ comment.
19033 * gtk/gtkimmulticontext.c
19034 * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
19035 don't return value from void functions.
19037 * gtk/gtk.def: Add gtk_rc_style_unref.
19039 2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
19041 * gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
19042 gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
19043 gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
19044 gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
19045 gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
19046 gtk/gtktypeutils.h: Include files outside of the extern "C"
19047 block. Makes some C++ compiler happy. Reported by Denis Vakatov
19048 <vakatov@peony.nlm.nih.gov>.
19050 Wed Jul 19 14:07:57 BST 2000 Tony Gale <gale@gtk.org>
19052 * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
19053 Completes first pass. Hurrah!
19055 Tue Jul 18 17:17:55 BST 2000 Tony Gale <gale@gtk.org>
19057 * docs/tutorial/gtk-tut.sgml: More clean ups.
19059 Mon Jul 17 18:52:38 2000 Owen Taylor <otaylor@redhat.com>
19061 * gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
19062 paint the background of the text area which was accidentally
19063 removed at some point.
19065 * gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
19067 - Move most of the functionality from the theme vtable
19068 into GtkRcStyleClass and GtkStyleClass. The moved
19069 vtable functions were changed a bit in the move to
19070 work better in their new home.
19072 - Get rid of the engine and engine_data fields from
19073 GtkRcStyle and GtkStyle; instead the theme
19074 engine derives theme-specific subclasses of GtkRcStyle
19077 - Add extra dlsym() found entry point to themes,
19078 theme_create_rc_style().
19080 * gtk/gtkstyle.c: Copy xthickness, ythickness fields
19081 in gtk_style_real_copy.
19083 * gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
19084 to register a type associated with an engine. (The engine
19085 won't be unloaded as there is an instance of the type.)
19088 Mon Jul 17 18:19:06 BST 2000 Tony Gale <gale@gtk.org>
19090 * docs/tutorial/gtk-tut.sgml: Clean ups.
19092 Mon Jul 17 13:59:29 BST 2000 Tony Gale <gale@gtk.org>
19094 * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
19095 of cleaning up to do.
19097 2000-07-15 Tor Lillqvist <tml@iki.fi>
19099 * gdk/testgdk.c: New file, quick hack to test backends for
19100 pixel-by-pixel correctness of the most simple graphic operations.
19102 Fri Jul 14 20:30:25 2000 Owen Taylor <otaylor@redhat.com>
19104 * Really release 1.3.1
19106 * gtk-config-2.0.in gtk-2.0.m4: Fix up to correspond to new
19109 Fri Jul 14 18:40:39 2000 Owen Taylor <otaylor@redhat.com>
19113 Fri Jul 14 16:21:26 2000 Owen Taylor <otaylor@redhat.com>
19115 * gtk/gtktextlayout.c: use FALSE for size_only most
19116 of the time when calling gtk_text_layout_get_line_display()
19117 to avoid causing double reshapes when a redraw follows
19120 Tue Jul 11 11:13:40 2000 Owen Taylor <otaylor@redhat.com>
19122 * gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
19123 appropriate region and gdk_window_process_updates() so trough
19124 updating doesn't lag behind the window being scrolled.
19126 * gdk/gdkgc.c: Make parent_class pointer static.
19128 Sun Jul 9 21:31:23 2000 Owen Taylor <otaylor@redhat.com>
19130 * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
19131 include <string.h>.
19133 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
19134 cut-and-paste error in computing memory offset for 4 channels.
19136 Fri Jul 14 14:05:02 2000 Owen Taylor <otaylor@redhat.com>
19138 * gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
19139 gtk_rc_append_default_pixmap_path(), since it wasn't
19140 adding an interesting path and we don't have a meaningful
19141 default for this value.
19143 Fri Jul 14 12:22:49 2000 Owen Taylor <otaylor@redhat.com>
19145 * configure.in Makefile.am gtk-config.m4 gtk.m4: Move
19146 gtk-config to gtk-config-2.0 move gtk_.m4 to
19149 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
19150 gdk/Makefile.am demos/Makefile.am: Change
19151 library names to libgtk-1.3.la, etc, so that we
19152 can distinguish gtk-1.2 and gtk-2.0 on the linkline.
19154 * Makefile.am gtk/Makefile.am gdk-pixbuf/Makefile.am
19155 gdk/Makefile.am gdk/x11/Makfile.am
19156 Move include files into /usr/include/gtk-2.0,
19157 /usr/lib/gtk-2.0/include/
19159 * autogen.sh acconfig.h configure.in gtk/gtkmain.c
19160 gtk/gtkintl.h: Change package for gettext from
19161 gtk+ to gtk20. Put hack in autogen.sh to modify
19162 po/Makefile.in.in after gettextize to make this
19165 * gtk+.spec: Some updates, not tested.
19167 * gdk-pixbuf/Makefile.am: Move loaders into
19168 $(libdir)/gtk-2.0/$(GTK_VERSION)/loaders.
19170 * gtk/Makefile.am gtk/gtkrc.c: Move RC file locations
19171 $(sysconfdir)/gtk-2.0 ~/.gtkrc-2.0; theme subdir
19172 to THEMENAME/gtk-2.0/. Move engine directory to
19173 $(libdir)/gtk-2.0/$(GTK_VERSION)/engines.
19175 2000-07-12 Tor Lillqvist <tml@iki.fi>
19177 Win32 changes, still doesn't build though.
19179 * gdk/makefile.cygwin
19180 * gdk/win32/makefile.cygwin
19181 * gtk/makefile.cygwin: Updates.
19183 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Use the same
19184 default values for fg and bg pixel as X11 does (0 and 1), not
19185 black and white. Use PS_ENDCAP_FLAT and PS_JOIN_MITER by default.
19186 Use 0 for pen width by default (treated as 1 anyway later, but for
19187 apps that might check the value in the GdkGC).
19188 (gdk_win32_hdc_get, gdk_win32_hdc_release): New functions, public
19189 interface to gdk_gc_predraw and _postdraw.
19191 * gdk/win32/gdkwin32.h
19192 * gdk/gdk.def: Add gdk_win32_hdc_{get,release}.
19194 * gdk/win32/gdkcolor-win32.c (gdk_colormap_alloc1): Remove
19195 extraneous semicolon.
19197 * gdk/win32/gdkdrawable-win32.c: Check also for pen_width == 0.
19199 * gdk/win32/gdkimage-win32.c (gdk_image_new): Use the visual's depth,
19200 not the Win32 bitspixel value.
19202 * gdk/win32/gdkcc-win32.c:
19203 * gdk/win32/gdkcolor-win32.c
19204 * gdk/win32/gdkprivate-win32.h
19205 * gdk/win32/gdkwin32.h: Changes to make compilable, with new
19206 GDK object structure.
19208 Tue Jul 11 20:59:35 2000 Tim Janik <timj@gtk.org>
19210 * docs/tutorial/gtk_tut_12.es.sgml (name):
19211 * docs/tutorial/gtk_tut_it.sgml (name):
19212 * docs/tutorial/gtk_tut_fr.sgml (name):
19213 * docs/tutorial/gtk_tut.sgml (name): scratched notion of completely
19214 outdated email adress: s/timj@psynet.net/timj@gtk.org/.
19216 Tue Jul 11 13:10:57 BST 2000 Tony Gale <gale@gtk.org>
19218 * docs/faq/gtk-faq.sgml: Cleanup indenting and various
19221 Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
19223 * gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
19224 a bug here, never been here and never fixed anything ;(
19225 (don't segfault if tree->root_tree is NULL, which happens prior
19226 to widget realization, but puke instead).
19228 Tue Jul 11 06:38:42 2000 Tim Janik <timj@gtk.org>
19230 * gtk/gtkrc.h: add xthickness and ythickness to GtkRcStyle and
19231 add the necessary tokens.
19233 * gtk/gtkrc.c (gtk_rc_style_init): properly initiality the rc style.
19234 (gtk_rc_style_to_style): copy thicknesses.
19235 (gtk_rc_init_style): apply thicknesses.
19236 (gtk_rc_parse_style): parse xthickness and ythickness.
19238 * gdk/x11/gdkdnd-x11.c: silence compiler in switch() statements.
19240 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new):
19242 (_gdk_windowing_window_init):
19243 * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new):
19244 (gdk_pixmap_create_from_data):
19245 (gdk_bitmap_create_from_data):
19247 * gdk/x11/gdkimage-x11.c (gdk_image_get):
19249 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new):
19250 * gdk/x11/gdkdnd-x11.c (gdk_drag_context_new):
19251 * gdk/x11/gdkcolor-x11.c (gdkx_colormap_get):
19252 (gdk_colormap_get_system):
19253 (gdk_colormap_new):
19254 * gdk/gdkwindow.c (gdk_window_init):
19255 * gtk/gtkstyle.c (gtk_style_new):
19256 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_frame_done):
19257 * gdk/gdkpixmap.c (gdk_pixmap_init):
19258 * gtk/gtkrc.c (gtk_rc_style_new):
19259 use g_object_new() instead of g_type_create_instance() which
19260 is a private function for fundamental type implementations.
19262 Thu Jul 6 16:12:14 2000 Owen Taylor <otaylor@redhat.com>
19264 * configure.in: Add check for db2html
19266 Thu Jul 6 14:53:05 2000 Owen Taylor <otaylor@redhat.com>
19268 * gtk/gtktypeutils.c (gtk_type_init): Add a temporary
19269 hack to set glib_debug_objects based on gtk_debug_flags.
19271 Thu Jul 6 14:12:13 2000 Owen Taylor <otaylor@redhat.com>
19273 * INSTALL.in: Update the Prerequisites section.
19275 * Makefile.am demos/Makefile.am docs/Makefile.am
19276 docs/tutorial/Makefile.am gdk/x11/Makefile.am
19277 gdk/linux-fb/Makefile.am: Dist fixes
19279 Thu Jul 6 12:26:03 2000 Owen Taylor <otaylor@redhat.com>
19281 * NEWS: 10,000 foot view of 1.3.1 changes.
19283 Thu Jul 6 11:54:03 2000 Owen Taylor <otaylor@redhat.com>
19285 * gdk/gdk.h gdk/gdktypes.h gdk/linux-fb/gdkmain-fb.c
19286 gdk/nanox/gdkmain-nanox.c gdk/win32/gdkevents-win32.c
19287 gdk/win32/gdkinput-win32.c gdk/win32/gdkwin32.h
19288 gdk/x11/gdkmain-x11.c:
19290 Patch from George Lebl to add a GdkGrabStatus enumeration to use
19291 as a return value of gdk_*_grab(). Previously, we just
19292 returned the X11 values directly.
19294 Thu Jul 6 11:27:44 2000 Owen Taylor <otaylor@redhat.com>
19296 * gdk/x11/Makefile.am: Patch from George Lebl to
19297 install all the headers in the right place.
19299 Tue Jul 4 13:13:01 BST 2000 Tony Gale <gale@gtk.org>
19301 * docs/faq/gtk-faq.sgml: Add remaining sections. Completes
19302 initial conversion to DocBook.
19304 2000-07-04 Tor Lillqvist <tml@iki.fi>
19306 * README.win32: Improve a bit.
19308 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle also
19309 WM_SYSCHAR, and other changes to get handling of Alt+nnn or
19310 Alt+0nnn on the numpad (used to enter characters by numeric code
19311 from current DOS or ANSI codepage) working correctly, as in other
19314 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Use
19315 same argument validity tests as in X11 version.
19316 (_gdk_cursor_destroy): Use DestroyCursor, not DestroyIcon.
19318 * gdk/win32/gdkwin32.h: Add also WM_MOUSEWHEEL and CopyCursor
19319 definitions in case missing from headers.
19321 * gdk/win32/gdkwindow-win32.c (gdk_win32_window_destroy): Also
19322 destroy the window-specific cursor.
19323 (RegisterGdkClass): Use the global gdk_ProgInstance instead of
19324 calling GetModuleHandle(NULL).
19325 (gdk_window_set_cursor): Reworked to always copy the passed cursor
19326 with CopyCursor before setting it as the window-specific
19327 cursor. It is OK for the caller to destroy the GdkCursor (and thus
19328 also its Windows cursor) after calling this function. Destroy any
19329 previous window-specific cursor.
19331 Mon Jul 3 17:54:49 2000 Owen Taylor <otaylor@redhat.com>
19333 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
19334 font charset is iso8859-1, not iso-8859-1.
19336 Mon Jul 3 17:08:14 2000 Owen Taylor <otaylor@redhat.com>
19338 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
19339 Use g_get_charset() instead of g_get_codeset().
19341 * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
19342 Comment out some strdup'ing functions to keep timj
19343 happy until we finish fighting this out.
19345 Mon Jul 3 14:24:16 2000 Owen Taylor <otaylor@redhat.com>
19347 * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
19348 <= width or height.
19350 * gtk/gtktable.c (gtk_table_attach): Fix missed merge
19351 from 1.2 for parent/child states.
19353 * gdk/gdkgc.c (gdk_gc_set_rgb_fg/bg_color): Fix a couple
19356 * gdk/gdkevents.[ch]: Remove press/xtilt/ytilt fields of
19357 event structures, replace with a generic axes field. Replace
19358 deviceid/sourec with GdkDevice *device.
19360 * gdk/gdkevents.[ch] (gdk_event_get_axis): Add function
19361 to extract particular axis use value from event. (Also
19362 can be used for normal X/Y.)
19364 * gdk/gdkinput.h gdk/x11/gdkinput*: Major revision;
19365 allow for arbitrary number of axes, namespace everything
19366 as gdk_device_*. Replace guint32 deviceid with GdkDevice *
19369 * gdk/x11/{gdkmain-x11.c,gdkevent-x11.c,gdkinput*}:
19370 Get rid of the gdk_input_vtable setup if favor of simply
19371 defining the functions in gdkinput-none/gxi/xfree.c in
19372 a similar fashion to the way that the port structure is
19375 * gtk/gtkdnd.c: Fix fields of synthesized button press event
19376 for new event structures.
19378 * gtk/gtkinputdialog.c gtk/testinput.c: Revise to match
19379 new device interfaces.
19381 Sun Jul 2 18:19:50 2000 Owen Taylor <otaylor@redhat.com>
19383 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_layout): Add a 'text' argument to
19384 set the initial text.
19386 * gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c
19387 gtk/gtkentry.c gtk/gtkhruler.c gtk/gtkhscale.c gtk/gtklabel.c
19388 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvruler.c
19389 gtk/gtkvscale.c: Adapt to new argument of create_pango_layout().
19391 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19392 pango_layout_set_font_description to simplify.
19394 Sun Jul 2 17:43:41 2000 Owen Taylor <otaylor@redhat.com>
19396 * gtk/gtkclist.c (_gtk_clist_create_cell_layout): Use new
19397 pango_layout_set_font_description to simplify.
19399 Sun Jul 2 17:06:40 2000 Owen Taylor <otaylor@redhat.com>
19401 * gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkctree.c gtk/gtkhscale.c
19402 gtk/gtkprogressbar.c gtk/gtkscale.c gtk/gtkvscale.c gtk/gtkaccellabel.c: Use
19403 pango_layout_get_pixel_extents() to remove a large number of '/ PANGO_SCALE'.
19405 * gtk/gtk[hv]ruler.c gtk/gtklabel.c: replace some / PANGO_SCALE with
19406 PANGO_PIXELS() macro.
19408 Sun Jul 2 15:24:41 2000 Owen Taylor <otaylor@redhat.com>
19410 * gtk/gtkwidget.[ch] (gtk_widget_get_pango_context): Add new function
19411 that returns a PangoContext owned by the widget and updated to
19412 match future changes in the widget. Also, make
19413 gtk_widget_create_pango_layout() use this context. If we ever
19414 add a ::changed signal to PangoContext, this will make things
19415 much more convenient.
19417 * gtk/gtkentry.c gtk/gtklabel.c: Call pango_layout_context_changed()
19418 in the appropriate places instead of destroying the layouts and
19421 * gtk/gtkfontsel.[ch] gtk/gtkclist.c: Use gtk_widget_get_pango_context()
19422 in a few strategic places.
19424 Sun Jul 2 14:37:58 2000 Owen Taylor <otaylor@redhat.com>
19426 * gtk/gtkoptionmenu.c (gtk_option_menu_size_request): Call
19427 gtk_widget_size_request() on reparented child, if one. Otherwise,
19428 queue_resize() on the child never results in it getting size-requested
19431 * gtk/testgtk.c (build_option_menu): Remove silly radio-menu-items
19432 in option menus, so that (with luck) people won't copy it into
19433 their apps in the future.
19435 * gtk/gtkoptionmenu.c: Connect ::size_request on the menu
19436 to gtk_option_menu_calc_size. This isn't perfect, but should fix
19437 a lot of problems with changing the size of the menu's menu
19438 items after adding it to the option menu.
19440 * gtk/gtktexttag.c: Include gtkmain.h for gtk_get_default_language().
19442 * gtk/gtkwidget.[ch]: Add a ::direction_changed that triggers when
19443 the text direction for a widget changes.
19445 * gtk/gtk{entry.c,label.[ch],textview.[ch]} gtk/testgtk.c: Use
19446 ::direction_changed to get rid of various hacks.
19448 Sun Jul 2 13:19:12 2000 Owen Taylor <otaylor@redhat.com>
19450 * docs/Changes-2.0.txt: Move Changes-1.4.txt to the appropriate
19453 Sun Jul 2 13:06:26 2000 Owen Taylor <otaylor@redhat.com>
19455 * gdk/x11/gdkpixmap-x11.[ch] Changes-1.4.txt: Add a is_foreign
19456 flag to the structure. Do not call XFreePixmap on pixmaps created
19457 by gdk_pixmap_foreign_new().
19459 Sun Jul 2 12:45:50 2000 Owen Taylor <otaylor@redhat.com>
19461 * gdk/gdkrgb.[ch]: Add gdk_rgb_find_color() to get a pixel
19462 value using GdkRGB functionality given GdkColormap and GdkColor.
19463 (name not final, waiting for inspiration.)
19465 * gdk/gdkgc.[ch] (gdk_gc_set_rgb_fg/bg_color): New functions to
19466 set the foreground/background of a GC using the GC's colormap
19467 and GdkRGB. (name not final, waiting for inspiration.)
19469 * gdk/gdkcompat.h gdk/gdkrgb.c (gdk_rgb_get_colormap): Rename from
19470 gdk_rgb_get_cmap(), put #define in gdkcompat.h.
19472 * gtk/gtkwidget.[ch] gtkcompat.h: Make visuals for
19473 gtk_widget_get_visual(), gtk_widget_get_default_visual, etc,
19474 purely a function of the corresponding colormap. Make
19475 gtk_widget_set_visual(), etc, noop macros in gtkcompat.h.
19477 * gdk/gdkpixmap.c gdk/x11/gdkpixmap-c11.c: Rewrite
19478 gdk_pixbuf_*create_from_xpm_* in terms of
19479 gdk_pixbuf_new_from_xpm_data(), move into platform independent
19482 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Take
19483 advantage of the new draw_rgb_32_image_dithalign.
19485 * gdk/gdkrgb.c (gdk_draw_rgb_32_image_dithalign): Added.
19487 * gtk/gtkgc.c (gtk_gc_new): Set the appropriate colormap
19488 on each created GC.
19490 * gdk/gdkgc.[ch]: Add gdk_gc_get/set_colormap.
19492 * gdk/gdkgc.[ch]: Add a colormap field to the GdkGC structure
19493 which we initialize from the drawable when the GC is created,
19494 if the drawable has a colormap.
19496 * gdk/x11/gdkgc-x11.c: include string.h for memset.
19498 * gdk/x11/gdkinput-x11.c: include string.h for strlen, etc.
19500 * gtk/gtklayout.[ch]: Remove unsed configure serial member.
19502 Sat Jul 1 16:28:32 2000 Owen Taylor <otaylor@redhat.com>
19504 * gdk/x11/gdkevents-x11.c (gdk_event_translate): When
19505 actually returning expose events, make sure to set
19506 the count field properly.
19508 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): Fix
19509 accidentally reintroced bug which always cleared
19510 the graphics_exposures value.
19512 Wed Jun 28 18:03:09 BST 2000 Tony Gale <gale@gtk.org>
19514 * docs/faq/gtk-faq.sgml: Change DocBook layout slightly
19516 Wed Jun 28 17:49:05 BST 2000 Tony Gale <gale@gtk.org>
19518 * docs/faq/gtk-faq.sgml: Finish Section 6. Add Section 7.
19520 Wed Jun 28 13:31:55 BST 2000 Tony Gale <gale@gtk.org>
19522 * docs/faq/gtk-faq.sgml: Start of Section 6.
19524 Mon Jun 26 19:37:04 2000 Owen Taylor <otaylor@redhat.com>
19526 * configure.in: Put 1.3.1 in warning message, not 1.3.0.
19528 (Fixes problem with drawing childless frames. Pointed out
19529 by and a first patch from Anders)
19531 * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
19532 compute a child_allocation, even if we don't have a child.
19534 * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
19535 Always chain to the parent's impl, even if we don't have a child.
19537 Mon Jun 26 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
19539 * gdk/gdkrgb.c: If possible, create only a single shm segment and
19540 use multiple parts of it instead of creating a bunch of separate
19541 segments, since the maximum number of segments per system is not
19542 large. (This might be worth backporting to GTK+-1.2.x if we make a
19545 * gdk/gdkrgb.c: Localize a bunch of variables into the GdkRgbInfo
19546 structure in preparation for per-colormap GdkRGB.
19548 * gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
19549 to False when we get EINVAL from shmget so that the caller of
19550 gdk_image_new can retry with a smaller segment size.
19552 Mon Jun 26 13:01:16 BST 2000 Tony Gale <gale@gtk.org>
19554 * docs/faq/gtk-faq.sgml: Add Sections 4 & 5.
19556 Fri Jun 23 17:54:23 2000 Tim Janik <timj@gtk.org>
19558 * configure.in: make the current version number 1.3.1 (binary age 0,
19561 * gtkfeatures.h, gtkfeatures.h.in: dejavue, get rid of these *again*,
19562 gtkcompat.h is all we want.
19564 * gtk/gtktypeutils.[hc]: define most of the primitive types in terms of
19565 GLib primitive types. fixed g_type_register_fundamental() argument
19568 * gtk-config.in (lib_gtk): add -lgdk_pixbuf so third party code
19571 * gdk-pixbuf-loader.[hc]: get rid of unistd.h include.
19572 object code cleanup, comment trigraph fixes, etc...
19574 2000-06-23 Havoc Pennington <hp@redhat.com>
19576 * gtk/gtktextview.c (gtk_text_view_set_buffer): Use anonymous mark
19577 instead of making up a bogus name for first_para_mark
19579 * gtk/gtkstatusbar.h, gtk/gtkstatusbar.c: Allow
19582 Thu Jun 22 17:43:51 BST 2000 Tony Gale <gale@gtk.org>
19584 * docs/faq/gtk-faq.sgml: Change filename. Add Section 3.
19586 2000-06-21 Havoc Pennington <hp@pobox.com>
19588 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Fix bug where
19589 we didn't check window->bg_pixmap != GDK_NO_BG.
19591 * gtk/gdk-pixbuf-loader.c: Change to reflect GObject-ification of
19594 Thu Jun 22 14:02:19 BST 2000 Tony Gale <gale@gtk.org>
19596 * docs/faq/gtk-faq.sgm: Move file to here.
19597 TODO: Update Makfile.am
19599 Thu Jun 22 13:41:09 BST 2000 Tony Gale <gale@gtk.org>
19601 * docs/gtk-faq.sgm: Add Section 2
19603 Thu Jun 22 08:43:45 BST 2000 Tony Gale <gale@gtk.org>
19605 * docs/gtk-faq.sgm: New file. Start of DocBook
19606 version of the FAQ.
19608 Wed Jun 21 23:04:17 2000 Owen Taylor <otaylor@redhat.com>
19610 * configure.in (GDK_PIXBUF_MAJOR): Define version
19611 numbers for GDK_PIXBUF_*, as they get substituted
19612 into a header file. Need to consider versioning
19613 for gdk-pixbuf more carefully later.
19615 2000-06-21 Raja R Harinath <harinath@cs.umn.edu>
19617 Work with srcdir != builddir.
19618 * demos/testanimation.c: Don't include "gdk-pixbuf.h". Use
19619 <gtk/gdk-pixbuf-loader.h>, not "gtk-pixbuf/gdk-pixbuf-loader.h".
19620 * demos/testpixbuf.c: Likewise.
19621 * demos/testpixbuf-scale.c: Don't include "gdk-pixbuf.h".
19622 * demos/testpixbuf-drawable.c: Don't include "gdk-pixbuf.h". Use
19624 * demos/pixbuf-demo.c: Use <gtk/gtk.h> not "gtk.h". Don't include
19626 * demos/Makefile.am (INCLUDES): Remove unneeded directories.
19628 Wed Jun 21 19:45:02 2000 Owen Taylor <otaylor@redhat.com>
19630 * TODO.xml: Change 1.4 version numbers to 2.0.
19632 Wed Jun 21 19:29:08 2000 Owen Taylor <otaylor@redhat.com>
19634 * gdk/gdkpixbuf-render.c gdk/gdkpixbuf-drawable.c: Indentation
19635 fixups to GTK+ standard.
19637 Wed Jun 21 16:38:13 2000 Owen Taylor <otaylor@redhat.com>
19639 * gdk-pixbuf/* docs/reference/gdk-pixbuf/*: Welcome aboard,
19642 * gtk/gdk-pixbuf-loader.c (gdk_pixbuf_loader_class_init):
19643 fixups for GObject.
19645 * gdk/Makefile.am gdk/gdkpixbuf-render.[ch] gdk/gdkpixbuf.[ch]: Bits of
19646 gdk-pixbuf with GDK dependencies moved into GDK.
19648 * gtk/Makefile.am gtk/gdk-pixbuf-loader.[ch]: Temporarily
19649 move gdk-pixbuf-loader here until GObject has signals.
19651 * demos/: New directory of demos. Move demos from
19654 * demos/pixbuf-init.c: Small bit of code to check for
19655 loaders in ../gdk-pixbuf/.libs/gdk-pixbuf, and if found,
19656 set GDK_PIXBUF_MODULEDIR appropriately.
19658 * gdk/gdkcompat.h: Remove GDK_DRAWABLE_PIXMAP compat
19659 define which no longer makes sense.
19661 2000-06-21 Havoc Pennington <hp@redhat.com>
19663 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Use
19664 gtk_get_default_language
19666 * gtk/gtkmain.h, gtk/gtkmain.c (gtk_get_default_language):
19667 new function to get the default language
19669 * gtk/gtktexttagprivate.h, gtk/gtktexttag.c, gtktextview.c:
19670 s/gtk_text_view_style_values/gtk_text_style_values/
19672 * gtk/gtktexttag.c, gtk/gtktexttag.h, gtk/gtktexttagprivate.h:
19673 Add a "language" field to tags.
19675 (gtk_text_tag_set_arg): Fix bug in setting
19676 "bg_full_height_set" tag.
19678 2000-06-21 Havoc Pennington <hp@redhat.com>
19680 * gtk/gtktextiter.h: Use gunichar instead of gint when appropriate
19683 * gtk/gtktexttypes.c: Remove UTF functions, use glib
19684 stuff instead when possible.
19686 * gtk/gtktexttypes.h: Delete some unused constants
19688 * gtktextbtree.c, gtktextiter.c, gtktextsegment.c, gtktextview.c,
19689 testtextbuffer.c: use glib instead of custom unicode routines
19691 Wed Jun 21 12:50:58 2000 Owen Taylor <otaylor@redhat.com>
19693 * docs/es/: Removed mistakenly added generated sgml
19695 * docs/{gdk.texi,gtk.texi,gdk.sgml} macros.texi texinfo.tex:
19696 Remove outdated info files.
19698 * docs/gtk_tut* docs/package_tutorial.sh docs/tutorial:
19699 Moved tutorial files into subdir
19701 * docs/gtkfaq.sgml docs/faq/gtkfaq.sgml: Move FAQ into
19704 * docs/man/gtk_button.pod: Remove. (contents will be
19705 integrated into gtk-reference button page.)
19707 * configure.in docs/Makefile.am docs/tutorial/Makefile.am
19708 docs/faq/Makefile.am: Adjust for new organization
19710 2000-06-21 Christopher Blizzard <blizzard@redhat.com>
19712 * gdk/x11/Makefile.am (install-data-local): use $(mkinstalldirs)
19713 not $(MKINSTALLDIRS)
19715 Wed Jun 21 12:24:28 2000 Owen Taylor <otaylor@redhat.com>
19717 * gtk/testgtk.c (create_text): Finish the job Elliot started
19718 of removing font setting test for text widget. (Since text widget
19719 and GdkFont are not deprecated, and cause portability problems.)
19721 Wed Jun 21 11:41:43 2000 Owen Taylor <otaylor@redhat.com>
19723 * gtk/gtkentry.c gtk/gtkimcontextsimple.c gtk/gtklabel.c
19724 gtk/gtktexttypes.c gtk/testtext.c modules/linux-fb/basic.c:
19725 Remove use of libunicode in favor of new GLib functions.
19727 * gtk/gtkcolorsel.c: Remove conditional includes for FB, win32,
19728 nano-x, framebuffer. The X11 include is just a hack until we get
19729 the necessary functions in gdkcolor.h, so there is no reason to
19730 add other includes of platforms.
19732 * gtk/gtkwindow.c (gtk_window_compute_default_size): Revert
19733 window bigger than the screen change.
19735 * gtk/testgtk.c: Revert some random changes from Elliot
19736 that had no particular point and were causing testgtkrc
19737 not to function correctly.
19739 * gdk/gdkregion-generic.h: Revert change from Elliot. Just
19740 because GdkSegment and GdkRegionBox have the same fields,
19741 it doesn't mean that 'typedef GdkSegment GdkRegionBox'
19742 results in clearer code.
19744 * gdk/x11/gdkinput-x11.c (gdk_input_common_select_events,
19745 gdk_input_translate_coordinates): Fix missed GdkObjectification
19747 2000-06-18 Elliot Lee <sopwith@redhat.com>
19749 * gdk/Makefile.am, gdk/*/Makefile.am: Fix conditionality to work the "right" way.
19750 * gtk/gtk{plug,socket}.h: Missed commits from previous.
19752 2000-06-20 Havoc Pennington <hp@redhat.com>
19754 * modules/linux-fb/Makefile.am: Make this compile
19755 without framebuffer enabled
19757 * gdk/linux-fb/Makefile.am: Add conditional to not build
19758 framebuffer unless specified in configure
19760 * gdk/gdkdraw.c (gdk_draw_drawable): Fix bug where I was getting
19761 the size of the target instead of source if -1 was passed for
19764 * gdk/x11/gdkgeometry-x11.c (gdk_window_compute_position): Fix
19765 width/height confusion.
19767 2000-06-19 Havoc Pennington <hp@redhat.com>
19769 * gdk/x11/gdkx.h (GDK_WINDOW_XWINDOW): change this to be
19770 GDK_DRAWABLE_XID. In the future, we probably want to make it
19771 faster with G_DISABLE_CHECKS turned on.
19773 2000-06-14 Havoc Pennington <hp@redhat.com>
19775 * gdk/Makefile.am: add gdkpixmap.c
19777 * gdk/gdk.c: s/gdk_window_init/_gdk_windowing_window_init/
19778 s/gdk_image_init/_gdk_windowing_image_init
19780 * gdk/gdkcolor.c: make ref/unref compat wrappers for GObject
19783 * gdk/gdkcolor.h: make GdkColormap a GObject subclass
19785 * gdk/gdkcompat.h: remove GdkWindowType compat, since
19786 GdkWindowType is now non-deprecated;
19787 change gdk_window_get_type() compat to be
19788 gdk_window_get_window_type().
19790 * gdk/gdkdnd.h: make GdkDragContext a GObject.
19792 * gdk/gdkdraw.c, gdk/gdkdraw.h: Convert GdkDrawable to a pure
19793 virtual GObject. Make all functions call into the vtable.
19794 Move gdk_image_put() guts in here. Remove GdkDrawableType
19795 and gdk_drawable_get_type(), these are now GdkWindow-specific.
19796 draw_image, get_depth, get_size, set_colormap, get_colormap,
19797 get_visual added to the vtable.
19799 * gdk/gdkgc.h, gdk/gdkgc.c: Convert GdkGC to a pure virtual
19800 GObject. Virtualize everything.
19801 (gdk_gc_new_with_values): remove check for destroyed window,
19802 because now GdkWindow::create_gc will check this.
19803 (gdk_gc_set_values): New function to set GC values, this
19804 was already implemented but wasn't in the header
19806 * gdk/gdkimage.h, gdk/gdkimage.c: Convert GdkImage to a GObject.
19808 * gdk/gdkinternals.h: Remove _gdk_window_alloc(), remove
19809 _gdk_window_draw_image(), remove _gdk_windowing_window_class,
19810 remove _gdk_window_class; add _gdk_window_impl_get_type() and
19811 _gdk_pixmap_impl_get_type(). Rename gdk_window_init to
19812 _gdk_windowing_window_init, rename gdk_image_init to
19813 _gdk_windowing_image_init.
19815 * gdk/gdkpango.c: Reflect GObject-ification of PangoContext.
19816 (gdk_draw_layout): Remove check for destroyed window,
19817 because all the drawable methods already check it.
19819 * gdk/gdkpixmap.h, gdk/gdkpixmap.c: Convert GdkPixmap to GObject.
19820 Add gdkpixmap.c which contains implementation of GdkDrawable
19821 virtual table (by chaining to a platform-specific implementation
19824 * gdk/gdkprivate.h: Remove GDK_IS_WINDOW, GDK_IS_PIXMAP,
19825 GDK_DRAWABLE_DESTROYED. Add GDK_WINDOW_DESTROYED. Replace
19826 GDK_DRAWABLE_TYPE with GDK_WINDOW_TYPE. Remove GdkDrawablePrivate,
19827 GdkWindowPrivate, GdkImageClass, GdkImagePrivate, GdkGCPrivate,
19828 GdkColormapPrivate.
19830 * gdk/gdktypes.h: #include <glib-object.h>
19832 * gdk/gdkwindow.h, gdk/gdkwindow.c: Convert GdkWindow to GObject.
19833 Move most functionality to platform-specific implementation
19834 object. GdkWindow itself now handles the backing store, then
19835 chains to the platform-specific implementation.
19836 (gdk_window_get_window_type): return GdkWindowType of the window.
19837 (gdk_window_peek_children): New routine, returns the children of
19839 (gdk_window_get_children): Was in X11-specific code and did
19840 XQueryTree. Changed to simply return a copy of window->children;
19841 so it can go in cross-platform code.
19843 * gdk/x11/Makefile.am: fix broken MKINSTALLDIRS path
19845 * gdk/x11/gdkcolor-x11.c: implement X-specific parts of
19846 GdkColormap; just changed to use the new private data instead
19847 of casting to GdkColormapPrivate.
19849 * gdk/x11/gdkcursor-x11.c: added a couple typechecks to
19852 * gdk/x11/gdkdnd-x11.c: Change the way we access private fields
19853 (private data member in the GObject).
19854 (xdnd_manager_source_filter): Function had broken
19855 error handling, fix it (use gdk_error_trap_push).
19857 * gdk/x11/gdkdrawable-x11.c: This file now implements
19858 a base class for GdkWindowImplX11/GdkPixmapImplX11. This
19859 base class is purely for the convenience of the X port,
19860 and not part of the interface to cross-platform GDK.
19862 * gdk/x11/gdkevents-x11.c: Reflect various renamings.
19864 * gdk/x11/gdkgc-x11.c: Implement a subclass of GdkGC that's
19865 specific to X, and returned by the create_gc virtual method
19866 of GdkDrawableImplX11.
19867 (gdk_x11_gc_set_dashes): Change this to take an array of gint8
19868 rather than gchar, this was also changed in the GdkGC vtable.
19869 (gdk_x11_gc_values_to_xvalues): If GdkGCValues is NULL, or the
19870 mask is 0, return immediately, instead of checking every flag.
19871 This is faster, and keeps us from segfaulting if values is NULL
19872 and the mask contains some nonzero flags.
19874 * gdk/x11/gdkgeometry-x11.c: deal with all the rearranging of
19877 * gdk/x11/gdkglobals-x11.c: change type of grab window, since
19878 GdkWindowPrivate is gone.
19880 * gdk/x11/gdkim-x11.c: rename things that got renamed.
19882 * gdk/x11/gdkimage-x11.c: implement in terms of GObject, and
19883 remove the image_put stuff that got transferred to GdkDrawable.
19885 * gdk/x11/gdkinput.c: renamings
19887 * gdk/x11/gdkmain-x11.c: #include <pango/pangox.h>
19889 * gdk/x11/gdkpixmap-x11.c: GObject conversion
19891 * gdk/x11/gdkprivate-x11.h: indentation fixes
19893 * gdk/x11/gdkproperty-x11.c: renamings
19895 * gdk/x11/gdkselection-x11.c: renamings
19897 * gdk/x11/gdkwindow-x11.c: Restructuring and renaming; this now
19898 implements the platform-specific "impl" object.
19899 Moved gdk_window_get_children to gdk/gdkwindow.c
19901 * gdk/x11/gdkx.h: Remove all the private structs and private datas
19902 that no longer exist. Add declaration of GdkGCX11 object here.
19903 Fix all the macros to still work.
19905 * gtk/gtk-boxed.defs: Remove GtkStyle, GdkColormap, GdkWindow,
19906 GdkDragContext from the boxed types since they are now GObjects.
19908 * gtk/gtkstyle.h, gtk/gtkstyle.c: Converted GtkStyle to a GObject,
19909 moved xthickness/ythickness into the instance. GtkStyleClass
19910 functions are now in the standard vtable for GtkStyle, so you have
19911 to create a GObject subclass to write a theme engine.
19912 (gtk_style_copy): fixed a leaked PangoFontDescription
19913 (gtk_style_init): renamed gtk_style_realize, so gtk_style_init
19914 can be the standard GObject function.
19917 s/style->klass->[xy]thickness/style->[xy]thickness
19918 s/pango_layout_unref/g_object_unref/
19920 * gtk/gtkrc.h, gtk/gtkrc.c: Converted GtkRcStyle to a GObject.
19922 * gtk/gtksocket.c: Use gdk_window_get_user_data() instead of
19923 accessing GDK internals.
19925 * gtk/gtkwidget.c: Use gdk_window_peek_children() instead of
19926 accessing GDK internals.
19928 2000-06-18 Elliot Lee <sopwith@redhat.com>
19930 * gtk/gtkwindow.c: Don't allow creation of a window bigger than the screen.
19932 * gtk/gtkrange.c: Fix the mega-jumpy-with-lagged-events scrollbar
19933 problem by calculating event position relative to the trough
19934 rather than the slider.
19935 * gtk/gtkdnd.c, gtk/gtkcolorsel.c: Include FB headers if appropriate.
19937 * gdk/gdkgc.h: Add GDK_NOR.
19939 * configure.in, Makefile.am: Add modules top level dir
19940 * configure.in: Only use pangox library if building x11 target.
19941 * gdk/gdkdnd.h: Add GDK_DRAG_PROTO_LOCAL enum for future intra-app use.
19943 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
19945 * gtk/gtkcolorsel.c: Change private class member to be named
19946 private_data throughout the file.
19948 * gtk/gtkcolorsel.h (struct _GtkColorSelection): Change private to
19949 private_data to avoid clashing with keyword.
19951 Fri Jun 16 22:24:22 2000 Christopher Blizzard <blizzard@redhat.com>
19953 * gdk/gdkdnd.h: Add comment to remove warning.
19955 Sun Jun 18 15:35:35 2000 Pablo Saratxaga <pablo@mandrakesoft.com>
19957 * gtk/gtkrc.cp1251,gtk/Makefile.am: the cp1251 is also used by
19958 Byelorussian language; changed the Makefile and file names
19961 Mon Jun 12 16:58:40 2000 Owen Taylor <otaylor@redhat.com>
19963 * gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
19964 rather than gdk_window_hide; this makes things work
19965 correctly if the window is programmatically hidden while
19968 Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
19970 * gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
19971 cut and paste typo where wrong pixmap was being
19972 unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
19974 Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
19976 * gtk/gtkselection.c (gtk_selection_bytes_per_item):
19977 Add helper function to compute format / bytes
19978 relationship. Use in a couple places to fix up
19979 errors which assume 8 * format.
19981 * gtk/gtkselection.c (gtk_selection_request): Use 32
19982 rather than 8 * sizeof (GdkAtom), to work correctly
19985 Thu Jun 8 21:54:51 2000 Christopher Blizzard <blizzard@redhat.com>
19987 * gtk/Makefile.am (DEPS): deps include libgtk-x11.la, not
19989 (LDADDS): include libgtk-x11.la and libgdk-x11.la, not the non-x11
19992 * gtk/gtklabel.c (gtk_label_get_text): Make sure that the error
19993 checking macros return NULL since the function has a return value.
19995 Wed Jun 7 15:44:42 2000 Owen Taylor <otaylor@redhat.com>
19997 * gtk/Makefile.am (LDFLAGS): Add missing backslash that was keeping
19998 GTK+ from building at all.
20000 * gdk/Makefile.am (gdk_c_sources): Fix up some indentation issues.
20002 Mon Jun 5 19:32:53 CEST 2000 Paolo Molaro <lupus@linuxcare.com>
20004 * configure.in, gtk-config.in, gdk/Makefile.am, gdk/*/Makefile.am,
20005 gtk/Makefile.am: make it possible to configure gtk for different
20006 targets on the same platform. The library name is now
20007 libgtk-$target-$version.so. gtk-config accepts a --target x11|nanox|linux-fb
20008 flag. Only the x11 target compiles right now.
20009 * gdk/gdkregion-generic.h, gdk/gdkregion-generic.c, gdk/gdkpoly-generic.h,
20010 gdk/gdkpolyreg-generic.c: move generic region code in the main GDK dir.
20011 * gdk/nanox/gdk*generic*: delete generic region code.
20012 * gdk/linux-fb/gdk*generic*: delete generic region code.
20013 * README.nanox: update information.
20015 Tue Jun 6 10:53:59 2000 Owen Taylor <otaylor@redhat.com>
20017 * gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
20018 prepend not append. (Pointed out by Brett Hall.)
20020 Tue Jun 6 01:59:57 2000 Owen Taylor <otaylor@redhat.com>
20022 * gtk/gtkentry.c (gtk_entry_finalize): Unref the entry's layout.
20024 Mon Jun 5 16:00:09 2000 Owen Taylor <otaylor@redhat.com>
20026 * gdk/gdk.c (gdk_init_check): Add call to g_type_init() - we'll
20027 need this later, and this makes sure that the atexit for
20028 glib gets called after that for GDK, so atexits are
20029 properly ordered for object leak checking.
20031 * gdk/gdk.c (gdk_exit_func): Call gdk_windowing_exit().
20033 * gdk/x11/gdkmain-x11.c (gdk_windowing_exit): Call
20034 pango_x_shutdown_display()
20036 * gtk/simple.c (main): Close window on destroy.
20038 Mon Jun 5 11:50:02 2000 Owen Taylor <otaylor@redhat.com>
20040 * gdk/x11/gdkgc-x11.c (gdk_x11_gc_values_to_xvalues): We need
20041 to treat initial creation different from setting with
20042 regards to the graphics-exposures parameter, so add a parameter
20043 indicating whether this is initial or not.
20045 Mon Jun 5 13:29:31 2000 Owen Taylor <otaylor@redhat.com>
20047 * gdk/x11/gdkevents-x11.c: Hack gdk_event_get_graphics_expose()
20048 to sort of work by adding an extra return_exposes arg
20049 to gdk_event_translate() - it might be better to simply
20050 deprecate the function altogether and force people to rewrite
20051 without it. gdk_window_scroll() handles most of it, and where
20052 gdk_window_scroll() doesn't work, simply redrawing more does.
20054 * gtk/gtkwidget.c (gtk_widget_set_default_direction): Fix up
20057 * gtk-config.in: Include PANGO_CFLAGS/LIBS.
20059 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Remove a
20060 bunch of pretty much useless /* Print debugging info */ comments
20061 which had drifted away from the code they were commenting.
20063 2000-06-02 Havoc Pennington <hp@pobox.com>
20065 * gtk/testtextbuffer.c: Test program to make sure GtkTextBuffer
20066 is in working order.
20068 * gtk/testtext.c: Change to reflect anonymous mark API
20070 * gtk/gtktextview.c: Convert from mark names to GtkTextMark*.
20072 * gtk/gtktexttag.h (struct _GtkTextTag): remove the affects_size
20073 field, which was unused.
20075 * gtk/gtktextmarkprivate.h (GTK_IS_TEXT_MARK): add this macro,
20078 * gtk/gtktextbuffer.c: Switch from mark names to GtkTextMark*
20080 * gtk/gtktextbtree.c (gtk_text_btree_new): set the not_deleteable
20081 flag on the insertion point and selection bound
20083 Throughout, use GtkTextMark instead of GtkTextLineSegment, and
20084 make mark-manipulation functions take a GtkTextMark* instead of a
20087 * gtk/gtktextmarkprivate.h: Add a "not_deleteable" flag to
20088 GtkTextMarkBody; will be used to detect attempts to delete
20089 the permanent marks (insert and selection bound)
20091 * gtk/Makefile.am (noinst_PROGRAMS): add testtextbuffer
20093 Fri Jun 2 12:56:01 2000 Owen Taylor <otaylor@redhat.com>
20095 * gtk/gtkwidget.c (gtk_widget_init): Initialize DOUBLE_BUFFERED
20098 * gtk/gtkwidget.c (gtk_widget_draw) gtk/gtkmain.c (gtk_main_do_event):
20099 Honor DOUBLE_BUFFRED_FLAG
20101 * gtk/gtkwidget.c (gtk_widget_set_double_buffered): Add a
20102 function to set the DOUBLE_BUFFERED flag.
20104 * gtk/gtkwidget.h: Add GTK_DOUBLE_BUFFERED flag to indicate whether
20105 or not exposes done on the widget should be double-buffered.
20107 * gtk/gtkenums.h (GtkTextDirection): Reverse order of enumerations
20108 to be what would be expected. (Fixes problem with a
20109 g_return_if_fail() validating a TextDirection enumeration)
20111 Thu Jun 1 23:05:13 2000 Owen Taylor <otaylor@redhat.com>
20113 * gtk/gtkwidget.c: Remove all references to
20114 offscreen flag which was no longer used.
20116 * gtk/gtkprivate.h (enum): Remove unused flags and compress.
20118 * gtk/gtkframe.c (gtk_frame_set_label_widget): Check
20119 for non-null label_widget->parent.
20121 * gtk/gtkentry.c: Get rid of code to deal with PangoAttribute
20122 which no longer was used.
20124 * gdk/gdkpango.c (gdk_pango_context_get_info): make static.
20126 * gdk/gdkpango.c (gdk_draw_layout[_line]): Add checks
20127 for null arguments.
20129 * gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): add
20130 check for destroyed windows.
20132 Thu Jun 1 13:48:45 2000 Owen Taylor <otaylor@redhat.com>
20134 * gtk/gtkimmulticontext.c: Add a finalize method and unref
20135 the slave context there.
20137 * gtk/gtkinvisible.[ch]: Make reference counting behavior
20138 identical to GtkWindow.
20140 Thu Jun 1 01:54:11 2000 Owen Taylor <otaylor@redhat.com>
20142 * Makefile.am gdk/gdkpango.c: Copy the layout render function from
20143 pangox to here, so we can write them independent of rendering
20144 system, using GDK primitives.
20146 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c
20147 gdk/x11/gdkdrawable-x11.c: Remove draw_layout() from the vtable,
20148 since we have a rendering-system independent implementation in
20149 terms of draw_glyphs().
20151 * gdk/gdkpango.c gdkdrawable.h (gdk_draw_layout_line): New
20152 function to render a single line.
20154 * gdk/x11/gdkpango.c: Move the guts of this file mostly
20155 into ../gdkpango.c, which simplifies things, since we
20156 don't have to deal with raw X gc's.
20158 Fri May 19 04:28:16 2000 Owen Taylor <otaylor@redhat.com>
20160 * gtk/gtktextlayout.[ch]: Add get_log_attrs() function to
20161 get the logical attributes for a given GtkTextLine.
20163 Tue May 30 16:05:39 2000 Owen Taylor <otaylor@redhat.com>
20165 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Track
20166 g_locale_get_codeset() to g_get_codeset() change.
20168 Tue May 30 15:03:19 2000 Owen Taylor <otaylor@redhat.com>
20170 * gtk/testcalendar.c (calendar_font_selection_ok): Use font
20173 * gtk/gtkentry.c (gtk_entry_draw_text): Center text within
20176 * gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Start of
20177 redoing (vastly simplifying) for Pango. Still needs quite
20178 a bit of work. (Size selection is currently poor. List of
20179 predefined sizes is not a good idea, since all of these
20180 sizes won't necessarily be distinct.)
20182 Tue May 30 13:50:19 2000 Owen Taylor <otaylor@redhat.com>
20184 * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Handle
20185 CODESET results for LANG=C.
20187 Mon May 29 15:49:10 2000 Owen Taylor <otaylor@redhat.com>
20189 * gtk/gtkrc.[ch]: Add a 'font_name' declaration to RC
20190 which takes a stringized pango font description;
20191 ignore the older 'font' and 'fontset' declarations.
20193 * gtk/gtkstyle.c gtk/gtkrc.c: Fill in the style->font
20194 field with a GdkFont derived via gdk_font_from_description(),
20195 for compatibility. (Should we just remove it entirely?
20196 Probably too much compatibility breakage, but people
20197 should be migrating to the new Pango stuff as quickly
20200 Mon May 29 15:47:41 2000 Owen Taylor <otaylor@redhat.com>
20202 * gtk/gtkentry.c gtk/gtkclist.c: s/pango_font_unref/g_object_unref/.
20204 Mon May 29 15:44:46 2000 Owen Taylor <otaylor@redhat.com>
20206 * gtk/gtkcalender.c: Roughly pango-ized. Really needs
20207 redoing; there are some bugs in size allocation right
20208 now, the semi-existant distinction between header / day
20209 fonts was removed, but, with Pango, could actually
20210 be made functional in a nice way.
20212 * gtk/testcalender: Move calender from examples into this
20213 directory as a test program. (We really need to restrcture
20214 testgtk into a whole directory full of tests for every
20215 widget or functionality group, separated into multiple .c
20218 Mon May 29 15:19:56 2000 Owen Taylor <otaylor@redhat.com>
20220 * gtk/testgtk.c (file_exists): Fix stupid typo that
20221 was keeping RC file from being loaded.
20223 * gtk/testgtkrc gtk/testgtkrc2: Test new pango-ized
20226 Mon May 29 14:31:27 2000 Owen Taylor <otaylor@redhat.com>
20228 * gdk/gdkfont.h gdk/x11/gdkfont-x11.c (gdk_font_from_description):
20229 Add function to load a GdkFont from a PangoFontDescription.
20231 2000-05-29 Tor Lillqvist <tml@iki.fi>
20233 * gdk/win32/gdkevents-win32.c (gdk_WindowProc): The local "event"
20234 variable should be of type GdkEventPrivate.
20236 Fri May 26 17:16:40 2000 Owen Taylor <otaylor@redhat.com>
20238 * gtk/frame.[ch] gtkaspectframe.c: Make frame widgets able
20239 to have any widget for the label, use a GtkLabel widget
20240 to display the text. (Based partially on a patch from
20243 (Quite a bit of code reorganization - strip 90% of the
20244 guts out of gtkaspectframe and add a single virtual
20245 func to GtkFrameClass - compute_child_allocation.)
20247 Fri May 26 12:00:02 2000 Owen Taylor <otaylor@redhat.com>
20249 * gtk/gtkctree.c gtk/gtkclist.[ch]: Pangoized.
20250 (Removed clist->row_center_offset field because caching
20251 it wasn't saving time or code, added private function
20252 _gtk_clist_create_cell_layout()).
20254 Wed May 24 15:59:37 2000 Owen Taylor <otaylor@redhat.com>
20256 * gtk/gtkaccellabel.c: Pangoized.
20258 * gtk/[hv]ruler.c: Pangoized
20260 Mon May 22 19:23:59 2000 Owen Taylor <otaylor@redhat.com>
20262 * gtk/gtkfilesel.c (gtk_file_selection_init):
20263 Use gtk_clist_set_column_auto_resize() to remove need
20264 need for manual column width computations.
20266 Mon May 22 18:50:26 2000 Owen Taylor <otaylor@redhat.com>
20268 * gtk/gtktooltips.[ch]: Replace custom drawing with a GtkLabel,
20269 ensuring Pango correctness, and considerably simplifying the
20272 * gtk/gtklabel.c gtk[hv]scale.c: 1000 => PANGO_SCALE.
20274 * gtk/gtklabel.c (gtk_label_size_request): Fixed incorrect
20275 getting of numbers of lines.
20277 * gtk/gtklabel.c (gtk_label_size_request): Set the requisition
20278 to the actual requested width of the lable, not to the wrap
20281 * gtk/gtktextchild.h: Remove extraneous include of gtk/gtk.h.
20283 * gtk/gtktextbtree.c gtk/gtktextbuffer.c gtk/gtktextlayout.c
20284 gtk/gtktextview.c gtk/gtktextview.[ch]: Fix up includes.
20286 * gtk/gtktextview.c: Fix structure inheritance.
20288 * gtk/gtkprogressbar.c: Pangoize.
20290 Mon May 22 15:47:30 2000 Owen Taylor <otaylor@redhat.com>
20292 * gtk/gtktextview.c (gtk_text_view_get_first_para_iter): Encapsulate
20295 * gtk/gtktextlayout.c (find_display_line_above): Fixed
20296 bug with computing line tops.
20298 * gtk/gtktextview.c (changed_handler): Fix < , <= confusion.
20300 Thu May 18 18:53:31 2000 Owen Taylor <otaylor@redhat.com>
20302 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix up the x_offset
20303 and y_offset coordinates to do what we need now. (The offset between
20304 buffer and layout coordinates has been reintroduced, but is a
20305 bit different than before.)
20307 * gtk/gtktextview.[ch]: No longer inherit from GtkLayout; instead
20308 handle the adjustments ourselves, and scroll as necessary using
20309 the new gdk_window_scroll().
20311 The advantage of this is that when we are incrementally revalidating,
20312 we are essentially rearranging things around the visible portion
20313 of the screen. With the old setup, the visible portion of the
20314 screen was moved around in the layout, so scrolling and redrawing
20315 to track that caused jumping of the display. Since we now
20316 control the scrolling ourselves, we can suppress this and
20317 only redraw when things actually change.
20319 Thu May 18 18:47:25 2000 Owen Taylor <otaylor@redhat.com>
20321 * gtk/gtktextbtree.c (redisplay_mark): We need to invalidate
20322 the region not just redisplay it after-all, since we store the
20323 cursors in the LineDisplay. (Ugly interactions here between
20324 GtkLayout and GtkTextBTree here.)
20326 * gtk/gtktextbtree.c (redisplay_region): Fixed reversed comparison.
20328 Thu May 18 18:43:21 2000 Owen Taylor <otaylor@redhat.com>
20330 * gdk/gdkwindow.h gdk/x11/gdkgeometry-x11.c (gdk_window_scroll):
20331 Added function to scroll contents of a window while keeping the
20332 window constant. Works by XCopyArea or guffaw-scrolling depending
20333 on the details of how the window is set up. (guffaw-scrolling
20334 still needs to be filled in.)
20336 Wed May 17 22:36:53 2000 Owen Taylor <otaylor@redhat.com>
20338 * gtk/gtktextiter.c gtk/gtkmain.c: Add a debug key for the text widget,
20339 move the debugging that was tied to a global variable
20342 * gtk/gtkmarshal.list: Add NONE:INT,INT,INT
20344 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.c: Keep a separate
20345 validated flag, in line data instead of setting height/width to
20346 -1. This allows us to perform operations with partially invalid
20347 buffer (using the old size for invalid lines) and thus to do
20348 incremental vaidation. Keep height/width aggregates up to date
20349 when deleting text and rebalancing the tree.
20351 * gtk/gtktextbtree.[ch]: Add functions validate a line
20352 (gtk_text_btree_validate_line), and to validate up
20353 to a number of pixels (gtk_text_btree_validate).
20355 * gtk/gtktextlayout.[ch]: Add an ::invalidated signal
20356 that indicates that something is changed and a revalidation
20357 pass is needed. Change ::need_repaint to ::changed, and
20358 make it take old and new yranges instead of a rectangle.
20360 * gtk/gtktextbtree.[ch] gtk/gtktextlayout.[ch]: Move
20361 the line_data_destroy() function from
20362 gtk_text_btree_add_view() to a virtual function in
20365 * gtk/gtktextbtree.[ch]: Remove gtk_text_btree_get_damage_range(),
20366 since we are handling partial repaints in a different fashion
20369 * gtk/gtktextbtree.[ch]: Only repaint the changed portion
20370 of the selection instead of queueing a repaint on the
20373 * gtk/gtktextbuffer.[ch] gtk/gtktextbtree.[ch]: Move
20374 get_selection_bounds() down to btree, make the function
20375 in buffer a wrapper around the btree function.
20377 * gtk/gtktextlayout.[ch]: Add functions to check if the
20378 layout is valid and to recompute either a range of pixels
20379 aroudn a line or a certain total number of pixels.
20381 * gtk/gtktextlayout.[ch]: Cache a single line display;
20382 now that we only redraw the needed portions, the hit rate
20383 for this cache is quite high.
20385 * gtk/gtktextview.[ch]: Keep track of the first paragraph
20386 on the screen so that when re-laying-out the buffer, we can
20387 keep the same place. This requires connecting to ::value_changed
20390 * gtk/gtktextview.[ch]: Add idle functions to revalidate
20391 the buffer after we receive an ::invalidated signal.
20393 Wed May 17 22:10:47 2000 Owen Taylor <otaylor@redhat.com>
20395 * gtk/gtklayout.c (gtk_layout_size_allocate): Set upper
20396 to max of allocation and layout size, not just to the
20399 * gtk/gtk[hv]scrollbar.c (gtk_[hv]scrollbar_calc_slider_size):
20400 Invalidate window so it gets redrawn properly.
20402 * gdk/gdkwindow.c (gdk_window_invalidate_rect): Allow rect == NULL
20403 to mean the entire window.
20405 * gdk/gdkevents.h: Move definition for GDK_PRIORITY_REDRAW
20406 into public header.
20408 Mon May 15 14:51:31 2000 Owen Taylor <otaylor@redhat.com>
20410 * gtk/gtktextmark.c (gtk_text_mark_get_name): Add function
20411 to get the name of a mark.
20413 * gtk/gtktextlayout.c (gtk_text_layout_get_line_at_y): Add a function
20414 to find the paragraph from a y position.
20416 Thu May 11 12:57:20 2000 Owen Taylor <otaylor@redhat.com>
20418 * gtk/gtktextbtree.c (gtk_text_btree_node_invalidate_upward): Valid
20419 nodes have width/height >= 0, not > 0.
20421 Tue May 9 21:29:06 2000 Owen Taylor <otaylor@redhat.com>
20423 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c (gtk_text_layout_get_line_display):
20424 Add a size_only flag, so when we only need the size, we don't create
20425 useless appearance attributes.
20427 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Remove
20428 duplicate setting of font description.
20430 * gtk/gtkscale.c: Use PANGO_SCALE instead of 1000
20432 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
20434 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
20435 EXTRA_DIST. It does not work well when the file that
20436 everything depends on is not in the tarball.
20438 Wed Apr 26 00:56:14 2000 Owen Taylor <otaylor@redhat.com>
20440 * gtk/testgtk.c: Some hacks and fixes so that it basically
20441 works when not sitting in the GTK+ build tree.
20443 2000-05-03 Havoc Pennington <hp@redhat.com>
20445 * gtk/gtktextbtree.c (gtk_text_line_next_could_contain_tag):
20446 Properly determine the ordering of the tag root and the current
20447 line within the tree. Previous algorithm only worked if the tag
20448 root's immediate parent was the common root of both the current
20449 line and the tag root.
20451 Wed Apr 26 00:43:00 2000 Owen Taylor <otaylor@redhat.com>
20453 * gtk/gtktextlayout.c (set_para_values): Fix some bugs in
20456 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Track
20457 the widget text directional dynamically.
20459 * gtk/gtktextview.[ch]: Added functions to get and set default
20462 Tue Apr 25 23:47:38 2000 Owen Taylor <otaylor@redhat.com>
20464 * gtk/gtktextlayout.c (gtk_text_layout_get_iter_location): Fix bug
20465 in cursor location computation.
20467 Tue Apr 25 23:22:59 2000 Owen Taylor <otaylor@redhat.com>
20469 * gtk/gtklayout.c (gtk_layout_set_size): Clamp hadjustment/
20470 vadjusment values properly when layout gets smaller.
20472 * gtk/gtktextview.c (need_repaint_handler): Areas being
20473 passed in are far completely inaccurate, and sometimes
20474 too small, so, for now, just queue a redraw on the
20475 whole visible region.
20477 2000-04-25 Havoc Pennington <hp@redhat.com>
20479 * gtk/gtktextbtree.c (summary_destroy): new function to
20480 destroy tag summary nodes
20481 (gtk_text_line_next_could_contain_tag): this function was
20482 totally broken if the line passed in wasn't below the tag
20484 (gtk_text_btree_first_could_contain_tag): In the tag == NULL
20485 "wildcard" case, we have to do a linear scan. Blah.
20486 (gtk_text_btree_last_could_contain_tag): In tag == NULL case,
20487 we have to do the linear scan
20488 (tag_removed_cb): When a tag is removed from the tag table,
20489 remove the GtkTextTagInfo node from the btree.
20490 (gtk_text_btree_spew): Implement the spew function, for
20491 our debugging pleasure.
20493 Tue Apr 25 19:40:18 2000 Owen Taylor <otaylor@redhat.com>
20495 * gtk/gtktextlayout.c (gtk_text_layout_set_buffer): Fix
20496 a problem with referring to the wrong buffer.
20498 * gtk/gtkentry.c: Fix focus-in/focus-out confusion.
20500 * gtk/gtkrc.c gtk/gtkstyle.c: Moving setting default
20501 font description to gtk_style_new() - otherwise things
20502 don't work without a .gtkrc file.
20504 * gtk/gtktextbuffer.c (gtk_text_buffer_new): Sink the
20505 tags table if we create it ourself, too.
20507 * gdk/gdktypes.h (enum): Move GDK_RELEASE_MASK, since
20508 it was conflicting with XKB modifiers.
20510 * gtk/gtktextview.[ch]: Add simple support for
20513 Mon Apr 24 19:34:18 2000 Owen Taylor <otaylor@redhat.com>
20515 * gtk/gtkentry.c (gtk_entry_move_cursor_visually): Fix problem
20516 with deletion from last commit.
20518 Mon Apr 24 19:29:40 2000 Owen Taylor <otaylor@redhat.com>
20520 * gtk/gtkwidget.c (gtk_widget_create_pango_context): Set the language
20521 in the context from the current locale.
20523 * gtk/gtkentry.c (gtk_entry_size_request): Use language from the
20524 context, not hardcoded value.
20526 * gtk/gtkentry.c (gtk_entry_move_cursor): Make character movement visual,
20529 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
20531 * gtk/gtkentry.c gtk/gtktextdisplay.c: Don't handle selections as
20532 attributes - that doesn't handle partial-glyph selection
20533 properly. Instead use new pango_layout_line_get_x_ranges()
20534 functionality to draw the selection.
20536 * gtk/gtkentry.c: Simplify code since pango_layout_line_index_to_x()
20537 now properly handles out-of-range coordinates.
20539 * gtk/gtktextbuffer.c: Emit "mark_set" when the cursor is moved.
20541 * gtk/gtktextiter.h gtk/gtktextiterprivate.h: Make gtk_text_iter_get_line_byte()
20544 * gtk/gtktextlayout.[ch]: Properly set the direction in the PangoContext
20545 for paragraphs opposite to the base direction of the widget.
20547 * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Fixes for alignment.
20549 * gtk/gtktextlayout.c: Don't split segments on marks, since that
20550 causes Arabic words to reshape as you cursor through.
20552 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Implement virtual
20553 cursor position when moving vertically with the arrow keys and
20554 scrolling with page-up/page-down. (Arrow keys save only the X,
20555 scrolling saves both X and Y.)
20557 This means you can line-up / line-down or page-up / page-down
20558 without losing your place, and also that moving vertically
20559 with the cursor keys keeps the same X position, not the same
20562 * gtk/gtktextlayout.[ch] gtk/gtktextview.[ch]: Make vertical
20563 arrow keys move by display lines, not paragraphs.
20565 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
20567 * gtk/gtklayout.c: Make sure that the bin window is at least
20568 as big as the allocation. (Should we also make sure that the
20569 bin window is big enough to completely cover widget->window?)
20571 * gtk/gtktextview.c (gtk_text_view_get_visible_rect): Add
20572 function to get the onscreen rectangle.
20574 * gdk/x11/gdkwindow-x11.c (gdk_window_get_pointer): Correctly account
20575 for offsets in window coordinates.
20577 Sun Apr 16 16:13:27 2000 Owen Taylor <otaylor@redhat.com>
20579 * gtk/gtkentry.c (gtk_entry_get_cursor_locations): Fix index/offset
20582 * gtk/gtktextview.c (gtk_text_view_ensure_layout): Set the default direction
20583 from the widget direction.
20585 * gtk/gtktexttag.c gtk/gtktexttagprivate.h (gtk_text_tag_set_arg):
20586 Add a "direction" attribute.
20588 * gtk/gtktextview.c: global s/tkxt/text_view/.
20590 * gtk/testtext.c: Added long block of text in Arabic, to test out
20591 the direction attributes. (Some problems with the shaping system
20592 for arabic become obvious - like the fact the cursor splits words
20593 into unjoined pieces.)
20595 Fri Apr 14 12:54:34 2000 Owen Taylor <otaylor@redhat.com>
20597 * gtk/gtktextdisplay.c (render_layout): Add overstrike handling.
20599 * gtk/gtktextlayout.c: Fix up alignment.
20601 * gtk/testtext.c: Add some tests for centering, wrapping.
20603 Fri Apr 14 09:26:22 2000 Owen Taylor <otaylor@redhat.com>
20605 * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20606 Add a draw_glyphs() operation to the drawable vtable and gdk_draw_glyphs().
20607 If we wrote GTK+-specific layout-render function this could just replace
20608 the draw_layout() operation in the vtable.
20610 * gtk/gtkentry.c: Move guts of gtk_entry_get_cursor_locations to
20611 pango_layout_get_cursor_pos() and use that function.
20613 * gtk/gtktextchild.[ch]: add gtk_ onto pixmap_segment_new(), since it
20614 is a non-static symbol.
20616 * gtk/gtktextbtree.[ch]: Replace gtk_text_btree_find_line_data_by_y()
20617 with gtk_text_btree_find_line_by_y()
20619 * gtk/gtktextdisplay.c: Rewrote for Pango - uses a custom layout
20620 renderer that handles GtkTextAppearance attributes.
20622 * gtk/gtktexttag.[ch] gtk/gtktexttagprivate.h:
20624 - Move the values in the style that don't affect geometry into a
20625 GtkTextAppearance structure.
20626 - Change underline to take a PangoUnderline and "font" a string
20627 representation of a font description
20628 - Add a "font_desc" attribute which takes a FontDescription structure.
20630 * gtk/gtktextlayout.[ch]:
20632 - Get rid of the display-line list per each line. Instead, we
20633 generate, on demand, a GtkTextLineDisplay structure which]
20634 contains a PangoLayout * and other necesary information
20635 (offsets, cursor locations) for displaying a paragraph.
20636 - Get rid of the code to wrap lines, create display chunks,
20637 etc. Instead, we just go through a paragraph and convert
20638 it into the necessary inputs to a PangoLayout.
20639 - Implement a new attribute type, GtkTextAttrAppearance. This
20640 holds a GtkTextAppearance, and is used to pass colors,
20641 stipple, etc, through from the layout to the display without
20642 having to use lots and lots of individual attributes.
20643 - Reimplement gtk_layout_get_iter_at_pixel() gtk_layout_get_iter_pos()
20644 in terms of PangoLayout functions.
20646 * gtk/gtktextview.c:
20648 - Handle passing the necessary PangoContext to the layout
20649 - Some fixups in painting to deal with the automatic backing store
20650 and offsetting of GTK+-1.4
20651 - Add a style_set handler so that the default style reacts
20652 properly to theme changes.
20654 * gtk/gtktext?*.[ch]: Random code-style fixes.
20656 * gtk/testtext.c: Substitute in languages that Pango handles now for Thai
20658 Mon Apr 10 10:33:45 2000 Owen Taylor <otaylor@redhat.com>
20660 * gtk/gtktext?*.[ch]: Check in Havoc's port of the Tk text widget,
20661 in original form preparatory to Pango-ization and gdkimcontext-ization.
20663 Thu Apr 6 19:25:39 2000 Owen Taylor <otaylor@redhat.com>
20665 * gtk/gtkimcontext.c: Move default implementations to real_* vfuncs,
20666 so that we can derive from gtkimcontext in language bindings properly.
20668 Thu Apr 6 16:02:52 2000 Owen Taylor <otaylor@redhat.com>
20670 * gtk/gtkimcontextsimple.[ch]: Use gdk_keyval_to_unicode to gdk_unicode_to_keyval.
20671 Add a compose table including (almost) all the compose combinations
20672 from X. This is 6k of static, shared data as opposed to 50k or so of dynamic
20673 data in the XIM implementation.
20675 * gdk/gdk.h gdk/gdkkeyuni.c gdk/win32/gdkevents-win32.c (gdk_keyval_to_unicode, gdk_unicode_to_keyval):
20676 Moved functions to convert keyvalues from and to unicode here from
20677 the win32 port and made them public.
20679 Wed Apr 5 16:37:29 2000 Owen Taylor <otaylor@redhat.com>
20681 * gtk/gtkeditable.c (gtk_editable_insert_text): Allow new_text_length == -1.
20683 Wed Apr 5 16:27:45 2000 Owen Taylor <otaylor@redhat.com>
20685 * gtk/gtkimcontext.[ch]: Base class for new input context system
20687 * gtk/gtkimmulticontext.[ch]: Proxy input context that allows
20688 the real input context implementation to be loaded from modules
20689 and switched on the fly.
20691 * gtk/gtkcontextsimple.[ch]: Simple implementation of an input
20692 context that just does direct keysymbol => unicode translation.
20694 * gtk/gtkentry.[ch]: Start switching editing over to using
20695 GtkInputContext. (No handling of preedit yet.)
20697 Wed Apr 5 15:48:41 2000 Owen Taylor <otaylor@redhat.com>
20699 * gtk/gtktypeutils.h (GTK_CHECK_GET_CLASS): Fix problem with one too
20700 many substitutions. (klass should not be subsituted.)
20702 Wed Apr 5 00:18:14 2000 Owen Taylor <otaylor@redhat.com>
20704 * configure.in: Add checks for Pango
20706 * configure.in docs/Makefile.am: Add test for sgml2html
20707 and allow 'make dist' without building html, but print out
20708 warnings in that case. (For making snapshots)
20710 * gdk/Makefile.am gdk/x11/Makefile.am gtk/Makefile.am:
20711 Add Pango libraries and C flags
20713 * gdk/gdkdraw.c gdk/gdkdrawable.h gdkwindow.c gdk/x11/gdkdrawable-x11.c:
20714 Add function (gdk_draw_layout) to draw a pango layout.
20716 * gdk/gdkpango.h gdk/x11/gdkpango-x11.c: New file with functions
20717 for getting Pango contexts for GDK.
20719 * gtk/gtkeditable.c: Get rid of dead code gtk_editable_parent_set()
20721 * gtk/gtkentry.[ch]: Complete rewrite to use Pango, add bidirectional
20724 * gtk/gtkentry.c: Hack in simple Hebrew input with direct
20725 keysym => unicode translations. More languages can be added
20726 here, but real input-method support is needed.
20728 * docs/Changes-1.4.txt: Added note about entry behavior.
20730 * gtk/gtkenums.h gtk/gtkwidget.[ch] testgtk.c gtkprivate.h: Add functions
20731 to set the reading direction for a widget and the global direction.
20732 Add test which allows toggling the global direction. Two private
20733 flags are used to store the direction. (GTK_DIRECTION_SET + GTK_DIRECTION_LTR)
20735 * gtk/gtkcheckbutton.c gtk/gtkframe.c gtk/gtkhbbox.c gtk/gtkhbox.c
20736 gtk/gtkradiobutton.c gtk/gtkspinbutton.c gtk/gtktable.c
20738 * gtk/gtk[hv]scale.c gtk/gtkscale.[ch]: Draw numbers using Pango
20740 * gtk/gtklabel.[ch]: Moved to Pango and considerably rewritten. Line breaking,
20741 underlining now handled by Pango.
20743 * gtk/gtkstyle.[ch] gtk/gtkrc.[ch]: Add a PangoFontDescription
20744 to RCStyle and Style. (Having both this and the old font name and GdkFont
20747 * gtk/gtkwidget.[ch] (gtk_widget_create_pango_{context,layout}): Added
20748 convenience functions for creating contexts and layouts for widgets.
20750 * gtk/testgtk.c: Enhance label tests with multilingual labels.
20752 2000-05-29 Jonathan Blandford <jrb@redhat.com>
20754 * gtk/gtkclist.c (gtk_clist_column_titles_active): let you set the
20755 titles to be active, even if they aren't visible.
20756 (gtk_clist_column_titles_passive): Ditto.
20758 2000-05-21 Nils Barth <nils_barth@post.harvard.edu>
20762 * gtktypeutils.h: Spelling/grammar fixes in comments.
20764 Tue May 23 12:25:07 CEST 2000 lupus <lupus@debian.org>
20766 * gdk/nanox/*.h: add missing header files.
20768 Fri May 19 11:52:59 2000 Tim Janik <timj@gtk.org>
20770 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set
20771 send_event to TRUE.
20772 (gtk_drawing_area_size): queue a resize.
20774 Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
20776 * gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
20777 the handlers, also invalidate them. bug nailed down by Karl Nelson
20778 <kenelson@ece.ucdavis.edu>.
20780 Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
20782 * gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
20783 "(nil)" foundries, patch from Grigorios Magklis.
20785 * gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
20786 on non-available fonts, based on a patch by Grigorios Magklis
20787 <maglis@cs.rochester.edu>.
20789 2000-05-18 Elliot Lee <sopwith@redhat.com>
20791 * gdk/x11/gdkregion-generic.c: If a region does not have any
20792 rectangles, or if the specified rectangle is not in the region, then return GDK_OVERLAP_RECTANGLE_OUT
20793 instead of GDK_OVERLAP_RECTANGLE_IN.
20795 2000-05-17 Jonathan Blandford <jrb@redhat.com>
20797 * gtk/gtklayout.c (gtk_layout_map): Remove references to
20798 OFFSCREEN, as it is no longer necessary.
20800 Wed May 17 10:52:12 2000 Owen Taylor <otaylor@redhat.com>
20802 * gtk/gtkcolorsel.c: Patch from David Santiago
20803 <mrcooger@cyberverse.com> to change things so that the
20804 indicator of the active palette entry is done independently,
20805 not via the focus, since it should always be visible.
20807 2000-05-17 Tor Lillqvist <tml@iki.fi>
20809 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Plug same
20810 refcount leaks as in the X11 backend.
20812 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Logging
20815 * gdk/win32/gdkwindow-win32.c: Similar changes as in X11
20816 backend. Add _gdk_windowing_window_destroy().
20818 * gtk/gtkcolorsel.c: Include correct backend-specific header.
20819 Don't use XColor unless on X11. (No GDK_VISUAL_STATIC_COLOR
20820 either, but these probably do exist on nanox?)
20822 * gtk/gtkhsv.c: Use G_PI (fresh from <glib.h>) instead of M_PI
20823 which isn't necessarily defined by <math.h>.
20825 * gtk/gtkobject.c (gtk_object_init): Don't go up the class
20826 ancestry past GtkObject.
20828 * gtk/gtktypeutils.h: Mark GTK_TYPE_IDENTIFIER for export/import
20831 * gtk/gtk.def: Update corresponding to recent changes.
20833 * gtk/makefile.{cygwin,msc}: Updates.
20835 Fri May 12 18:46:51 2000 Owen Taylor <otaylor@redhat.com>
20837 * docs/Changes-1.4.txt: A bit of editing.
20839 * gdk/gdkwindow.c (_gdk_window_clear_update_area)
20840 * gdk/x11/gdkwindow-x11.c (gdk_window_hide): Add a function
20841 to clear the update area for the window, and clear it
20842 when hiding a window.
20844 * gdk/gdkwindow.c (gdk_window_begin_paint_region): Ignore
20845 if window destroyed.
20847 * gdk/gdkwindow.c (gdk_window_end_paint): Likewise.
20849 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Move
20850 gdk_window_destroy() to the generic code, since there was a lot of
20851 window-system-independent logic it in. Add a function:
20853 _gdk_window_destroy()
20855 to the internal API to destroy a window without unreferencing it.
20858 _gdk_windowing_window_destroy()
20860 That does the windowing-system-dependent part of destroying
20863 Fri May 12 11:07:41 2000 Owen Taylor <otaylor@redhat.com>
20865 * gtk/testgtk.c: Fix various memory leaks of pixmaps.
20867 Fri May 12 11:06:10 2000 Owen Taylor <otaylor@redhat.com>
20869 * gtk/gtkwidget.c docs/Changes-1.4.txt (gtk_widget_shape_combine_mask):
20870 Make gtk_widget_shape_combine_mask() keep a reference count on
20871 the pixmap since it keeps it around.
20873 Fri May 12 10:53:29 2000 Owen Taylor <otaylor@redhat.com>
20875 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix refcount
20878 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix refcount
20879 leak with event filters.
20881 Thu May 11 14:29:44 2000 Owen Taylor <otaylor@redhat.com>
20883 * gtk/gtkdnd.c (gtk_drag_dest_set_internal): Remove the
20884 signal handlers with the right data arguments. (Fixes
20885 some warnings when a widget was repeatedly set as a drag
20888 * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): Set data on the
20889 window so we can avoid avoid setting the DND properties on the
20890 toplevel window repeatedly.
20892 2000-05-13 Tor Lillqvist <tml@iki.fi>
20894 * gdk/win32/gdkwin32.h: Define more message types missing from
20897 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_DESTROY
20898 call gdk_window_destroy_notify(). It was never called. This
20899 probably meant that the GdkWindow was never freed. Thanks Owen for
20902 * gdk/win32/gdkwindow-win32.c (gdk_window_internal_destroy): Mark
20903 window as destroyed before calling DestroyWindow(). DestroyWindow()
20904 causes a call to the window procedure (gdk_WindowProc), which
20905 calls gdk_event_translate(), which calls
20906 gdk_window_destroy_notify(), which gets confused unless the window
20907 is set as destroyed.
20909 * gdk/win32/gdkcolor-win32.c (gdk_win32_color_to_string): Rename
20910 this function to indicate it's win32 only. Put inside #ifdef
20913 * gdk/win32/gdkevents-win32.c (gdk_win32_message_name): New
20914 debugging function. (gdk_event_translate:) Add a default branch
20915 that uses the above function to print debug messages with all
20916 Windows messages symbolically.
20918 * gdk/win32/gdkprivate-win32.h: Declare it, and
20919 gdk_win32_color_to_string, but only if G_ENABLE_DEBUG.
20921 Fri May 12 20:07:32 2000 Tim Janik <timj@gtk.org>
20923 * gtk/gtkcolorseldialog.c: don't include gtk/gtkintl.h in a
20924 public header file.
20926 Fri May 12 17:13:32 2000 Tim Janik <timj@gtk.org>
20928 * docs/Changes-1.4.txt: documented necessary changes for 1.4 transition.
20930 * gtk/gtktext.c: made the adjustments no-construct args, simply
20931 provide default adjustments.
20932 (gtk_text_destroy): release adjustments.
20934 * gtk/gtkprogressbar.c (gtk_progress_bar_class_init): made the
20935 adjustment argument non-construct.
20937 * gtk/gtkprogress.c (gtk_progress_destroy): release adjustment here,
20938 instead of in finalize.
20939 (gtk_progress_get_text_from_value):
20940 (gtk_progress_get_current_text):
20941 (gtk_progress_set_value):
20942 (gtk_progress_get_percentage_from_value):
20943 (gtk_progress_get_current_percentage):
20944 (gtk_progress_set_percentage):
20945 (gtk_progress_configure): ensure an adjustment is present.
20947 Thu May 11 01:24:08 2000 Tim Janik <timj@gtk.org>
20949 * gtk/gtkcolorsel.[hc]:
20950 * gtk/gtkcolorseldialog.[hc]:
20951 * gtk/gtkhsv.[hc]: major code cleanups, destroy handlers need to chain
20952 their parent implementation, use bit fields for boolean values, don't
20953 create unused widgets, usage of glib types, braces go on their own
20954 lines, function argument alignment, #include directives etc. etc. etc..
20956 * gtk/Makefile.am (gtk_public_h_sources): install gtkhsv.h.
20958 Wed May 10 23:29:52 2000 Tim Janik <timj@gtk.org>
20960 * gtk/gtktoolbar.c (gtk_toolbar_destroy): don't unref a NULL tooltips.
20962 * gtk/gtkfilesel.c (gtk_file_selection_destroy): don't free a cmpl_state
20965 * gtk/gtkcombo.c (gtk_combo_item_destroy): don't keep references
20967 (gtk_combo_destroy): don't keep a pointer to a destroyed window.
20969 * gtk/gtkmenu.c (gtk_menu_init): reset the menu's toplevel pointer
20970 to NULL when the toplevel is getting destroyed.
20971 (gtk_menu_set_tearoff_state): same here for the tearoff_window.
20972 (gtk_menu_destroy):
20973 (gtk_menu_init): store the information of whether we have to
20974 readd the initial child ref_count during destruction in a new
20975 GtkMenu field needs_destruction_ref_count.
20977 * gtk/gtkviewport.c: SHAME! ok this one is tricky, so i note it
20978 here, those reading: learn from my mistake! ;)
20979 in order for set_?adjustment to support a default adjustemnt if
20980 invoked with an adjustment pointer of NULL, the code read (pseudo):
20981 if (v->adjustment) unref (v->adjustment);
20982 if (!adjustment) adjustment = adjustment_new ();
20983 if (v->adjustment != adjustment) v->adjustment = ref (adjustment);
20984 now imagine the first unref to actually free the old adjustment and
20985 adjustment_new() creating a new adjustment from the very same memory
20986 portion. here, the latter comparision will unintendedly fail, and
20987 all hell breaks loose.
20988 (gtk_viewport_set_hadjustment):
20989 (gtk_viewport_set_vadjustment): reset viewport->?adjustment to NULL
20990 after unreferencing it.
20992 * gtk/gtkcontainer.[hc]: removed toplevel registration
20993 functions: gtk_container_register_toplevel(),
20994 gtk_container_unregister_toplevel() and
20995 gtk_container_get_toplevels() which had wrong semantics
20996 anyways: it didn't reference and copy the list.
20998 * gtk/gtkwindow.c: we take over the container toplevel registration
20999 bussiness now. windows are registered across multiple destructions,
21000 untill they are finalized. the initial implicit reference count
21001 users are holding on windows is removed with the first destruction
21003 (gtk_window_init): ref & sink and set has_user_ref_count, got
21004 rid of gtk_container_register_toplevel() call. add window to
21006 (gtk_window_destroy): unref the window if has_user_ref_count
21007 is still set, got rid of call to
21008 gtk_container_unregister_toplevel().
21009 (gtk_window_finalize): remove window from toplevel list.
21010 (gtk_window_list_toplevels): new function to return a newly
21011 created list with referenced toplevels.
21012 (gtk_window_read_rcfiles): use gtk_window_list_toplevels().
21014 * gtk/gtkhscale.c (gtk_hscale_class_init): made the GtkRange
21015 adjustment a non-construct arg.
21016 * gtk/gtkvscale.c (gtk_vscale_class_init): likewise.
21017 * gtk/gtkhscrollbar.c (gtk_vscrollbar_class_init): likewise.
21018 * gtk/gtkvscrollbar.c (gtk_vscrollbar_class_init): likewise.
21020 * gtk/gtkrange.c: added some realized checks.
21021 (gtk_range_destroy): get rid of the h/v adjustments in the
21022 destroy handler instead of finalize. remove timer.
21023 (gtk_range_get_adjustment): demand create adjustment.
21025 * gtk/gtkviewport.c: made h/v adjustment non-construct args.
21026 we simply create them on demand now and get rid of them in
21027 the destroy handler.
21028 (gtk_viewport_destroy): get rid of the h/v adjustments in the
21029 destroy handler instead of finalize.
21030 (gtk_viewport_get_hadjustment):
21031 (gtk_viewport_get_vadjustment):
21032 (gtk_viewport_size_allocate): demand create h/v adjustment
21035 * gtk/gtkwidget.c (gtk_widget_finalize): duplicate part of the
21036 gtk_widget_real_destroy () functionality.
21037 (gtk_widget_real_destroy): reinitialize with a new style, instead
21038 of setting widget->style to NULL.
21040 Fri May 5 13:02:09 2000 Tim Janik <timj@gtk.org>
21042 * gtk/gtkcalendar.c:
21043 * gtk/gtkbutton.c: ported _get_type() implementation over to
21044 GType, either to preserve memchunks allocation facilities,
21045 or because Gtk+ 1.0 GtkTypeInfo was still being used.
21047 * gtk/gtkobject.[hc]: derive from GObject. ported various functions
21048 over. prepare for ::destroy to be emitted multiple times.
21049 removed reference tracer magic. chain into GObjectClass.shutdown()
21050 to emit ::destroy signal.
21052 * gtk/gtksignal.c: removed assumptions about GTK_TYPE_OBJECT being
21055 * gtk/gtkmain.c: removed gtk_object_post_arg_parsing_init()
21062 * gtk/gtkargcollector.c:
21063 * gtk/gtkarg.c: various fixups to work with GTK_TYPE_OBJECT
21064 not being a fundamental anymore, and to work with the new
21065 type system (nuked fundamental type varargs clutter).
21067 * gtk/*.c: install finalize handlers in the GObjectClass
21068 part of the class structure.
21069 changed direct GTK_OBJECT()->klass accesses to
21071 changed direct object_class->type accesses to GTK_CLASS_TYPE().
21073 * gtktypeutils.[hc]: use the reserved fundamental ids provided by
21074 GType. made most of the GTK_*() type macros and Gtk* typedefs
21075 simple wrappers around macros and types provided by GType.
21076 most notably, a significant portion of the old API vanished:
21079 GTK_TYPE_FLAT_FIRST, GTK_TYPE_FLAT_LAST,
21080 GTK_TYPE_STRUCTURED_FIRST, GTK_TYPE_STRUCTURED_LAST,
21083 GTK_TYPE_C_CALLBACK,
21087 gtk_type_set_varargs_type(),
21088 gtk_type_get_varargs_type(),
21089 gtk_type_check_object_cast(),
21090 gtk_type_check_class_cast(),
21091 gtk_type_describe_tree(),
21092 gtk_type_describe_heritage(),
21094 gtk_type_children_types(),
21095 gtk_type_set_chunk_alloc(),
21096 gtk_type_register_enum(),
21097 gtk_type_register_flags(),
21098 gtk_type_parent_class().
21099 replacements, where available are described in ../docs/Changes-1.4.txt.
21100 implemented compatibility functions for the remaining API.
21102 * configure.in: depend on glib 1.3.1, use gobject module.
21104 Thu May 11 12:39:50 2000 Owen Taylor <otaylor@redhat.com>
21106 * TODO.xml: Various updates to current status.
21108 Wed May 10 20:25:04 2000 Owen Taylor <otaylor@redhat.com>
21110 * gtk.m4: Print out version when test succeeds.
21112 Wed May 10 16:38:17 2000 Owen Taylor <otaylor@redhat.com>
21114 * gtk/Makefile.am docs/Changes-1.4.txt gtk/gtkcolorsel.[ch]
21115 gtk/gtkhsv.[ch]: Color selection dialog rewrite.
21117 (Original triangle color selector from Simon Budig
21118 <Simon.Budig@unix-ag.org>, Cleaned up and rewritten for GTK+ by
21119 from Jonathan, Havoc, and Federico. Merge into GTK+ done by David
21120 Santiago <mrcooger@cyberverse.com>)
21122 * gtk/gtkcolorseldialog.[ch]: Split color selection dialog
21123 out into a separate widget.
21125 * gtk/testgtk.c: Add some checkbuttons for toggling palette
21126 and opacity controls.
21128 Wed May 10 16:08:09 2000 Owen Taylor <otaylor@redhat.com>
21130 * configure.in (GTK_LIBS_EXTRA): Remove references to gobject that
21131 snuck in prematurely.
21133 2000-05-07 Tor Lillqvist <tml@iki.fi>
21135 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix typo. I
21136 had deleted a ! operator by mistake, which caused
21137 GDK_SELECTION_CLEAR events never to be generated, which caused
21138 only the first copy to the clipboard from an gtkeditable to
21139 actually cause a copy to the Windows clipboard.
21141 2000-05-06 Tor Lillqvist <tml@iki.fi>
21143 * gdk/win32/gdkdnd-win32.c: Enable shortcut resolution for gcc
21144 compilation, too. Current mingw gcc distributions include the
21145 necessary headers. Also the necessary IIDs are now in mingw
21146 headers/libraries, and own definitions unnecessary.
21148 More hacking on OLE2 DND, still doesn't work though, and thus
21151 * gdk/win32/gdkwindow-win32.c: Remove gdk_window_clear() from
21154 Sat, 6 May 2000 13:31:34 +0200 Paolo Molaro <lupus@linuxcare.com>
21156 * gdk/nanox/*: nano-X port work in progress.
21157 * gdk/simple.c: simple test for Gdk.
21158 * README.nanox: notes about the port: read this first!
21159 * gtk/gtk{dnd,plug,selection,window}.c: minimal changes to make gtk compile
21162 Fri May 5 11:18:47 2000 Owen Taylor <otaylor@redhat.com>
21164 * gdk/gdkwindow.c gdk/x11/gdkwindow-x11.c (gdk_window_clear): Move
21165 gdk_window_clear() into common code, implement in terms of
21166 gdk_window_clear_area(). (Fixes bug where gdk_window_clear() was
21167 not redirected to the backing rectangle.
21169 Wed Apr 26 01:53:23 2000 Owen Taylor <otaylor@redhat.com>
21171 * gtk/Makefile.am (EXTRA_DIST): Add OLD_STAMP into
21172 EXTRA_DIST. It does not work well when the file that
21173 everything depends on is not in the tarball.
21175 Tue Apr 25 22:20:41 2000 Owen Taylor <otaylor@redhat.com>
21177 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Fix error
21178 with recursion where process_updates() is called from
21179 an expose handler. (GtkTextView is highly broken in
21180 doing this, but it should work, so it is a nice test
21183 Sun Apr 23 23:39:18 2000 Owen Taylor <otaylor@redhat.com>
21185 * gdk/gdkwindow.c (gdk_window_process_updates_internal): Gracefully
21186 handle the case where updates are queued during processing of
21189 Tue Apr 18 14:16:50 2000 Owen Taylor <otaylor@redhat.com>
21191 * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): We already assume
21192 window is on gdk_display - use that instead of segfaulting.
21194 Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
21196 * configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
21197 broken and require an empty arg, give it to them.
21199 Fri Apr 28 19:34:32 2000 Tim Janik <timj@gtk.org>
21201 * gtk/gtklabel.h: indentation fixes.
21203 2000-05-02 Tor Lillqvist <tml@iki.fi>
21205 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_arc): Don't try to
21206 draw too narrow or too low arcs, they seem to fail, at least with
21207 some display drivers.
21209 * gdk/gdk.c (gdk_init_check): Use G_DIR_SEPARATOR.
21211 Large changes to the Win32 backend, partially made necessary by
21212 the changes to the backend-independent internal
21213 structures. Attempts to implement similar backing store stuff as
21214 on X11. The current (CVS) version of the Win32 backend is *not* as
21215 stable as it was before the no-flicker branch was merged. A
21216 zipfile with that version is available from
21217 http://www.gimp.org/win32/. That should be use by "production"
21218 code until this CVS version is usable. (But note, the Win32
21219 backend has never been claimed to be "production quality".)
21221 * README.win32: Add the above comment about versions.
21223 * gdk/gdkwindow.c: Don't use backing store for now on Win32.
21225 * gdk/gdk.def: Update.
21227 * gdk/gdkfont.h: Declare temporary Win32-only functions. Will
21228 presumably be replaced by some more better mechanism as 1.4 gets
21229 closer to release shape.
21231 * gdk/makefile.{cygwin,msc}: Update.
21233 * gdk/win32/*.c: Correct inclusions of the backend-specific and
21234 internal headers. Change code according to changes in these. Use
21235 gdk_drawable_*, not gdk_window_* where necessary.
21237 * gdk/win32/gdkdnd-win32.c: Use MISC selector for GDK_NOTE, not
21240 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text): Don't try
21241 to interpret single characters as UTF-8. Thanks to Hans Breuer.
21242 Use correct function name in warning messages.
21244 * gdk/win32/gdkevents-win32.c: Use correct parameter lists for the
21245 GSourceFuncs gdk_event_prepare and gdk_event_check.
21246 (gdk_event_get_graphics_expose): Do implement, use
21247 PeekMessage. Thanks to Hans Breuer.
21248 (event_mask_string): Debugging function to print an GdkEventMask.
21249 (gdk_pointer_grab): Use it.
21251 * gdk/win32/gdkfont-win32.c: The Unicode subrange that the
21252 (old) book I used claimed was Hangul actually is CJK Unified
21253 Ideographs Extension A. Also, Hangul Syllables were missing.
21256 * gdk/win32/gdkgc-win32.c: Largish changes.
21258 * gdk/win32/gdkim-win32.c (gdk_set_locale): Use
21259 g_win32_getlocale() from GLib, and not setlocale() to get current
21262 * gdk/win32/gdkprivate-win32.h
21263 * gdk/win32/gdkwin32.h: Move stuff from gdkprivate-win32.h to
21264 gdkwin32.h, similarily as in the X11 backend.
21266 * gdk/win32/gdkwindow-win32.c (gdk_propagate_shapes): Bugfix,
21267 assignment was used instead of equals in if test. Thanks to Hans
21270 * gdk/win32/gdkgeometry-win32.c: New file, just a quick hack of
21273 * gdk/win32/makefile.{cygwin,msc}
21274 * gtk/makefile.{cygwin,msc}: Updates. Better kludge to get the
21275 path to the Win32 headers that works also with the mingw compiler.
21277 * gtk/gtkstyle.c: Include <string.h>.
21279 2000-04-26 Havoc Pennington <hp@redhat.com>
21281 * gtk/gtklabel.c (gtk_label_get_text): Add this function,
21282 replacing the broken gtk_label_get ()
21284 2000-04-15 Havoc Pennington <hp@pobox.com>
21286 * gdk/gdkdnd.h: clean up enum format, remove extra comma,
21287 this keeps scanner scripts from getting confused.
21289 * gdk/gdkdraw.c (gdk_drawable_get_data): This should return the
21290 data, rather than void
21292 2000-04-15 Tor Lillqvist <tml@iki.fi>
21294 * gtk/gtkclist.c (gtk_clist_motion)
21295 * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
21296 with is_hint FALSE, get x and y from the event. They used to be
21297 used uninitialised. The Win32 backend never sends motion events
21298 marked as hints. This for instance fixes the annoying file and
21299 font selector behaviour in the Win32 version.
21301 2000-04-14 Tor Lillqvist <tml@iki.fi>
21303 * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
21304 gtk_private_n_signals variables, they are used by some software,
21307 * gtk/gtkrc.c (get_gtk_sysconf_directory): (Win32:) Fetch the
21308 installation directory from the Registry, where the installer
21309 should have put it.
21311 Fri Apr 7 17:19:27 2000 Owen Taylor <otaylor@redhat.com>
21313 * gdk/x11/Makefile.am: Fix problem with installation directory for
21316 * gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
21317 <mrcooger@cyberverse.com> so that when selecting menus with the
21318 mouse, the first item will not be selected, but when selecting
21319 with an accelerator, or navigating left-right on a menubar with
21320 the menus popped up, the first item will be selected.
21322 2000-04-05 Dan Damian <dand@dnttm.ro>
21324 * configure.in: Added "ro" to ALL_LINGUAS.
21326 Wed Apr 5 00:08:36 2000 Owen Taylor <otaylor@redhat.com>
21328 * gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Fix screwy
21331 * Makefile.am (EXTRA_DIST): Fix typo.
21333 * gdk[/x11]/Makefile.am (INCLUDES): Add $(top_builddir)/gdk
21334 to catch gdkconfig.h
21336 * gtk/gtkitemfactory.c: Added FIXME.
21338 2000-03-30 Jonathan Blandford <jrb@redhat.com>
21340 * gtk/gtkpaned.c (gtk_paned_get_position): oops.
21341 s/return_if_fail/return_val_if_fail/g and add a return value.
21343 Mon Mar 27 20:56:14 2000 Owen Taylor <otaylor@redhat.com>
21345 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Fix up
21348 * gdk/gdkinput.h: Fix missing line from merge.
21350 Mon Mar 27 20:39:49 2000 Owen Taylor <otaylor@redhat.com>
21352 * gdk/gdkcolor.c cursor.c gdkdraw.c gdkfont.c: Include gdkinternals.h
21353 instead of gdkprivate.h.
21355 Sun Mar 12 15:19:24 2000 Owen Taylor <otaylor@redhat.com>
21357 * gtk/gtkinputdialog.h (struct _GtkInputDialogClass): Fix
21358 parent class to correctly be GtkDialogClass.
21360 Thu Feb 24 23:58:21 2000 Owen Taylor <otaylor@redhat.com>
21362 * gdk/x11/gdkgeometry-x11.c: Don't worry about clipping of
21363 toplevel windows and their immediate children by their parents,
21364 since the size of toplevel windows is out of our immediate
21365 control and we don't get any real benefit from trying to track
21366 this size for clipping.
21368 * gdk/gdkprivate.h (struct _GdkWindowPrivate) gdk/x11/gdkwindow-x11.c : Add a flag
21369 for input_only windows.
21371 * gdk/gdkwindow.c gdk/x11/gdkgeometry-x11.c: Use the above flag
21372 to fix some hacks and make sure that we don't try to set the
21373 background of input only windows.
21375 Thu Feb 24 18:11:46 2000 Owen Taylor <otaylor@redhat.com>
21377 * gdk/gdkinternals.h gdk/gdkprivate.h gdk/Makefile.am: Add a header file for
21378 the _really_ internal stuff, and leave gdkprivate.h for the fake private
21379 stuff that we've traditionally exposed.
21381 * gdk/**.c: Use gdkinternals.h where appropriate.
21383 * gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h gdk/x11/*.c: Make gdkx.h
21384 not include gdkprivate-x11.h, move all stuff of conceivable public
21385 interest into gdkx.h; keep all really private stuff in
21386 uninstalled header gdkprivate-x11.h.
21388 * gdk/gdkdraw.c gdk/gdkwindow.c gdk/gdkinternals: Redirect all calls to
21389 image->image_put on windows through a new function _gdk_window_draw_image()
21390 to allow us to do backing store for images. (Sort of ugly)
21392 * gdk/gdkgc.c gdk/gdkprivate.h: Cache the ts and clip origins for graphics
21393 contexts locally so that we can offset them properly when drawing
21394 onto backing pixmaps.
21396 * gdk/gdkinput.h: Reindented
21398 * gdk/gdkprivate.h gdk/x11/gdkwindow-x11.c: Store the background
21399 pixmap or color for the window, so we can properly initialize
21400 our double-buffer pixmaps, and also so that we temporarily set
21401 a background of None while scrolling.
21403 * gdk/gdkregion.h: Revise region boolean operators to have an
21404 interface that is actually convenient - switch from creating new
21405 regions on every op, to "methods" that modify existing regions
21406 (A = A OP B). 3 argument forms which allow dest == src, would also
21407 be possible, but the current interfaces seem to map nicely
21408 onto what needs to be done. (There is quite a lot of region
21411 * gdk/gdkregion.h: Add constructor from rectangle and a copy
21414 * gdk/x11/{gdkregion-generic.[ch],gdkpolyreg-generic.c,
21415 gdkpoly-generic.h: Copy region code from Xlib, switch it over
21416 to 32 bit coordinates, modify it to be mostly GTK+ style
21417 and to have interfaces that match gdkregion.h.
21419 * gdk/gdkwindow.c gdk/gdkprivate.h: Add facility for
21420 double-buffered drawing. gdk_window_begin_paint_{rect,region}()
21421 create a backing pixmap and redirect all drawing to
21422 that backing pixmap until a matching gdk_window_end_paint().
21424 * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkdrawable-x11.c:
21425 Create a special drawable class for GtkWindow's that
21426 redirects the drawing to the backing pixmap as necessary
21427 and then calls the real operations in _gdk_windowing_window_class.
21429 * gdk/gdkprivate.h gdk/gdkwindow.[ch] gdk/x11/gdkevents-x11.c:
21430 Store invalid region for each window. Generate expose events for invalid
21431 region in an idle. This replaces both the expose compression
21432 and the redrawing queuing in GTK+. It is both more efficient and
21433 simpler than either one individually and far more so then the
21436 * gdk/x11/gdkgeometry.c gdk/x11/gdkwindow.c gdk/x11/gdkprivate-x11.h:
21437 Emulate 32 bit coordinates for windows with 16 bit coordinates
21438 by offsetting drawing, guffaw scrolling techniques and
21439 mapping/unmapping child windows as necessary.
21441 * gdk/gdkwindow.[ch] gdk/x11/gdkgeometry.c: Add anti-exposes,
21442 where, when invalid regions are processed, the region is stored,
21443 and if expose events come in that are detectably duplicate
21444 the processed exposes (by comparison of event serial numbers),
21445 the stored region is subtracted out of those exposes.
21447 * gdk/x11/gdkgeometry.c: Temporarily unset backing pixmaps of
21448 regions newly exposed when scrolling or resizing windows.
21449 This, combined with forcing processesing of queued invalidated
21450 regions, gives nice flicker-free scrolling.
21452 * gtk/gtklayout.c gtk/gtkviewport.c: Force processing of
21453 invalidated regions after every scroll.
21455 * gtk/gtklayout.c: Vastly simplify using the new 32 bit coordinate
21456 emulation in GDK. Its, for all practical purposes just a
21457 GtkViewport/GtkFixed hybrid now.
21459 * gdk/gdkdrawable-x11.c: Convert from GDK (32 bit) to X11
21460 (16-bit) structures as necessary instead of just casting.
21462 * gdk/x11/gdkgc-x11.c gdk/x11/gdkx.h: Replace XSetRegion with code
21463 in terms of the structures from gdkregion-generic.c, using appropriate
21464 offsets from GDK to X11 coordinates. Cache clip mask and
21465 origin and ts origin locally and only flush to the server
21466 when drawing, to avoid constantly setting and resetting these
21467 values when offsetting GC's for scrolling and backing pixmaps.
21469 * gdk/x11/gdkinput-x11.c: Fix leak of axes structures.
21471 * gtk/gtkcontainer.c: Call process_all_updates at end
21472 of resizing to reduce flicker. (Avoids having redraw
21473 lag arbitrarily behind resize under some circumstances)
21475 * gtk/gtkentry.c: Remove old backing store code, and simply take
21476 advantage of the new backing store capabilities of GDK.
21478 * gtk/gtkmain.c: Simple implementation of widget backing
21479 store - simply push a paint while handling each expose.
21480 (Should really be configurable widget for widget.)
21482 * gtk/gtkwidget.c: Remove all the old complicated redraw
21483 code, and simply invalidate the GDK windows from
21484 gdk_window_queue_clear(), etc. (Sigh, so much carefully
21485 debugged complexity ... gone to the winds.)
21487 Remove all the code for suppressing expose events while
21488 resizes are pending; this isn't needed since the invalid
21489 areas won't be processed until after the resizes are
21490 processed, since they are in a lower priority idle.
21492 Thu Feb 24 15:37:41 2000 Owen Taylor <otaylor@redhat.com>
21494 * gdk/gdkrectangle.c (gdk_rectangle_intersect): Set width
21495 and height of dest rectangle for non-intersecting rectangles.
21497 Sun Feb 20 16:47:31 2000 Owen Taylor <otaylor@redhat.com>
21499 * gtk/gtkwidget.h: Make GtkAllocation just a typedef
21502 Sun Feb 20 11:27:00 2000 Owen Taylor <otaylor@redhat.com>
21504 * gdk/gdk{events,image,private,types,window}.h
21505 gdk/x11/gdkinputprivate.h: Change all coordinates
21506 from int16 to int. Also, Change width and height from
21507 unsigned to signed to avoid all the stupid C
21510 Sat Feb 19 12:01:53 2000 Owen Taylor <otaylor@redhat.com>
21512 * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_drawable):
21513 Use gdk_drawable_get_depth instead of gdk_drawable_get_visual.
21514 Add some more detailed checking.
21516 * gdk/gdkdraw.c gdk/gdkdrawable.h (gdk_drawable_get_depth):
21517 New function to retrieve the depth of a drawable.
21519 * gdk/gdkprivate.h (struct _GdkDrawablePrivate): Add a depth
21520 field, reorder fields to save memory.
21522 Mon Dec 13 14:06:03 1999 Owen Taylor <otaylor@redhat.com>
21524 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Draw a small portion
21525 of the background image instead of scaling the background down to
21528 * gtk/gtk[hv]scrollbar.c (gtk_hscrollbar_size_allocate): Removed mysterious
21529 which temporarily set slider to wrong size.
21531 * gtk/gtkaspectframe.c gtkbin.c: Remove unecessary calls to
21534 Wed Nov 17 18:36:05 1999 Owen Taylor <otaylor@redhat.com>
21536 2000-03-23 Jonathan Blandford <jrb@redhat.com>
21538 * gtk/gtkpaned.c (gtk_paned_get_position): add getter.
21540 2000-03-17 Tor Lillqvist <tml@iki.fi>
21542 * gdk/win32/gdkevents-win32.c: Remove the #ifndef
21543 USE_DISPATCHMESSAGE sections, we do want to use DispatchMessage.
21545 * gdk/win32/gdkfont-win32.c
21546 * gdk/win32/gdkproperty-win32.c
21547 * gdk/win32/gdkselection-win32.c
21548 * gdk/win32/gdkwindow-win32.c: Add const to some arguments that are
21551 Wed Mar 15 02:59:38 PST 2000 Manish Singh <yosh@gimp.org>
21553 * gtk/gtkvpaned.c: removed stray gutter_size reference, a 1.2 relic
21555 Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
21557 * gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
21558 is called without trapping X errors.
21560 Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
21562 * gtk/gtkrc.*: Fix problem where stray '"' characters found their
21563 way into the fontset lists.
21565 Tue Feb 22 08:52:52 2000 Tim Janik <timj@gtk.org>
21567 * gtk/gtkthemes.h: add extern "C" scope.
21569 Mon Feb 21 20:16:42 2000 Lars Hamann <lars@gtk.org>
21571 * gtk/gtkclist.c: applied patch from Guy Harris <guy@netapp.com>
21572 to make appends to the list constant. (gtk-guy-990901-0.patch)
21574 Mon Feb 14 22:50:10 2000 Tim Janik <timj@gtk.org>
21576 * gtk/gtktypeutils.c (gtk_type_init): use g_str_hash() and g_str_equal()
21577 for the typename hash table.
21579 Mon Feb 14 15:01:23 2000 Owen Taylor <otaylor@redhat.com>
21581 * gtk/gtkpaned.c (gtk_paned_compute_position): Add some sanity checks
21582 to make sure we never divide by zero.
21583 (Problem pointed out by Michal Jaegermann <michal@ellpspace.math.ualberta.ca>)
21585 Mon Feb 14 12:29:38 2000 Owen Taylor <otaylor@redhat.com>
21587 * gtk/gtkfontsel.c: Apply patch from
21588 SHIRASAKI Yasuhiro <yasuhiro@awa.tohoku.ac.jp> to make font selector work a little
21589 better with 2-byte fonts. (Load a fontset instead of a font for two byte fonts.)
21591 Also, some cleanups in atom handling.
21593 Sun Feb 13 08:02:21 2000 Tim Janik <timj@gtk.org>
21595 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
21598 Fri Feb 11 02:19:32 2000 Tim Janik <timj@gtk.org>
21600 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate):
21601 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate):
21602 * gtk/gtkpaned.c (gtk_paned_compute_position): had to squeeze some
21603 more guint wrap-around bugs before going to bed.
21605 Thu Feb 10 16:16:35 2000 Tim Janik <timj@gtk.org>
21607 * gtk/gtkspinbutton.c (gtk_spin_button_size_allocate): guard against
21608 guint wrap arounds in allocation.width.
21610 * gtk/gtktable.c (gtk_table_size_allocate_pass1): repeat shrinking
21611 process untill we fit the allocation given.
21613 Tue Feb 8 09:38:29 2000 Tim Janik <timj@gtk.org>
21616 (gtk_widget_unrealize): guard widget access with ref/unref
21617 around signal emission.
21618 (gtk_widget_hide): same here, but also check its destroyed
21619 state before queueing a resize.
21621 Tue Feb 8 03:05:55 2000 Tim Janik <timj@gtk.org>
21623 * gtk/gtkstyle.c (gtk_style_new): use gtk_default_prelight_bg instead
21624 of gtk_default_insensitive_bg as insensitive base color.
21626 * gtk/gtktext.c (gtk_text_style_set): set the background color according
21627 to the widget's state.
21628 (gtk_text_realize): same here.
21629 (gtk_text_state_changed): same here.
21630 (draw_bg_rect): compare background color against base[] from
21631 GTK_WIDGET_STATE (text) not GTK_STATE_NORMAL.
21633 Mon Feb 7 04:01:55 2000 Tim Janik <timj@gtk.org>
21635 * gtk/gtkmain.c (gtk_main_do_event): ignore delete events when
21636 grabs are active, unless a delete event is send to the toplevel
21637 of the currently grab holding widget.
21639 Sun Feb 6 10:13:15 2000 Owen Taylor <otaylor@redhat.com>
21641 * gtk/gtkctree.c (gtk_ctree_drag_data_received): Remove
21642 debugging g_print's.
21644 Fri Feb 4 15:54:54 2000 Owen Taylor <otaylor@redhat.com>
21646 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_request): Don't
21647 ever make the scrolled-window requisition ever depend on the
21648 visibility state of the scrollbars for the AUTOMATIC policy.
21649 This breaks the GTK+ requisition model, and causes loops.
21651 Fri Feb 4 15:09:12 2000 Owen Taylor <otaylor@redhat.com>
21653 * gtk/gtkstyle.c (gtk_style_new): Set the charset explicitely for
21654 the default font to avoid problems with XFree86-4.0 where the
21655 default charset is iso10646-1, not iso8859-1.
21657 Thu Feb 3 14:58:48 PST 2000 Manish Singh <yosh@gimp.org>
21663 * ltmain.sh: upgrade to libtool 1.3.4 (bugfix only release)
21665 * gtk/Makefile.am: minor cosmetic consistency tweak
21667 Thu Feb 3 14:46:01 2000 Owen Taylor <otaylor@redhat.com>
21669 * gtk/gtkmenushell.c (gtk_menu_shell_button_release): Set
21670 the activate_time to 0, so that we handle a quick
21671 press/release press/release properly and don't suppress
21672 the second release. (Red Hat bug #7545)
21674 Wed Feb 2 22:25:17 2000 Tim Janik <timj@gtk.org>
21676 * gtk/gtkctree.c (row_delete):
21677 (gtk_ctree_node_set_row_data_full): fixed very evil reentrancy
21678 bugs with destruction notifier, *always* update internal
21679 structures *before* calling user code.
21681 Sun Jan 30 20:10:52 2000 Lars Hamann <lars@gtk.org>
21683 A few more fixes for bug #5487, #2051, #2677.
21685 (gtk_clist_button_press): Reset clist->anchor to -1 if event->type is
21686 not GDK_BUTTON_PRESS.
21687 (resync_selection): resync only if selection_mode is
21688 GTK_SELECTION_EXTENDED
21689 * gtk/gtkctree.c (resync_selection): same here
21691 Sun Jan 30 12:29:20 2000 Owen Taylor <otaylor@redhat.com>
21693 * gdk/gdk.h gtk/gtkmenu.h: Removed duplicate prototypes for
21694 gdk_drag_get_selection() and gtk_menu_detach().
21696 [ From Jeroen Ruigrok/Asmodai ]
21698 Sat Jan 29 10:11:56 2000 Owen Taylor <otaylor@redhat.com>
21700 * gtk/gtknotebook.c (gtk_notebook_size_request):
21701 page->tab_label can be NULL.
21703 2000-01-25 Havoc Pennington <hp@pobox.com>
21705 * gdk/gdkwindow.c (gdk_window_set_back_pixmap): parent_relative
21708 * gdk/gdkselection.c (gdk_selection_owner_set): return boolean
21710 * gdk/gdkrectangle.c (gdk_rectangle_intersect): return boolean
21712 * gdk/gdkproperty.c (gdk_property_get): return boolean
21714 * gdk/gdkinput.c (gdk_input_set_mode): return boolean
21716 * gdk/gdkim.c (gdk_im_ready): return boolean
21718 * gdk/gdkgc.c (gdk_gc_set_exposures): gboolean arg
21720 * gdk/gdkfont.c (gdk_font_equal): return gboolean (mild
21721 glib clash, should fix glib)
21723 * gdk/gdkevents.c (gdk_set_show_events): take gboolean arg
21724 (gdk_get_show_events): return gboolean, and canonicalize
21727 * gdk/gdkcolor.c (gdk_colormap_new): gboolean flag whether the
21728 colormap is private
21729 (gdk_colors_alloc): gboolean whether to be contiguous
21730 (gdk_color_equal): return gboolean since we are a predicate
21731 and not a qsort() (this looks semi-wrong due to glib breakage,
21732 IMO glib should be fixed)
21734 * gdk/gdk.c (gdk_set_use_xshm): take gboolean arg
21735 (gdk_get_use_xshm): return gboolean
21736 (gdk_pointer_is_grabbed): return gboolean
21738 * gdk/gdk.h: Change prototypes to match all the above changes,
21739 and re-run egtk-format-protos as required.
21741 Fri Jan 28 12:28:17 2000 Owen Taylor <otaylor@redhat.com>
21743 * gtk/gtkctree.c (resync_selection):
21744 * gtk/gtkclist.c (resync_selection):
21746 Return immediately if clist->drag_pos < 0. This is a workaround
21747 for the corrupt state that the clist gets into when a
21748 GDK_2BUTTON_PRESS occurs. See note in gtk_clist_button_press().
21750 Bug #5487, #2051, #2677; fix suggested by David Helder and T. Alexander Popiel.
21752 * gtk/gtknotebook.c (gtk_notebook_size_request): Fix uninitialized
21753 variable from recent commit.
21755 Thu Jan 27 15:22:09 2000 Owen Taylor <otaylor@redhat.com>
21757 * gtk/gtkdnd.c (gtk_drag_begin): Fix stupid typo in last commit.
21759 Thu Jan 27 18:00:55 2000 Tim Janik <timj@gtk.org>
21761 * gtk/Makefile.am: prefix all autogenerated source that get build in
21762 $(srcdir) with $(srcdir)/, so make doesn't assume they got generted
21763 in builddir. since we subsequently cd into srcdir for autogeneration,
21764 the paths have to be stripped from the target file names, thusly we
21765 use $(@F) as target names now.
21766 put a comment about configure.in's --disable-rebuilds option,
21767 which can be used for non-writable source directories, for development
21768 setups though, srcdir has to be *writable*.
21770 hu Jan 27 00:15:03 2000 Owen Taylor <otaylor@redhat.com>
21772 * gtk/gtkdnd.c (gtk_drag_begin gtk_drag_get_event_actions):
21773 Finish the job of allowing event to be NULL.
21774 (Fixes bug #4283, reported by Chris Blizzard)
21776 * gtk/gtkentry.c (entry_adjust_scroll): When calculating
21777 things so that the cursor appears on screen, properly
21778 take into account INNER_BORDER.
21779 (Fixes bug #4754, reported by Antonio Campos)
21781 Wed Jan 26 23:12:28 2000 Owen Taylor <otaylor@redhat.com>
21783 * gtk/gtknotebook.c (gtk_notebook_map): Don't
21784 show the tab_label unless it itself is visible.
21786 gtk/gtknotebook.c (gtk_notebook_size_request):
21787 Do a better job of making sure that the visibility
21788 of the tab label corresponds to whether it should
21791 Wed Jan 26 21:17:03 2000 Owen Taylor <otaylor@redhat.com>
21793 * gtk/gtkoptionmenu.c (gtk_option_menu_position):
21794 Use the requisition, not the allocation, since the
21795 allocation has not necessarily been computed yet.
21796 (Pointed out by Eugene Osintsev)
21798 Wed Jan 26 19:44:25 2000 Owen Taylor <otaylor@redhat.com>
21800 * gtk/gtkstyle.c (gtk_style_new): Dont' set
21801 style/base[GTK_STATE_INSENSITIVE] both to
21802 gtk_default_insensitive_bg!
21803 (Bug #2187, reported by Jonathan Blandford)
21805 * gtk/gtkaccelgroup.c (gtk_accelerator_valid):
21806 Add Alt_L, Alt_R to list of invalid accelerators.
21807 (Bug #3736, reported by Vlad Harchev)
21809 Wed Jan 26 19:01:56 2000 Owen Taylor <otaylor@redhat.com>
21811 * gtk/gtkfilesel.c (open_ref_dir): Fix several
21812 bugs which occured after an attempt to open
21813 invalid home directory left cmpl_state->reference_dir == NULL.
21815 - completion on files in home directory didn't work
21816 - completion on an empty string caused segfault
21818 (Bug #3678, reported by Steve Ratcliffe)
21820 * gtk/gtkscale.c (gtk_scale_get_value_width): Fix
21821 cut and paste error that was causing scales to
21822 be incorrectly positioned.
21824 patch from Steve Ratcliffe <steve@parabola.demon.co.uk>)
21826 2000-01-27 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
21828 * acinclude.m4 (AM_GTK_WITH_NLS): Add -lintl to libs
21829 when checking for dcgettext, if we've found we needed
21832 Wed Jan 26 18:06:07 2000 Owen Taylor <otaylor@redhat.com>
21834 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
21835 queue_clear on NO_WINDOW widgets during a reparent,
21836 since at that point the window and widget heirarchies
21837 are out of sync. This stops crashing in some cases
21838 (the scrolled window reparent test, for instance), and
21839 _probably_ won't cause drawing errors.
21841 * gtk/testgtk.c: Make the reparenting-a-scrolled-window
21842 test do what it was supposed to do and be robust against
21843 window closings, etc. (Bug #2443)
21845 Wed Jan 26 16:56:54 2000 Owen Taylor <otaylor@redhat.com>
21847 * gtk/gtkentry.c: Fix return values on mouse events.
21848 (Bug #2686, Sky <seb_sky@yahoo.com>)
21850 * gtk/genmarshal.pl: Fix up handling of FOREIGN.
21851 (pointed out by George Lebl)
21853 * gdk/gdkcolor.c (gdk_color_copy): Made const-safe.
21854 (From Ettore Perazzoli <ettore@helixcode.com>)
21856 Mon Jan 24 10:44:48 2000 Owen Taylor <otaylor@redhat.com>
21858 * gtk/gtkcalendar.c (gtk_calendar_main_button): Handle
21859 clicks between rows or outside calender area correctly.
21860 (Patch from Damon Chaplin)
21862 * gtk/gtkclist.c (gtk_clist_set_row_data_full):
21863 * gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
21864 Call destroy function when overwriting existing data.
21865 (Pointed out by Damon Chaplin)
21867 Tue Jan 25 09:55:41 2000 Owen Taylor <otaylor@redhat.com>
21869 * gdk/gdk.c: Remove useless #include of <X11/Xmu/WinUtil.h>,
21870 which was causing problems on various systems with Xmu.
21871 This hasn't been needed for a very long time.
21874 Sun Jan 23 22:27:36 2000 Owen Taylor <otaylor@redhat.com>
21876 * gdk/gdki18n.h: Include <ctype.h> when defining
21877 gdk_isw* in terms of is* as a fallback.
21878 (Bug #4106 - Dan Winship <danw@MIT.EDU>)
21880 Sun Jan 23 22:12:36 2000 Owen Taylor <otaylor@redhat.com>
21882 * gtk/gtkviewport.c (gtk_viewport_size_allocate): Don't
21883 realize the widget when it is size allocated!
21886 * gtk/gtkviewport.c (gtk_viewport_adjustment_value_changed):
21887 Removed unused call to gdk_window_get_size() that
21888 showed up when the above was fixed.
21890 Sat Jan 22 15:44:30 2000 Owen Taylor <otaylor@redhat.com>
21892 * gtk/gtkwidget.c (gtk_widget_reparent): Correctly
21893 fix up widget->window when the widget is a
21894 NO_WINDOW container widget.
21896 Sat Jan 22 12:40:48 2000 Owen Taylor <otaylor@redhat.com>
21898 * gdk/gdkpixmap.c (gdk_pixmap_seek_string): Rewrite
21899 to account for the fact that feof() does _not_
21900 return TRUE on errors, and thus avoid infinite loops
21901 when trying to use gdk_pixmap_create_from_xpm()
21902 on unreadable values.
21904 Fri Jan 21 18:32:43 2000 Owen Taylor <otaylor@redhat.com>
21906 * gtk/gtkaspectframe.h (struct _GtkAspectFrame): s/gint/gboolean/.
21908 Fri Jan 21 16:24:08 2000 Owen Taylor <otaylor@redhat.com>
21910 * gdk/gdkgc.c (gdk_gc_set_dashes): Change from
21911 gdk_gc_set_dashes to take gint8 instead of gchar to
21912 make it clearer that it is _not_ a NULL terminated string.
21914 * gdk/gdk.h gdk/gdkfont.c gdk/gdkgc.c gdk/gdkselection.c
21915 gdk/gdkwindow.c gtk/gtkprogress.[ch] gtk/gtkthemes.[ch]
21916 gtk/gtktreeitem.[ch] gtk/gtkwidget.[ch]: Constify string
21919 Thu Dec 30 04:51:05 1999 Tim Janik <timj@gtk.org>
21921 * gtk/gtkvscale.c (gtk_vscale_pos_background):
21922 * gtk/gtkhscale.c (gtk_hscale_pos_background): when calculating the
21923 background size relative to our allocation, guard against small
21924 allocations, we may have not yet been size allocated.
21926 Thu Dec 2 10:59:14 1999 Owen Taylor <otaylor@redhat.com>
21928 * gdk/gdkdnd.c (xdnd_check_dest): Allow version >= 3,
21929 not just version == 3. We implement all 3 + most of 4 -
21930 (we don't support matching text/plain;charset=iso-8859-1
21931 to a dest that expects text/plain). We'll still advertise
21932 3 to be safe, but any client implementing version >= 3
21933 must interoperate with 3.
21935 Tue Mar 14 11:53:31 2000 Owen Taylor <otaylor@redhat.com>
21937 * gtk/gtktooltips.[ch] (struct _GtkTooltips): Remove foreground,
21938 background and gc members, add a warning in gtk_tooltips_set_color()
21939 indicating that this function is deprecated.
21941 Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
21943 * docs/gtkfaq.sgml: FAQ Update:
21944 - Minor cleanups (Emmanuel, me)
21946 I need to add a new signal to a GTK+ widget. Any idea? (timj)
21947 How can I retrieve the text from a GtkMenuItem? (timj)
21948 How do I validate/limit/filter the input to a GtkEntry? (me)
21949 Memory does not seem to be released when I free the list
21950 nodes I've allocated (timj)
21952 2000-03-07 Tor Lillqvist <tml@iki.fi>
21954 * gdk/win32/gdkmain-win32.c: Internal GDK error reporting changes:
21955 (gdk_win32_gdi_failed) New function for reporting errors from GDI,
21956 for which it is no use to call GetLastError onWin9x.
21957 (gdk_other_api_failed) New function, for general error
21958 reporting without calling GetLastError.
21959 (gdk_win32_api_failed) OTOH, this function always calls
21960 GetLastError. (gdk_win32_last_error_string) Remove this function,
21961 GLib has the equivalent now.
21963 * gdk/win32/gdkprivate-win32.h: Declare the above, and macros to
21964 call them with function name, file name and line number in the
21967 * gdk/win32/*.c: Use the new macros for reporting errors from GDI
21970 * gtk/gtk.def: Add some missing entry points.
21972 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
21973 gtk_paned_set_gutter_size, which don't exist any longer, as void.
21975 Fixes by Hans Breuer:
21977 * gdk/makefile.msc: Update for debugging.
21979 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Fake
21980 implementation, just use the PS_DASH, PS_DOT, PS_DASHDOT or
21981 PS_DASHDOTDOT or PS_DASH styles depending on the number of entries
21984 * gdk/win32/gdkwin32.h (GDK_FONT_XFONT): New macro, similar as in
21987 * gdk/win32/gdkprivate-win32.h (IS_WIN_NT): New macro.
21989 * gtk/testgtk.c: Include config.h, guard inclusion of unistd.h.
21991 2000-03-04 Tor Lillqvist <tml@iki.fi>
21993 * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store
21994 just pixel value of background colour.
21996 * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function
21997 containing code snippet previously duplicated in a couple of
22000 * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use
22001 gdk_colormap_color.
22003 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate
22004 GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate
22005 events for autorepeated Shift, Control and Alt keys. Use
22006 gdk_colormap_color.
22008 * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the
22009 pointer is inside the window the cursor of which we are setting,
22010 call SetCursor immediately.
22012 * gdk/win32/makefile.cygwin
22013 * gtk/makefile.cygwin: If we don't have the build number stamp
22016 * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and
22017 gtk_paned_set_gutter_size as empty.
22019 * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
22021 Tue Feb 29 13:10:00 GMT 2000 Tony Gale <gale@gtk.org>
22023 * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
22024 gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
22025 docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
22026 docs/gtk_tut.sgml docs/gtk.texi TODO:
22028 Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
22030 Sat Feb 26 11:46:25 GMT 2000 Tony Gale <gale@gtk.org>
22032 * gtk/gtkcalendar.c: Implement num_marked_dates,
22033 and don't emit mutiple day_selected signals on
22036 2000-02-25 Jonathan Blandford <jrb@redhat.com>
22038 * docs/make-todo (lineno): let title and logo be configurable so
22039 that GNOME can use this script too.
22041 * TODO.xml: added logourl and a title
22043 Fri Feb 25 11:12:00 2000 Owen Taylor <otaylor@redhat.com>
22045 * TODO.xml: Added some UI items, and an explanatory
22046 comment at the top of the file.
22048 Thu Feb 24 09:07:28 2000 Tim Janik <timj@gtk.org>
22050 * TODO.xml: some updates, added abunch of new entries.
22051 a note for those fiddeling with this file, when done
22053 $ ./docs/make-todo TODO.xml >/dev/null
22054 and correct output errors before comitting changes.
22056 Wed Feb 23 22:59:50 2000 Owen Taylor <otaylor@redhat.com>
22058 * TODO.xml: Added XML-structured TODO file.
22059 * docs/make-todo: python script to turn TODO.xml into
22062 2000-02-23 Jonathan Blandford <jrb@redhat.com>
22064 * gtk/gtkstyle.c (gtk_default_draw_handle): add a 'paned' mode to
22065 the function to let it draw the seven dots, instead of the old,
22066 much maligned, method.
22067 (draw_dot): New function to draw a dot.
22069 * gtk/gtkhpaned.c (gtk_hpaned_size_allocate): changed allocation
22070 to draw the handle inside the border width as opposed to outside.
22071 Use paint function instead of gdk_draw_point.
22073 * gtk/gtkvpaned.c (gtk_vpaned_size_allocate): changed allocation
22074 to draw the handle inside the border width as opposed to outside.
22075 Use paint function instead of gdk_draw_point.
22077 * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu):
22078 Change indenting to be more GTK like.
22080 Wed Feb 23 10:54:14 GMT 2000 Tony Gale <gale@gtk.org>
22082 * docs/gtk_tut.sgml: New section on GtkCalendar
22083 * examples/calendar: Update example code
22085 Tue Feb 22 13:54:12 GMT 2000 Tony Gale <gale@gtk.org>
22087 * docs/gtkfaq.sgml: FAQ Update
22089 2000-02-19 Anders Carlsson <andersca@gnu.org>
22091 * gtk/gtkrange.c (gtk_range_scroll_event): Return TRUE
22092 to prevent the scroll event to be propagated upwards.
22094 Fri Feb 18 14:37:29 2000 Owen Taylor <otaylor@redhat.com>
22096 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Remove
22097 OwnerGrabButtonMask from button entries for
22098 GDK_BUTTON_PRESS / GDK_BUTTON_RELEASE.
22100 * gtk/gtklayout.c (gtk_layout_realize): Always add GDK_SCROLL
22101 to the event mask (which will result in button/press release
22102 being added to the event mask on Unix) so scrolling works
22103 for layouts in scroll windows.
22105 * gdk/gdkevents.h (enum): Fix up GDK_ALL_EVENTS_MASK.
22107 Patch from Anders Carlsson <andersca@gnu.org> to add
22110 * gtk/testgtk.c (scroll_test_scroll): Added an example of mouse wheel
22111 scrolling to the "Test Scrolling" part of testgtk.
22113 * gtk/gtkwidget.h (struct _GtkWidgetClass): Added scroll_event signal.
22115 * gtk/gtkwidget.c: Added "scroll_event" GTK+ signal and matched
22116 it against GDK_SCROLL.
22118 * gtk/gtkrange.c (gtk_range_scroll_event): Updated to use the new
22119 way of mouse wheel scrolling.
22121 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_scroll_event): Likewise.
22123 * gtk/gtkspinbutton.c (gtk_spin_button_scroll): Likewise.
22125 * gtk/gtkmain.c: Removed previous mouse wheel hack.
22127 * gdk/x11/gdkwindow-x11.c (gdk_event_mask_table): Added entry in
22128 gdk_event_mask_table.
22130 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Added
22131 GdkEventScroll handler.
22133 * gdk/gdkevents.h: Added GdkEventScroll structure.
22135 Thu Feb 17 17:10:12 2000 Owen Taylor <otaylor@redhat.com>
22137 * gtk/gt{h,k,}vpaned.[ch]: Add patch from Jonathan Blandford
22138 and Anders Carlsson to change the Paned widgets so that they
22139 can be dragged from anywhere along the length. Also change
22140 the way that this is drawn to make this apparent.
22142 * gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Apply patch
22143 from George Lebl to check that option_menu->menu is present
22144 before getting history.
22146 2000-02-14 Tor Lillqvist <tml@iki.fi>
22148 * gdk/gdkdraw.c (gdk_draw_segments): Move the test for no segments
22149 before the assertion for non-NULL segment list.
22151 * gdk/win32/gdkgc-win32.c: (gdk_win32_gc_values_to_win32values):
22152 Seems that pattern brushes *must* be 8x8 pixels! At least on my
22153 machine, but it might be display driver dependent. Sigh, so make
22154 sure the stipple is that size. Does Windows suck or what?
22156 * gdk/win32/gdkdrawable-win32.c: Improve error handling in a few
22159 2000-02-13 Havoc Pennington <hp@pobox.com>
22161 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): init
22163 (gdk_cursor_new): init refcount to 1
22165 * gdk/win32/gdkcursor-win32.c (gdk_cursor_new): init refcount to 1
22167 2000-02-13 Tor Lillqvist <tml@iki.fi>
22169 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Add an extra parameter
22170 so that we don't have to do unnecessary settings to the HDC.
22172 * gdk/win32/gdkdrawable-win32.c
22173 * gdk/win32/gdkimage-win32.c: Corresponding changes to the calls of
22176 * gdk/win32/gdkdrawable-win32.c: Special-casing for GdkGCs where
22177 the fill style is GDK_OPAQUE_STIPPLED. In those cases we construct
22178 GDI paths, call WidenPath to get the outline of the stroken path,
22179 and then fill the outline (with the brush that was built from the
22182 * gdk/win32/gdkgc-win32.c: Factor out common code from
22183 _gdk_win32_gc_new and gdk_win32_gc_set_values into
22184 gdk_win32_gc_values_to_win32values. Use correct colour for
22185 SetBkColor() (Until now the code actually used a random colour in
22186 the call to SetBkColor()... but that didn't show up as not many
22187 GDI APIs use the background colour. Pattern (opaque stippled)
22190 * gdk/win32/gdkmain-win32.c (gdk_win32_last_error_string,
22191 gdk_win32_api_failed): New functions for error logging.
22193 * gdk/win32/gdkprivate-win32.h: Declare them, and define a macro
22194 WIN32_API_FAILED to call them, passing function or file name and
22197 * gdk/win32/*.c: Use the WIN32_API_FAILED macro.
22199 * gdk/win32/gdkprivate-win32.h: Store just the pixel values from
22200 GdkColor for foreground and background in GdkGCWin32Data.
22202 * gdk/makefile.cygwin: Link in the resource object separately.
22204 * gdk/win32/rc/gdk.rc
22205 * gtk/gtk.rc (New file)
22206 * gdk/win32/makefile.cygwin
22207 * gtk/makefile.cygwin: Update build number in DLLs automatically,
22210 Sun Feb 13 08:54:45 2000 Tim Janik <timj@gtk.org>
22212 * gdk/gdkcursor.h (struct _GdkCursor): s/refcount/ref_count/.
22213 * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap):
22214 * gdk/x11/gdkcursor-x11.c (_gdk_cursor_destroy):
22215 * gdk/gdkcursor.c (gdk_cursor_ref): insert assertments for the
22216 parameters given and cursor->ref_count. coding style fixups.
22218 * gtk/gtksocket.c (gtk_socket_class_init): parent class is GtkContainer,
22221 * gtk/*.h: applied patch from Mathieu Lacage <lacage@email.enst.fr> to
22222 fix up widget macros and add _GET_CLASS() variant.
22224 * gtk/*.c: some GtkType fixups.
22226 2000-02-09 Tor Lillqvist <tml@iki.fi>
22228 * gdk/win32/gdkproperty-win32.c
22229 * gdk/x11/gdkproperty-x11.c: The assertions for GDK_IS_WINDOW
22232 2000-02-04 Tor Lillqvist <tml@iki.fi>
22234 * gdk/win32/gdkfont-win32.c (logfont_to_xlfd): Use
22235 g_filename_to_utf8 to convert the font names Windows gives us from
22236 whatever is the default codepage to UTF-8.
22237 (gdk_font_load_internal) Use g_filename_from_utf8 for conversion
22238 in the other direction.
22240 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_values): Fix cut&paste
22241 error in debugging output.
22243 2000-02-02 Tor Lillqvist <tml@iki.fi>
22245 * gdk/win32/gdkwindow-win32.c (gdk_window_clear): Pass zero width
22246 and height parameters to gdk_window_clear_area(). Not minus one.
22248 Wed Feb 2 11:58:05 2000 Owen Taylor <otaylor@redhat.com>
22250 * gtk/gtkdnd.c (gtk_drag_selection_received): Add some sanity
22251 checks if the widget passed to gtk_drag_get_data() was not the
22254 2000-02-01 Tor Lillqvist <tml@iki.fi>
22256 * gtk/gtkfilesel.c: Use the g_filename_to_utf8 and
22257 g_filename_from_utf8 functions (which were added a moment ago to
22258 GLib). Some cleanups: Use gbooleans. Use GStrings instead of fixed
22261 gtk_file_selection_get_filename returns the filename in the C
22262 runtime encoding. It calls g_filename_from_utf8, but copies the
22263 returned string to a static buffer, which is returned. I think
22264 this is better than returning the result from g_filename_from_utf8
22265 directly, which would mean all apps that use it would have to free
22266 the return value. Or should this function care about this issue at
22267 all? Maybe a new function with clearly defined semantics.
22269 * gtk/gtkfilesel.h: Add comment about
22270 gtk_file_selection_get_filename returning the filename in the C
22271 runtime's encoding.
22275 * gdk/makefile.{cygwin,msc}
22276 * gtk/gtk.def: Updates.
22278 * gdk/gdkcursor-win32.c: Initialise refcount.
22280 2000-01-31 Yuan-Chung Cheng <platin@linux.org.tw>
22282 * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.
22284 2000-01-30 Havoc Pennington <hp@pobox.com>
22286 * gtk/testgtk.c (set_cursor): use gdk_cursor_unref instead of
22289 * gdk/gdkimage.c (gdk_image_ref): image wasn't being returned
22291 * gdk/gdkprivate.h: declare _gdk_cursor_destroy which is then
22292 implemented in platform-specific code
22294 * gdk/Makefile.am (gdk_c_sources): add gdkcursor.c
22296 * gdk/x11/gdkcursor-x11.c (gdk_cursor_destroy): rename with an
22297 underscore in front
22299 * gdk/win32/gdkcursor-win32.c (gdk_cursor_destroy):
22300 put an underscore in front
22302 * gdk/gdkcursor.c: new file, implements
22303 gdk_cursor_ref/gdk_cursor_unref
22305 * gdk/gdkcursor.h: Refcount GdkCursor
22307 * gdk/gdkcompat.h (gdk_cursor_destroy): compat
22309 2000-01-29 Tor Lillqvist <tml@iki.fi>
22312 * gdk/gdkpixmap.h: Remove prototypes for renamed functions.
22314 Tue Jan 25 11:43:21 2000 Owen Taylor <otaylor@redhat.com>
22316 * gtk/gtkinvisible.h (struct _GtkInvisible[Class]): Fix
22317 structures to properly inherit from GtkWidget not GtkBin.
22319 Sun Jan 23 20:28:24 2000 Owen Taylor <otaylor@redhat.com>
22321 * gtk+.spec.in: Added lib/gtk+/include/* to %files
22322 (bug #5178 - Peter Wainright)
22324 * gtk/Makefile.am (gtk_public_h_sources): Add gtkcompat.h
22325 so that it will be installed.
22326 (bug #4889 - "david d `zoo' zuhn" <zoo@mnnr.org>)
22328 Fri Jan 21 16:29:28 2000 Owen Taylor <otaylor@redhat.com>
22330 * gtk/gtkstyle.[ch] docs/Changes-1.4.txt: Make the @detail argument
22331 for the GtkStyleClass vtable const.
22333 * gtk/gtkitemfactory.[ch] docs/Changes-1.4.txt: Make GtkPrintFunc
22334 take a const string argument like GtkTranslateFunc. This will
22335 require changes in use code.
22337 2000-01-19 Tor Lillqvist <tml@iki.fi>
22339 * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
22340 semantics (to mimic the X11 backend, which just calls XClearArea)
22341 is to check for zero width (and height), and in that case use the
22342 window's width minus x (height minus y). This fixes for instance
22343 some redraw problems with gtkclist, which were easily noticeable
22344 in the gtk file selection widget.
22346 (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
22349 2000-01-13 Tor Lillqvist <tml@iki.fi>
22353 * gdk/x11/Makefile.am
22354 * gdk/win32/Makefile.am: Small fixes, thanks to Peter Wainwright
22356 * gdk/win32/gdkcc-win32.c: Reintroduce, to be thrown
22359 2000-01-09 Tor Lillqvist <tml@iki.fi>
22361 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Ignore
22362 WM_MOVE for iconified or invisible windows. This fixes various
22363 problems when minimising windows. Thanks to Bernd Herd.
22365 2000-01-05 Tor Lillqvist <tml@iki.fi>
22367 * gdk/gdkdraw.c (gdk_draw_lines): Fix copy&paste error: Call the
22368 backend's draw_lines method, not draw_points.
22370 2000-01-02 Tor Lillqvist <tml@iki.fi>
22372 * gdk/win32/gdkevents-win32.c: Clean up some more leftovers from
22373 before Owen's reorganisation: Don't have queued_events and
22374 queued_tail statics in this file, but use gdk_queued_events and
22375 gdk_queued_tail. This makes exposure event compression work again.
22377 (gdk_WindowProc): Comment out a posting of gdk_ping_msg, doesn't
22380 1999-12-30 Tor Lillqvist <tml@iki.fi>
22382 * gdk/gdk.c: If we don't HAVE_XCONVERTCASE we must #include
22383 gdkkeysyms.h to get the GDK_* keysym constants that are needed by
22384 gdk_keyval_convert_case(). Otherwise, gdk_keyval_convert_case()
22385 doesn't do anything.
22387 * gdk/gdk.def: Add gdk_xid_table_insert.
22389 * gdk/win32/gdkprivate-win32.h
22390 * gdk/win32/gdkevents-win32.c
22391 * gdk/win32/gdkinput-win32.c
22393 * gdk/win32/gdkwindow-win32.c: Remove the superfluous
22394 extension_events field in the GdkWindowWin32Data struct. Use only
22395 the extension_events field in GdkWindowPrivate. Previously one was
22396 set, and the other one tested, which broke tablet
22397 functionality. Thanks to Keishi Suenaga for pointing this out.
22399 1999-12-18 Tor Lillqvist <tml@iki.fi>
22401 * gdk/win32/gdkfont-win32.c (gdk_text_size, gdk_text_extents):
22402 When handling a single character (text length == 1), don't handle
22403 it as if it was UTF-8.
22405 1999-12-11 Tor Lillqvist <tml@iki.fi>
22407 * Makefile.am: Distribute README.win32.
22410 * gdk/win32/Makefile.am: Distribute Win32 files.
22412 * gdk/makefile.msc: New file.
22414 * gdk/gdk.c (gdk_arg_context_parse): Fix gccism (no statement
22417 * gdk/gdkprivate.h: Must mark also gdk_error_warnings and
22418 gdk_error_code as GDKVAR, as they are referred outside GDK.
22420 * gdk/win32/makefile.msc: Update.
22422 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): More
22423 tweaks. Check only if at least one of those Unicode subrange bits
22424 we care for is set. If no code page bits are set, guess (wildly)
22425 based on the charset.
22427 * gdk/win32/gdkinput-win32.c: Remove debugging leftover.
22429 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Assure title is
22435 * gtk/gtkselection.c
22437 * gtk/gtkwindow.c: Include x11/gdkx.h *or* win32/gdkwin32.c as
22438 appropriate. There must be a cleaner way to handle this?
22440 * gtk/gtkrc.c: Must include windows.h on Win32.
22442 * gtk/testgtk.c: No need to include gdkx.h.
22444 * gtk/makefile.cygwin: Correct invokation of genmarshal.pl.
22446 1999-12-07 Tor Lillqvist <tml@iki.fi>
22448 * gdk/win32/gdkfont-win32.c: Fix string measurement code. For now,
22449 the rbearing is set to the same as the width, but this should be
22452 1999-12-06 Tor Lillqvist <tml@iki.fi>
22454 * gdk/win32/gdkfont-win32.c (check_unicode_subranges): New
22455 function. If Windows doesn't tell us what Unicode subranges a font
22456 covers, guesstimate based on the codepages it covers. This will
22457 hopefully help those Windows versions or fonts that don't give us
22458 any useful Unicode subrange information with GetTextCharsetInfo.
22459 Call this function in gdk_font_load_internal.
22461 * gdk/win32/{gdkdnd,gdkimage,gdkpixmap,gdkprivate}-win32.c: Misc
22464 Fri Dec 3 14:09:50 1999 Owen Taylor <otaylor@redhat.com>
22466 * gtk/gtkoptionmenu.[ch] (gtk_option_menu_get_history):
22467 New function, long needed.
22469 Wed Dec 1 22:35:43 1999 Owen Taylor <otaylor@redhat.com>
22471 * gdk/gdkproperty.h x11/gdkproperty.c: Change
22472 only_if_exists argument of gdk_atom_intern to
22475 1999-11-25 Tor Lillqvist <tml@iki.fi>
22477 * gdk/gdkgc.c (gdk_gc_set_ts_origin, gdk_gc_set_clip_origin):
22478 Fix two copy&paste errors.
22480 * gdk/makefile.cygwin: Also rebuild DLL when the static archive in
22483 * gdk/win32/gdkprivate-win32.h: Don't need CPINFO in the
22484 GdkWin32SingleFont struct.
22486 * gdk/win32/gdkfont-win32.c: Some more debugging: Print Unicode
22487 subranges of loaded fonts. Clear font signature first, in case
22488 GetTextCharsetInfo fails. Pretend SYMBOL_CHARSET fonts have
22489 ASCII+Basic Latin (i.e. 0x40--0xFF) as they are single-byte.
22491 * gdk/win32/gdkgc-win32.c: Improved logging. (gdk_gc_postdraw):
22492 Unoffset clip region.
22494 1999-11-23 Tor Lillqvist <tml@iki.fi>
22496 * gdk/win32/gdkevents-win32.c (gdk_event_translate): set
22497 event->any.window before calling filter functions.
22499 Fri Nov 19 10:34:41 1999 Owen Taylor <otaylor@redhat.com>
22501 * gtk/gtkgamma.h: Adapt cast macros to standard.
22503 [ Merges from 1.2 ]
22505 Tue Nov 16 10:15:54 1999 Owen Taylor <otaylor@redhat.com>
22507 * gtk/gtkitemfactory.c (gtk_item_factory_parse_path):
22508 If translation does not include a '/', use entire
22509 translation instead of crashing.
22511 Sun Oct 31 22:21:11 1999 Tim Janik <timj@gtk.org>
22513 * docs/gtk_tut.sgml:
22514 s/gtk_accel_group_attach/gtk_window_add_accel_group/.
22516 Sat Oct 30 09:09:09 1999 Owen Taylor <otaylor@redhat.com>
22518 * gtk/gtkselection.c (gtk_target_list_remove): Use
22519 g_list_remove_link, not g_list_remove.
22521 [ From Geert Bevin <gbevin@thunderstorms.org> ]
22523 Sun Oct 24 07:41:40 1999 Tim Janik <timj@gtk.org>
22525 * gtk/gtkclist.c (real_undo_selection): commented out g_print()
22526 statement upon unselection (how the heck did that slip in?).
22528 Sat Oct 23 03:03:08 1999 Tim Janik <timj@gtk.org>
22530 * gtk/gtktext.c (gtk_text_freeze):
22531 (gtk_text_thaw): undraw/draw cursor here to avoid unnecessary scrolling
22532 in frozen state (and aparently crashes). patch provided by Anders
22533 Melchiorsen <and@kampsax.dtu.dk>.
22535 Sat Oct 23 02:53:20 1999 Tim Janik <timj@gtk.org>
22537 * fix insensitive default/focus widget activation,
22538 reported by Matt Goodall <mgg@isotek.co.uk>.
22540 * gtk/gtkwindow.c (gtk_window_key_press_event):
22541 (gtk_window_activate_default):
22542 (gtk_window_activate_focus):
22543 return handled=FALSE for actiavtion of insensitive default
22544 widgets. return handled=TRUE for activation of insensitive
22545 focus widgets. don't activate in either case.
22547 Tue Oct 19 09:55:08 1999 Owen Taylor <otaylor@redhat.com>
22549 * gtk-config.in (lib_gtk): Switch order of @x_cflags@
22550 and $glib_cflags to match library order and in the
22551 theory that an old version of GLib is more likely to
22552 be in the include directory for X then vice-versa.
22555 Tue Oct 19 09:46:49 1999 Owen Taylor <otaylor@redhat.com>
22557 * gtk/gtkrc.c (gtk_rc_init): Always use LC_CTYPE
22558 to determine the locale for fontsets, not LC_MESSAGES;
22559 the user may want English messages with a handling
22560 for non-English languages. (LC_CTYPE=ru_RU LC_MESSAGES=fr_FR
22561 will still be broken) (Bug #2891)
22563 Tue Oct 19 20:36:42 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
22565 * gtk/gtkrc.ko: Fixed the wrong number of "*"'s.
22567 Tue Oct 19 12:15:13 1999 Changwoo Ryu <cwryu@adam.kaist.ac.kr>
22569 * gtk/gtkrc.ko: Changed the Korean default fontset.
22571 Fri Oct 8 02:32:47 1999 Owen Taylor <otaylor@redhat.com>
22573 * gtk/gtklayout.c (gtk_layout_adjustment_changed): Fix bug
22574 where when scrolling to the left or top double exposes
22575 were done, causing major slowdowns.
22577 Thu Oct 7 18:31:55 1999 Owen Taylor <otaylor@redhat.com>
22579 * gtk/gtkrc.c (gtk_rc_init): Always normalize codeset
22580 names to lowercase and alphanumeric, before looking
22583 * gtk/Makefile.am: Install codeset variant gtkrc files
22584 with normalized names.
22586 Thu Oct 7 22:52:42 1999 Tim Janik <timj@gtk.org>
22588 * gtk/gtkitemfactory.c (gtk_item_factory_popup_with_data): even
22589 popup menus when the menu is already visible, but its parent
22590 is still hidden, (happens after tornoff window got hidden).
22592 Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
22594 * gtk/Makefile.am (install-data-local): Fix
22595 a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
22596 deleted, causing error messages on install.
22598 Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
22600 * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
22601 the handle as well, since we now sometimes ignore
22602 exposes on the handle while resizing.
22604 Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
22606 * gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
22607 extra g_free introduced in one of the last one or two
22610 Wed Oct 6 16:38:36 1999 Owen Taylor <otaylor@redhat.com>
22612 * gtk/Makefile.am gtk/gtkrc*: Make naming of gtkrc files
22613 consistent, put each style that a gtkrc.* file creates
22614 in a unique namespace, remove old files before installing.
22616 Wed Oct 6 14:31:16 1999 Owen Taylor <otaylor@redhat.com>
22618 * gtk/gtkrc.c (gtk_rc_init): Avoid leaking memory when
22619 gtk_rc_init is called multiple times. (Yes, people who
22620 do that have bugs in their code.)
22622 Tue Oct 5 11:36:57 PDT 1999 Manish Singh <yosh@gimp.org>
22624 * gtk/Makefile.am: listing gtkrc in gtkconf_DATA seems to barf.
22625 Remove it since it's generated by the Makefile anyway
22627 Tue Oct 5 02:43:41 1999 Owen Taylor <otaylor@redhat.com>
22629 * gdk/gdkinputcommon.h (gdk_input_device_new): Free
22630 device->info.axes for core pointer.
22632 Thu Sep 30 13:55:25 1999 Owen Taylor <otaylor@redhat.com>
22634 * gtk/testgtk.c (destroy_idle_test): Rename idle to
22635 idle_id, to deal with obsolete, broken C libraries.
22637 Mon Sep 27 02:50:15 1999 Owen Taylor <otaylor@redhat.com>
22639 * gtk/gtkvscale.c (gtk_vscale_draw): Don't add in
22640 allocation->x/y twice!
22642 * gtk/gtkhscale.c: Make usage of gtk_hscale_pos_trough()
22643 consistent with gtk_vscale_pos_trough().
22645 Sun Sep 26 19:44:34 1999 Owen Taylor <otaylor@redhat.com>
22647 * gtk/gtkcontainer.c (gtk_container_queue_resize): We may
22648 be queueing a resize on a toplevel container between
22649 the time we show it and when we map it. So, we need
22650 to test GTK_WIDGET_VISIBLE() for toplevels, and only
22651 use GTK_WIDGET_DRAWABLE() for child windows.
22653 Thu Sep 23 16:41:03 1999 Owen Taylor <otaylor@redhat.com>
22655 * gtk/Makefile.am (LDADDS): Add GDK_WLIBS to LDADDS
22658 Fri Sep 24 00:51:45 1999 Tim Janik <timj@gtk.org>
22660 * gtk/gtkcontainer.c (gtk_container_queue_resize): check for
22661 container DRAWABLE (instead of VISIBLE), so we don't queue
22662 resizes on non-toplevel containers.
22664 Sun Sep 19 18:13:31 1999 Owen Taylor <otaylor@redhat.com>
22666 * gtk/gtkselection.[ch]: Make the data argument
22669 Sat Sep 18 21:27:40 1999 Owen Taylor <otaylor@redhat.com>
22671 * gtk/gtkwindow.c: Try to behave sensibly if
22672 the focus widget is the window itself. (Should
22673 we allow this at all?)
22675 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
22677 * gtk/gtkwidget.c (gtk_widget_set_sensitive):
22678 * gtk/gtknotebook.c (gtk_notebook_set_scrollable):
22679 * gtk/gtknotebook.c (gtk_notebook_set_show_border):
22680 * gtk/gtkclist.c (gtk_notebook_set_show_border): make gboolean args
22681 in prototypes and implementations consistent (Tomas Ogren).
22683 * gtk/gtklayout.c (gtk_layout_remove): unset GTK_IS_OFFSCREEN flag
22684 before the widget is unparented (reported by damon).
22686 * gtk/gtkdnd.c: make the cursor and icon data _unsigned_ char,
22687 since we provide unsigned data anyways.
22689 Thu Sep 16 21:32:01 1999 Owen Taylor <otaylor@redhat.com>
22691 * gtk/gtktooltips.c (gtk_tooltips_set_tip): Delay
22692 the call to gtk_tooltips_layout_text() until later.
22694 * gtk/gtktooltips.c (gtk_tooltips_draw_tips):
22695 Call gtk_widget_ensure_style() before using the style.
22697 Wed Sep 15 02:52:19 1999 Owen Taylor <otaylor@redhat.com>
22699 * gtk/gtkwidget.c (gtk_widget_event): Added workaround
22700 for old widgets that don't propagate draws to all
22701 children. (Namely gnome-dock for gnome-libs <= 1.0.16)
22703 Tue Sep 14 19:22:19 1999 Tim Janik <timj@gtk.org>
22705 * gtk/gtkwidget.c (gtk_widget_queue_resize): don't queue the parent
22706 for a redraw but just the widget that requested the resize.
22708 Tue Sep 14 18:29:47 1999 Tim Janik <timj@gtk.org>
22710 * gtk/gtkcontainer.c: added new widget level method
22711 gtk_container_set_reallocate_redraws() and a GtkContainer flag
22712 reallocate_redraws : 1 to reflect the setting, exported this through
22713 the argument system as a boolean ::reallocate_redraws.
22715 * gtk/gtkwidget.c (gtk_widget_size_allocate): when queueing redraws
22716 on the widget because the allocation changes, do so as well for
22717 widget->parent if the parent has reallocate_redraws set to TRUE.
22718 with that containers requesting reallocation redraws get automatically
22719 redrawn if their children changed allocation (this unfortunately
22720 affects also other children that didn't change allocation, but we
22721 cannot work around that before 1.3).
22723 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
22725 * gtk/gtkwidget.c (gtk_widget_idle_draw): only emit ::draw if width
22726 _and_ height are >0 (not _or_).
22728 * gtk/gtktable.c (gtk_table_remove): use gtk_widget_queue_resize()
22729 instead of gtk_container_queue_resize(), which is a core gtk internal
22730 function (must have been on crack when i queued that).
22732 * gtk/gtkprivate.h: added new private flag GTK_FULLDRAW_PENDING, so
22733 we can check more reliably if we want to discard expose events.
22734 * gtk/gtkwidget.c: added setting/unsetting of the GTK_FULLDRAW_PENDING
22737 * gtk/gtkwidget.c (gtk_widget_event): don't discard synthesized exposes,
22738 we simply trust these events. for deciding whether to discard exposes,
22739 check GTK_FULLDRAW_PENDING instead of RESIZE_PENDING.
22741 Mon Sep 13 15:01:21 1999 Owen Taylor <otaylor@redhat.com>
22743 * gtk/gtkwidget.c (gtk_widget_queue_clear_area): Ignore
22744 queues of areas that are completely off screen.
22746 * gtk/gtkwidget.c (gtk_widget_idle_draw): Fix broken
22747 logic for handleboxes.
22749 * gtk/gtkwidget.c (gtk_widget_queue_draw_data): Add santity
22750 check on width/height.
22752 Mon Sep 13 02:22:47 1999 Tim Janik <timj@gtk.org>
22754 * gtk/Makefile.am: backed out Raja's recent VPATH build "improvements",
22755 we are fine with using $@ the way we do (if we actually encounter
22756 brokeness with $@ in VPATH builds because of additional path prefixes,
22757 we need to use $(@F) actually).
22759 Mon Sep 13 01:34:53 1999 Tim Janik <timj@gtk.org>
22761 * gtk/gtksignal.c: renamed two variables, hopefully didn't introduce
22762 short lived bugs, that would allow language bindings to do surgeries
22765 Fri Sep 10 15:22:50 1999 Owen Taylor <otaylor@redhat.com>
22767 * gtk/gtkwindow.c (gtk_window_size_allocate): Fix typo
22768 where comparison was being done against an uninitialized
22769 value causing intermittant results depending on
22770 compiler flags. Also make it clearer that we aren't
22771 ever initializing the child as 0x0 (though this will
22772 be caught in gtk_widget_size_allocate())
22774 Fri Sep 10 10:06:56 1999 Owen Taylor <otaylor@redhat.com>
22776 * gtk/gtkwindow.c (gtk_window_set_transient_for): Move
22777 gtk_window_unset_transient_for() call after we do checks
22778 involving the old transient parent.
22779 [ From Lance Capser <lmc@cyberhighway.net> ]
22781 1999-09-07 Raja R Harinath <harinath@cs.umn.edu>
22783 * gtk/Makefile.am (gtk.defs): Go back to using `touch' to create
22786 Mon Sep 6 00:11:56 1999 Lars Hamann <lars@gtk.org>
22788 * gtk/gtkctree.c (gtk_ctree_is_ancestor): return FALSE if node has
22789 no children. (Reported by: Chris Rogers <gandalf@pobox.com>)
22791 1999-09-03 Raja R Harinath <harinath@cs.umn.edu>
22793 * gtk/Makefile.am (gen_sources): Improve VPATH builds.
22794 `$@' is valid only in the build dir, not after we've done
22795 `cd $srcdir'. Also use `test -f' instead of less portable
22798 Fri Sep 3 15:59:56 1999 Owen Taylor <otaylor@redhat.com>
22800 * gtk/gtktext.c (correct_cache_insert): Rewrite
22801 for simplicity, and hopefully correctness.
22802 (Fixes bug #1322, which was a segfault when
22803 on some insertions with the properties around
22804 the insertion set up just wrong.)
22806 * gtk/gtktext.c (gtk_text_adjustment): When we receive
22807 a "changed" signal, clamp the new value to the adjustment
22808 bounds to avoid segfaulting if someone tries to change
22809 the adjustment to a bogus value. (Bug #1795)
22811 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
22813 * gtk/gtkmain.c: Ignore unexpected destroy notifies
22814 for children, for toplevel windows handle them
22817 * gtk/gtkplug.c: Add an unrealize handler so that
22818 we unref plug->socket_window when we are done
22821 Fri Sep 3 14:52:54 1999 Owen Taylor <otaylor@redhat.com>
22823 * gtk/gtktext.c (clear_area): Fix stupid signedness
22824 problem that was causing background to sometimes
22827 Fri Sep 3 12:26:33 1999 Owen Taylor <otaylor@redhat.com>
22829 [ Fixes pointed out by Ettore Perazzoli <ettore@comm2000.it> ]
22831 * gtk/gtkmenu.c (gtk_menu_position): Make
22832 sure we never position menus with negative x, y,
22833 since gtk_widget_set_uposition() can't handle that.
22835 * gtk/gtkmenuitem.c (gtk_menu_item_position_menu):
22836 Modify the positioning code a bit so that we always
22837 put the top-left corner onscreen. (This is for
22838 UI reasons, gtk_menu_position() now takes care of
22839 gtk_widet_set_uposition() brokeness.)
22841 Fri Sep 3 03:06:30 1999 Tim Janik <timj@gtk.org>
22843 * gtk/Makefile.am: fixed up things for -jx, x > 1.
22845 Sun Sep 5 08:48:51 1999 Owen Taylor <otaylor@redhat.com>
22847 * gtk/gtkwidget.c (gtk_widget_modify_style): Ref the
22848 RC style that is passed in. The lack of the ref
22849 before was a bug. If people worked around this
22850 bug, this will introduce a slight memory leak
22851 in their code. The code should typically look like:
22853 rc_style = gtk_rc_style_new ();
22855 gtk_widget_modify_style (widget, rc_style);
22856 gtk_rc_style_unref (rc_style);
22858 * gtk/gtkwidget.c (gtk_widget_modify_style): Reset
22859 the style if it was already set.
22861 * gtk/gtkwidget.c (gtk_widget_set_name): Only set the
22862 style if it was set before.
22864 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
22866 * gtk/testgtk.c (main): Add a check to see if we
22867 are being run from the correct directory and
22868 to quit nicely if we are not.
22870 * gtk/gtkrc.c (gtk_rc_slist_remove_all): Make function
22873 Thu Sep 2 23:00:03 1999 Tim Janik <timj@gtk.org>
22875 * gtk/gtkenums.h (GtkWindowPosition): added GTK_WIN_POS_CENTER_ALWAYS.
22878 queue resizes unconditionally (gtk_widget_queue_resize will figure
22879 what to do if the window is not realized).
22880 (gtk_window_move_resize): only recenter the window
22881 for GTK_WIN_POS_CENTER_ALWAYS.
22882 (gtk_window_compute_reposition): handle GTK_WIN_POS_CENTER_ALWAYS in
22883 the same way as GTK_WIN_POS_CENTER.
22885 Thu Sep 2 22:39:27 1999 Tim Janik <timj@gtk.org>
22887 * gtk/gtkwindow.c (gtk_window_reposition): check for the last position
22888 with (!(info->last_flags & GDK_HINT_POS)) instead of
22889 (!info->last_flags & GDK_HINT_POS).
22891 * gtk/gtkwindow.c (gtk_window_move_resize): constrain new_width and
22892 new_height unconditionally, because we use these values even if
22893 !default_size_changed && !hints_changed.
22894 comented the (default_size_changed || hints_changed) case with
22895 respect to resize rejects from the window manager.
22897 * gtk/gtkwindow.c (gtk_window_move_resize): save info->last values
22898 in the zvt condition hack, since this includes the window hints, set
22899 the hints after the handling_resize case.
22901 * gtk/gtkwindow.c (gtk_window_show): constrain the default size that a
22902 window is initially shown with to the geometry.
22904 Thu Sep 2 07:38:56 1999 Tim Janik <timj@gtk.org>
22906 * gtk/gtkwindow.c (gtk_window_move_resize):
22907 s/size_changed/default_size_changed/g so i know what's
22908 really going on (frying brain on smaller flame now).
22910 Thu Sep 2 05:47:47 1999 Tim Janik <timj@gtk.org>
22912 * gtk/gtkwindow.c (gtk_window_move_resize): queue a new resize if
22913 we have size_changed upon handling_resize. this is a gross
22914 workaround for the broken zvt widget and should be removed in
22915 1.3 again (search for FIXME).
22916 Owen provided an accurate comment for this:
22918 /* We could be here for two reasons
22919 * 1) We coincidentally got a resize while handling
22921 * 2) Our computation of size_changed was completely
22922 * screwed up, probably because one of our children
22923 * is broken. It's probably a zvt widget.
22925 * For 1), we could just go ahead and ask for the
22926 * new size right now, but doing that for 2)
22927 * might well be fighting the user (and can even
22928 * trigger a loop). Since we really don't want to
22929 * do that, we requeue a resize in hopes that
22930 * by the time it gets handled, the child has seen
22931 * the light and is willing to go along with the
22932 * new size. (this happens for the zvt widget, since
22933 * the size_allocate() above will have stored the
22934 * requisition corresponding to the new size in the
22937 * This doesn't buy us anything for 1), but it shouldn't
22938 * hurt us too badly, since it is what would have
22939 * happened if we had gotten the configure event before
22940 * the new size had been set.
22943 Wed Sep 1 20:46:11 1999 Owen Taylor <otaylor@redhat.com>
22945 * gtk/gtkrc.c: deal properly with the fact that RC
22946 style lists may include rc styles more than once.
22948 * gtk/gtkrc.c (gtk_rc_append_pixmap_path): Removed
22949 unused static function.
22951 * gtk/gtkrc.c (gtk_rc_find_pixmap_in_path): Keep a
22952 stack of directories of RC files currently being
22953 parsed and implicitely add them to pixmap path.
22955 This fixes a bug where the directory would get
22956 appended then overwritten by pixmap_path declarations.
22958 (bug #1462, from Peter Wainright <prw@wainpr.demon.co.uk>)
22960 * gtk/gtkthemes.c (gtk_theme_engine_unref): Call
22961 theme's exit function. (Patch from Peter Wainwright,
22964 * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_destroy):
22965 Add a destroy() handler to take care of removing
22966 group for menu item. (Fixes bug #1197)
22968 * gtk/gtkwidget.c (gtk_widget_size_request): Fixed thinko
22969 in warning message.
22971 Wed Sep 1 21:27:42 1999 Tim Janik <timj@gtk.org>
22973 * gtk/gtkwindow.c (gtk_window_move_resize): don't require a server
22974 roundtrip to figure window's width and height, since we know that
22975 anyways from widget->allocation.
22977 Wed Sep 1 12:37:44 1999 Owen Taylor <otaylor@redhat.com>
22979 * gtk/gtkwindow.c (gtk_window_move_resize): Compute
22980 the hints after we request the new size.
22982 Wed Sep 1 10:38:37 1999 Owen Taylor <otaylor@redhat.com>
22984 * gtk/gtkwindow.c (gtk_window_compute_hints): Removed
22985 GTK_WIDGET_REALIZED() assertion - we can compute the
22986 hints before we are realized.
22988 * gtk/gtkwindow.c (gtk_window_move_resize): Reorder
22989 hint changing so that we have a value of hints_changed
22990 when we decide whether to constrain the window size.
22992 * gtk/gtkwindow.c (gtk_window_move_resize): Spelling fix.
22994 * gtk/gtkwindow.c (gtk_window_constrain_size): cleanups,
22995 change back to G_MAXINT.
22997 Wed Sep 1 06:54:59 1999 Tim Janik <timj@gtk.org>
22999 * gtk/gtkwindow.c (gtk_window_get_geometry_info): zero initialize
23000 new GtkWindowGeometryInfo, so fields like GdkGeometry geometry
23001 contain uncluttered values.
23002 (gtk_window_compute_hints): simply assert that window is realized
23003 and that geometry_info is valid, since we rely on this anyways.
23004 (gtk_window_constrain_size): major cleanups to the code.
23005 if (flags & GDK_HINT_BASE_SIZE) use geometry's base width and height
23006 for the base size, instead of the minimums. use 32767 as max width
23007 and height (like in gtkwindow.c) instead of G_MAXINT.
23009 Wed Sep 1 04:41:25 1999 Tim Janik <timj@gtk.org>
23011 * cleaned up the GtkContainer.need_resize flag handling mess, we
23012 only need to force resize requests when we were prematurely
23013 realized, or our widget tree was modified when we were temporarily
23014 hidden. handling these cases directly upon showing the window (i.e.
23015 while the GdkWindow is still unmapped) avoids the need to wait for
23016 a configure event response and therefore makes the GUI more snappier
23017 and avoids blank windows during the roundtrip.
23021 (gtk_widget_show): don't queue resizes on toplevels, they know how
23022 to deal with matters.
23024 * gtk/gtkcontainer.c (gtk_container_queue_resize): set the ->need_resize
23025 flag directly for not visible resize containers and spare us unecessary
23029 (gtk_window_realize): if we need to enforce premature size allocation,
23030 queue a container resize so we are correctly resized later on.
23032 (gtk_window_size_request):
23033 don't freak around with the ->need_resize flag,
23034 gtk_container_queue_resize() will care about that.
23036 handle initial resizing issues here, we can handle matters better in
23037 this place, especially since we know that our GdkWindow is still
23039 (gtk_window_move_resize):
23040 don't care about ->need_resize at all.
23041 handle size changes properly that occoured while we waited for a
23044 Tue Aug 31 15:58:46 1999 Owen Taylor <otaylor@redhat.com>
23046 * gtk/gtkwidget.c (gtk_widget_set_uposition):
23047 * gtk/gtkwindow.[hc] (gtk_window_reposition):
23048 Move the hint setting code from gtk_widget_set_uposition
23049 to here; set the hints so that we respect any previously
23050 set geometry hints.
23052 * gtk/gtkwindow.c (gtk_window_compute_reposition): Don't
23053 change the window hints here or move the window here,
23054 let that happen in gtk_window_move_resize().
23056 Tue Aug 31 06:58:52 1999 Tim Janik <timj@gtk.org>
23058 * gtk/gtkwidget.c (gtk_widget_event): when discarding exposes due
23059 to already queued resizes (and therefore redraws) on a widget, check
23060 its anchestry as well.
23062 * gtk/gtkcontainer.c:
23063 (gtk_container_queue_resize): clear resize widgets for resize
23064 containers before aborting prematurely. this is especially important
23065 for toplevels which may need imemdiate processing or their resize
23066 handler to be queued.
23067 (gtk_container_dequeue_resize_handler): added new internal function for
23070 * gtk/gtkwindow.c (gtk_window_move_resize): if we are resizing due to a
23071 configure event, take possible changes in window position into account
23073 if we request a new window size, queue up a resize handler that will
23074 last until the configure event response arrives.
23075 combined the ->need_resize case (initial show) with the general size
23076 (hints) changed case and added even more comments.
23077 if !auto_shrink, only revert to the old allocation if the new size
23078 is smaller than the current allocation.
23080 Tue Aug 31 11:55:20 1999 Owen Taylor <otaylor@redhat.com>
23082 * gtk/gtkwindow.c (gtk_window_set_arg, gtk_window_set_policy,
23083 gtk_window_set_geometry_hints
23084 gtk_window_set_default_size):
23085 When hints are set, queue a resize so that the hints will
23086 be eventually reset on the toplevel.
23088 * gtk/gtkwindow.c (gtk_window_show): Use
23089 gtk_window_compute_default_size(). Clear the need_resize flag
23090 on the initail map so that we don't unnecessarily trigger the
23093 * gtk/gtkwindow.c (gtk_window_move_resize): Split apart
23094 into separate functions. Compare the hints we are setting
23095 with what we set last time so that we can accurately
23096 tell when we need to reset the hints.
23098 * gtk/gtkwindow.c (gtk_window_compute_default_size): New
23099 function to figure out the size from requisition
23102 * gtk/gtkwindow.c (gtk_window_constrain_size): Function
23103 from fvwm to constrain a size to the geometry hints.
23105 * gtk/gtkwindow.c (gtk_window_compare_hints): New function
23106 to compare two sets of geometry hints.
23108 * gtk/gtkwindow.c (gtk_window_compute_hints): Renamed
23109 from gtk_window_set_hints(), just compute the hints,
23112 * gtk/gtkwindow.c (gtk_window_compute_reposition): Move
23113 code from gtk_window_move_resize() to separate function,
23116 Tue Aug 31 13:05:03 1999 Owen Taylor <otaylor@redhat.com>
23118 * gtkrc.h: Move the ref_count member out of the GtkRcStyle
23119 structure into a new private structure.
23121 * gtkrc.c: Split GtkRcStyle into public/private.
23122 In the private part, add a list of pointers to the
23123 RcStyle lists this RcStyle participates in.
23125 * gtkrc.c: When a RcStyle is free, remove all
23126 lists referencing it from the
23127 realized_style_ht hash, and free those lists.
23129 * gtk/gtkrc.c (gtk_rc_clear_styles): Don't call
23130 gtk_rc_init(), since that adds the default styles
23131 to the list of parsed RC files again.
23133 * gtk/gtkrc.c: Use gtk_rc_style_find() consistently.
23135 Thu Aug 26 14:14:42 1999 Tim Janik <timj@gtk.org>
23137 * gtk/gtkwidget.c (gtk_widget_size_allocate): reactivated the sanity
23138 checks that ensure that a widget's allocation is at least 1 in width
23139 and height. (GNOME note: this doesn't affect old panel code anymore,
23140 because GtkSocket will request width and height of at least 1 since
23143 * gtk/gtkwindow.c (gtk_window_realize): if the widget hasn't been
23144 allocated yet (happens if the user realizes the window prematurely),
23145 size request and allocate it.
23146 (gtk_window_size_allocate): guard against guint underflows.
23148 Wed Aug 25 19:01:36 1999 Lars Hamann <lars@gtk.org>
23150 * gtk/Makefile.am (gtk_built_sources): reordered stamp-gtk.defs
23151 in gtk_built_sources, so gtk.defs gets built prior to all other
23154 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
23157 invoke indent on gtkmarshal.*.
23158 rewrote source generation rules, use COPYING as oldest source tag for
23159 a piggyback rule to generate all sources from (don't touch it ;).
23160 major cleanups, strip spaces on build rules for GNU Make.
23162 * gtk/genmarshal.pl: don't operate on hardcoded filenames but take
23163 source and target files from commandline arguments. don't invoke indent.
23165 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
23167 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
23168 notebook after switch to avoid drawing problems.
23169 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
23171 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
23173 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
23175 Sat Aug 21 14:07:36 1999 Lars Hamann <lars@gtk.org>
23177 * gtk/gtknotebook.c (gtk_notebook_real_switch_page): queue_resize
23178 notebook after switch to avoid drawing problems.
23179 (Bug#856 Reported by: Theodore Roth <troth@netmagic.net>)
23181 (gtk_notebook_pages_allocate): don't map not visible tab_labels,
23183 (Bug#1805 Reported by: Dave Cole <dave@dccs.com.au>)
23185 Wed Aug 18 09:20:10 1999 Tim Janik <timj@gtk.org>
23188 we use window->need_resize from configure_event now, to indicate that
23189 the gtkwindow should keep its allocation (e.g. because the user resized
23190 the window through window manager handles). resize_count is now reliably
23191 used to figure whether we got the allocation we requested from the
23193 configure events get queued as resizes now, the real stuff (size
23194 computation and allocation) now only goes on in gtk_window_move_resize().
23195 GtkWindow's requisition now contains its *real* requisition (like all
23196 other widgets), *not* taking usize into account.
23197 geometry_info->last_{width|height} is now updated from set_hints() only
23198 so it always contains the last hints we set for the window manager.
23199 made some event handlers return TRUE instead of FALSE.
23200 the overall code should be much more straight forward now, and the
23201 significant code portions are accompanied by comments now.
23202 (gtk_window_set_hints):
23203 removed requisition argument and made it
23204 fetch the requisition through gtk_widget_get_child_requisition.
23205 we also don't move the gdkwindow here anymore, gtk_window_move_resize()
23208 ensure that the widget is realized before calling
23209 gtk_container_check_resize() (and thus gtk_window_move_resize()), also
23210 ensure that we got properly size requested and allocated before
23212 (gtk_window_configure_event):
23213 ignore plain window moves, or reallocate the widget tree through the
23214 resize queue otherwise.
23215 (gtk_window_move_resize):
23216 mostly rewrote this function to figure window manager hints more
23217 reliably, coalesce window moves and resizes to reduce configure events
23218 and do actuall size allocations.
23220 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
23222 * gtk/gtkwidget.c (gtk_widget_event): discard expose events for widgets
23223 that have a resize pending, because a redraw is already queued for them.
23225 * gtk/gtkcontainer.c: removed ugly connect_to ::size_allocate signal
23226 hack to clear resize_widgets.
23228 * gtk/gtkwidget.c (gtk_widget_size_allocate): call clear_resize_widgets
23229 for resize containers prior to size allocation. (this is also a bit
23230 ugly, but avoids side effects for stopped emissions and is thus more
23232 (gtk_widget_unparent): removed disconnect call for clear_resize_widgets.
23234 * gtk/gtktooltips.c (gtk_tooltips_paint_window): renamed this
23235 function from gtk_tooltips_expose, as we connect to ::expose_event
23238 1999-08-18 Federico Mena Quintero <federico@redhat.com>
23240 * gtk/gtkselection.c (gtk_target_list_ref): Added missing sanity
23242 (gtk_target_list_unref): Likewise.
23244 * gtk/gtkthemes.c (gtk_theme_engine_unref): Likewise.
23246 Tue Aug 17 15:47:07 1999 Owen Taylor <otaylor@redhat.com>
23248 * gtk/gtkcolorsel.c (gtk_color_selection_draw_value_bar):
23249 guard against division by zero. (Fixes bug #1339)
23251 Tue Aug 17 10:56:49 1999 Owen Taylor <otaylor@redhat.com>
23253 * gtk/gtkentry.c (gtk_move_{forward,backward}_word):
23254 Prevent the trivial leak of information of allowing
23255 word motion when the entry is not visible.
23257 Tue Aug 17 10:28:52 1999 Owen Taylor <otaylor@redhat.com>
23259 * gtk/gtkfilesel.c (gtk_file_selection_fileop_error): Propagate
23260 modality to error dialog as well as confirmation dialogs.
23261 (Bug #1803, reported by Rosanna Wing Sze Yuen)
23263 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
23265 * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor
23267 (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>)
23269 * gtk/Makefile.am (install-data-local): Solaris apparently
23270 has various troubles with ln -f; use rm first instead.
23271 (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>)
23273 1999-07-30 Raja R Harinath <harinath@cs.umn.edu>
23275 * gtk/Makefile.am (stamp-m): Don't `mv' from builddir to srcdir,
23276 use `cp' followed by `rm' (the `rm' was already there).
23278 July 30, 1999 Elliot Lee <sopwith@redhat.com>
23280 * configure.in: Fix autoconf warnings about cross compilation by
23281 trying to provide sane defaults for AC_TRY_RUN.
23282 * gtk/Makefile.am: If we refer to gtkmarshal.[ch] in $(srcdir),
23283 put them into $(srcdir) when generated. Also add a dependency of
23284 gtksignal.h on gtkmarshal.h for -j builds.
23285 * gtk/gtk(dnd,style,gamma).c: Minor warning fixes.
23287 Wed Jul 28 09:29:19 1999 Owen Taylor <otaylor@redhat.com>
23289 * gtk/gtkmain.c (gtk_main_iteration_do): Added missing
23290 GDK_THREADS_{LEAVE,ENTER} pair.
23291 (From Paul Fisher <pnfisher@redhat.com>)
23293 Fri Jul 23 01:00:15 1999 Tim Janik <timj@gtk.org>
23295 * gtk/gtksocket.c (gtk_socket_size_request): asure that the requested
23296 width and height are always >0 (owen).
23298 Fri Jul 23 00:00:47 1999 Tim Janik <timj@gtk.org>
23300 * gtk/gtkwidget.c (gtk_widget_size_allocate): backed out my recent
23301 change that assured that a widget's allocated with and height are
23302 always >1, since this breaks *buggy* panel code. unfortunately this
23303 back-breaks the gimp's color selector.
23305 * gtk/gtkdrawingarea.c (gtk_drawing_area_size_allocate): asure that our
23306 allocation is always >0 in width and height, before sending the
23307 configure event; this is a *gross* hack to get the gimp back to work.
23309 * marked both cases with TODO-1.3
23311 Wed Jul 21 15:47:39 1999 Owen Taylor <otaylor@redhat.com>
23313 * gtk/gtktext.c: Don't display wrap indicators when
23314 text is not editable and word wrap is on.
23316 Wed Jul 21 08:21:40 1999 Tim Janik <timj@gtk.org>
23318 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): special case
23319 option menus here as they are not derived from menu shell, assure that
23320 the option menu has a menu we can add items to.
23322 Tue Jul 20 23:29:48 1999 Tim Janik <timj@gtk.org>
23324 * gtk/gtknotebook.c (gtk_notebook_page_allocate): convert allocation->
23325 width/height to (gint) before calculations and check against < 0 to
23326 avoid guint wraparounds.
23328 Sun Jul 18 00:35:49 1999 Tim Janik <timj@gtk.org>
23330 * gtk/gtkwidget.c (gtk_widget_size_allocate): ensure that the allocated
23331 width and height is never zero. sanity check both dimensions against
23332 32767 and issue a warning if the allocation is greater than that.
23334 Wed Jul 7 15:03:30 1999 Owen Taylor <otaylor@redhat.com>
23336 * gtk/gtkmain.c (gtk_events_pending): Unlock around call
23337 to g_main_pending() as well.
23339 Wed Jul 7 14:59:01 1999 Owen Taylor <otaylor@redhat.com>
23341 * gtk/gtkmain.c (gtk_main_iteration): Unlock around
23342 call to g_main_iteration() - since that will regrab
23343 GTK+ lock to process events.
23345 Thu Jul 1 15:01:55 1999 Owen Taylor <otaylor@redhat.com>
23348 - Regularize with the rest of GTK+ by making widget->requisition
23349 not reflect the set_usize()
23350 - Always recompute geometry hints, then check if they
23351 changed before sending them to the X server. The
23352 previous checks for changes would fail in a number
23355 Thu Jul 1 11:55:59 1999 Owen Taylor <otaylor@redhat.com>
23357 * gtk/gtkstyle.c: Include <stdlib.h> for strcmp().
23359 Wed Jun 30 19:26:36 1999 Owen Taylor <otaylor@redhat.com>
23363 - Instantaneously update on modifier key presses
23364 - Allow cancellation of the drag with Escape.
23366 Tue Jun 29 17:04:09 1999 Owen Taylor <otaylor@redhat.com>
23368 * gtk/testgtk.c (create_handle_box): Set the policy
23369 to auto_shrink - otherwise the appearance is rather
23370 strange when flipping between horizontal and vertical.
23372 Mon Jun 28 09:29:52 1999 Tim Janik <timj@gtk.org>
23374 * gtk/gtkwindow.c: add ::default_width and ::default_height arguments.
23375 (gtk_window_set_default_size): don't change a value if it's < 0.
23378 Sun Jun 27 11:00:33 1999 Tim Janik <timj@gtk.org>
23380 * gtk/gtktext.c (gtk_text_insert): don't segfault on NULL inserts.
23382 Mon Jun 28 12:08:25 1999 Owen Taylor <otaylor@redhat.com>
23384 * gtk/gtkfilesel.c (cmpl_completion_fullname): Don't
23385 add an extra "/" when concating "/" + filename.
23386 (From Matt Grossman <mattg@oz.net>)
23388 Mon Jun 28 10:57:12 1999 Owen Taylor <otaylor@redhat.com>
23390 * gtk/gtkctree.c (draw_cell_pixmap): Reset clip mask
23391 for fg_gc if we set it for drawing pixmap.
23393 Tue Jun 15 12:45:12 1999 Owen Taylor <otaylor@redhat.com>
23395 Fixes from Peter Wainwright <prw@wainpr.demon.co.uk>
23397 * gtk/gtkrc.c (gtk_rc_parse_engine): If rc_style->engine is
23398 already set, call old engine's destroy function and
23399 unref the old engine.
23401 Thu Jun 10 17:59:38 1999 Tim Janik <timj@gtk.org>
23403 * gtk/gtkdrawingarea.c (gtk_drawing_area_size): queue a resize.
23405 Wed Jun 9 15:13:16 1999 Tim Janik <timj@gtk.org>
23407 * gtk/gtkaccelgroup.h: mark certain functions as internal.
23409 Wed Jun 9 13:48:28 1999 Tim Janik <timj@gtk.org>
23411 * gtk/gtkpreview.c (gtk_preview_set_expand): queue a resize if the
23412 expand behaviour changed.
23414 * gtk/gtklabel.c (gtk_label_set_pattern):
23415 (gtk_label_set_justify):
23416 (gtk_label_set_line_wrap):
23417 don't bother invoking queue_clear, the reallocation does
23418 that for us, always free_words so the upcoming resize will
23419 relayout the label's contents.
23421 Wed Jun 9 12:50:48 1999 Tim Janik <timj@gtk.org>
23423 * applied argument implementation patches from Elena Devdariani
23426 * gtk/gtktoolbar.c: ::orientation, ::toolbar_style, ::space_size,
23427 ::space_style, ::relief
23428 * gtk/gtkruler.c: ::lower, ::upper, ::position, ::max_size
23429 * gtk/gtkpreview.c: ::expand
23430 * gtk/gtkpaned.c: ::handle_size, ::gutter_size
23431 * gtk/gtknotebook.c: ::homogeneous
23432 * gtk/gtklabel.c: ::wrap
23433 * gtk/gtklist.c: ::selection_mode
23434 * gtk/gtkhandlebox.c: ::handle_position, ::snap_edge
23435 * gtk/gtkcurve.c: ::curve_type, ::min_x, ::max_x, ::min_y, ::max_y
23436 * gtk/gtkcolorsel.c: ::update_policy, ::use_opacity
23437 * gtk/gtkclist.c: ::sort_type
23438 * gtk/gtkcheckmenuitem.c: ::active, ::show_toggle
23439 * gtk/gtkaspectframe.c: ::xalign, ::yalign, ::ratio, ::obey_child
23441 Tue Jun 1 23:38:38 1999 Owen Taylor <otaylor@redhat.com>
23443 * gtk/gtkstyle.c: Removed ill-thought-out part of last
23446 Tue Jun 1 23:30:09 1999 Owen Taylor <otaylor@redhat.com>
23448 * gtk/gtkstyle.c (gtk_style_attach): Get the reference
23449 counting right when we have to attach a new style
23450 for a different visual. (Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
23452 * gtk/gtkstyle.c: Documented the refcounting
23453 peculularities of gtk_style_attach.
23455 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
23457 * gtk/gtkwindow.c (gtk_window_new): added return if fail for invalid
23460 * examples/packer/pack.c (main): use GTK_WINDOW_TOPLEVEL instead
23461 of GTK_TOPLEVEL for creating the window.
23463 1999-06-01 Tim Janik <timj@dhcpd7.redhat.com>
23465 * gtk/gtkmain.c (gtk_init_check): don't segfault when --gtk-module is
23466 the last argument (reported by Per Winkvist).
23468 Tue May 25 13:13:12 1999 Owen Taylor <otaylor@redhat.com>
23470 Fixes for invisible XOR lines (Frank Loemker
23471 <floemker@TechFak.Uni-Bielefeld.DE>)
23473 * gtk/gtkclist.c (gtk_clist_realize): Always use
23474 a non-zero pixel for GDK_XOR.
23476 * gtk/gtkvpaned.c gtk/gtkhpaned.c:
23477 Use GDK_INVERT instead of GDK_XOR.
23479 Wed May 12 21:56:40 1999 Lars Hamann <lars@gtk.org>
23481 * gtk/gtkclist.c (adjust_adjustments): signal emit value_changed
23482 signals if h/voffsets differ from adjustment values.
23483 Reportet by Jerome Bolliet <bolliet@in2p3.fr>
23485 Mon May 10 04:20:41 1999 Tim Janik <timj@gtk.org>
23487 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): propagate
23488 ::selection-done emissions up to the topmost menu shell.
23490 Fri May 7 10:15:14 1999 Owen Taylor <otaylor@redhat.com>
23492 * gtk/gtknotebook.c (gtk_notebook_set_scrollable): Unset
23493 the user data on the window before destroying it.
23495 * gtk/gtknotebook.c (gtk_notebook_unrealize): Add an
23496 unrealize handler to take care of destroying
23497 notebook->panel properly.
23498 (Bug #1198 - Morten Welinder <terra@diku.dk>)
23500 * gtk/gtktext.c (expand_scratch_buffer): Fix reversal
23501 of g_new and g_realloc to stop memory leak. (Actually,
23502 we could just use g_realloc(), but I'm not 100% sure
23504 (Bug #1196 - Morten Welinder <terra@diku.dk>)
23506 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
23508 * gtk/gtkplug.h: Removed stray GtkPlugButton declaration.
23510 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
23513 * gtk/gtkbutton.c (gtkbutton_expose): Fix warning
23514 with bin/button confusion.
23516 Thu May 6 04:53:26 1999 Tim Janik <timj@gtk.org>
23518 * gtk/testgtk.c: in the ItemFactory test, link radio items together,
23519 and show how preselection of radio items is done.
23521 Sun May 2 13:31:14 1999 Tim Janik <timj@gtk.org>
23523 * gtk/gtktreeitem.c (gtk_tree_item_set_subtree):
23524 * gtk/gtktree.c (gtk_tree_add) (gtk_tree_insert):
23525 * gtk/gtktoolbar.c (gtk_toolbar_insert_element):
23526 * gtk/gtkpaned.c (gtk_paned_pack2) (gtk_paned_pack1):
23527 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add):
23528 * gtk/gtktable.c (gtk_table_attach):
23529 * gtk/gtklist.c (gtk_list_insert_items):
23530 * gtk/gtkmenushell.c (gtk_menu_shell_insert):
23531 * gtk/gtknotebook.c (gtk_notebook_insert_page_menu):
23532 * gtk/gtkpacker.c (gtk_packer_add_defaults) (gtk_packer_add):
23533 * gtk/gtkbin.c (gtk_bin_add):
23534 * gtk/gtkbox.c (gtk_box_pack_start) (gtk_box_pack_end):
23535 * gtk/gtkfixed.c (gtk_fixed_put):
23536 * gtk/gtklayout.c (gtk_layout_put):
23537 general fixups to container_add logic. always realize child if
23538 child->parent is realized, only map the child and queue a resize
23539 if child and child->parent are both visible.
23541 Fri Apr 30 09:02:28 1999 Tim Janik <timj@gtk.org>
23543 * gtk/gtkwidget.c (gtk_widget_real_unrealize): use gtk_container_forall
23544 instead of gtk_container_foreach to walk and unrealize children, so
23545 composite children get also unrealized.
23546 (gtk_widget_real_show): don't call gtk_widget_map() if we don't need to.
23547 (gtk_widget_map): assert that the widget is visible (basic constrain).
23548 (gtk_widget_real_map): assert that the widget is realized (basic
23551 Fri Apr 29 00:53:20 1999 Tim Janik <timj@gtk.org>
23553 * gtk/gtkbindings.c (gtk_pattern_spec_init): plugged a memory leak.
23555 Tue May 4 09:32:08 1999 Owen Taylor <otaylor@redhat.com>
23557 * gtk/Makefile.am gtk/gtkrc.iso-8859-2: Add a gtkrc
23558 file for iso-8859-2 locales.
23560 * configure.in (ALL_LINGUAS): ALL_LINGUAS update.
23562 Tue Apr 27 16:38:32 1999 Owen Taylor <otaylor@redhat.com>
23564 * gtk/Makefile.am: Fix typo of static_sources for static_SOURCES.
23565 (Pointed out by andy@rz.uni-karlsruhe.de and others).
23566 Remove some suspicious and useless lines.
23568 Tue May 4 08:44:08 1999 Owen Taylor <otaylor@redhat.com>
23570 * gtk/gtkclist.c (gtk_clist_draw, draw_rows): Use
23571 width,height = 0, 0 to mean - here to edge of window,
23572 instead of -1, -1, since the former is all we support.
23574 Tue May 4 08:34:43 1999 Owen Taylor <otaylor@redhat.com>
23576 * gtk/gtkmain.c (gtk_main): Correctly free list nodes
23577 when removing from quit_functions list.
23579 Tue Apr 27 14:17:16 1999 Tim Janik <timj@gtk.org>
23581 * gtk/gtkpacker.c (gtk_packer_size_request): remove unused variable.
23583 Tue Apr 27 18:23:35 1999 Owen Taylor <otaylor@redhat.com>
23585 * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
23586 When redrawing characters on non-visible entry, use appropriate
23587 '*' character. (Bug #1130 - Jean-Marc Jacquet <jm@littleigloo.org>)
23589 Tue Apr 27 01:31:40 1999 Lars Hamann <lars@gtk.org>
23591 * gtk/gtkclist.c (drag_dest_cell): compute destination cell
23592 from drag coordinates.
23593 (gtk_clist_drag_data_received) (gtk_clist_drag_motion):
23594 use drag_dest_cell.
23596 * gtk/gtktree (drag_dest_cell)
23597 (gtk_ctree_drag_data_received) (gtk_ctree_drag_motion): likewise.
23600 Wed Apr 21 21:26:11 1999 Tim Janik <timj@gtk.org>
23602 * gtk/gtkitemfactory.c (gtk_item_factory_init): properly initialize
23603 translate_* fields.
23604 (gtk_item_factory_finalize): invoke translate_notify independant from
23606 (gtk_item_factory_set_translate_func): likewise.
23607 (gtk_item_factory_destroy): only remove ifactory pointer from those
23608 widgets that belong to us (stupid me).
23610 Mon Apr 19 12:05:31 1999 Owen Taylor <otaylor@redhat.com>
23612 * gtk/gtkrc.c (gtk_rc_style_init): Fixed leak of
23613 rc_style list when lookup succeeeds.
23615 Thu Apr 15 01:11:24 1999 Lars Hamann <lars@gtk.org>
23617 * gtk/gtkctree.c (resync_selection):
23618 * gtk/gtkclist.c (resync_selection): fixed undo_selection bug.
23619 * gtk/gtkclist.c (gtk_clist_button_release): fixed resync_selection
23622 Fri Apr 9 19:22:19 1999 Owen Taylor <otaylor@redhat.com>
23624 * gtk/gtkcolorsel.c gtk/gtkdnd.c gtk/gtkmenuitem.c:
23625 Add some missing GDK_THREADS_ENTER()/LEAVE around
23626 timeouts. (Patches from Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
23628 Thu Apr 8 20:10:33 1999 Tim Janik <timj@gtk.org>
23630 * gtk/gtkentry.c (gtk_entry_key_press): use gtk_widget_activate()
23631 rather than emit_by_name.
23633 * gtk/gtkeditable.c (gtk_editable_insert_text): keep a reference
23634 on the widget across multiple signal emissions.
23635 (gtk_editable_delete_text): same here.
23636 (gtk_editable_class_init): set widget_class->activate_signal after
23637 editable_signals[ACTIVATE] has been created.
23639 Wed Apr 7 22:59:47 1999 Owen Taylor <otaylor@redhat.com>
23641 * gtk/gtkpaned.c (gtk_paned_set_position): Don't clamp
23642 position here prematurely -- we might not have the
23643 right ->min_position and ->max_position yet.
23645 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
23647 * gtk/gtkselection.c gdk/gdkselection.c: (gtk_selection_request):
23648 Add error traps so if the other end of the connection
23651 * gtk/gtkselection.c (gtk_selection_notify): Clean
23652 up properly when selection property retrieval fails.
23654 * gtk/gtkselection.c (gtk_selection_request): Correctly
23655 reject SelectionRequest notifies where the handler
23658 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
23660 * gtk/gtkdnd.c (gtk_drag_dest_leave): Only unhighlight
23661 when we've previously highlighted.
23663 * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Don't
23664 emit two "drag_leave" signals for Motif drops.
23666 * gtk/gtkdnd.c (gtk_drag_source_handle_event): Send
23667 back the correct status messages when dropping from
23668 Motif onto a proxy window that is rejecting the
23671 Sat Mar 27 23:32:13 1999 Tim Janik <timj@gtk.org>
23673 * gtk/gtkarg.[hc]: added functions from GLE, gtk_arg_reset() to free
23674 the value and reset type to GTK_TYPE_INVALID, and gtk_arg_values_equal()
23675 to compare two argument values. added gtk_arg_to_valueloc() to set a
23676 variable from an arg through its location (pointer).
23678 * gtk/gtkobject.[hc]: implemented gtk_object_get() in terms of
23679 gtk_object_arg_get() and gtk_arg_to_valueloc(), floats are collected
23680 as gfloat*, uchars are collected as guchar*, ints are collected as
23683 Mon Mar 29 17:45:47 1999 Owen Taylor <otaylor@redhat.com>
23685 * gtk/gtkaccelgroup.c gtk/gtkgtkbindings.c:
23686 Include <string.h> instead of <strings.h>.
23688 * gtk/gtkstyle.c: Fix double include of gtkthemes.h
23689 (actually, a lot more duplicate includes occur if
23690 you trace through the sequence of #include's)
23691 gtk-jbb-990320-0: John Bley, jbb6@acpub.duke.edu
23693 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
23695 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
23696 gtk-a-higuti-990322-[0-3]
23698 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
23699 that was causing -DX_LOCALE not to work.
23701 * gtk/gtkrc.c (gtk_rc_init):
23702 X_LOCALE will never have LC_MESSAGES defined
23704 Thu Mar 25 12:38:31 1999 Tim Janik <timj@gtk.org>
23706 * gtk/gtkrc.c (gtk_rc_append_default_module_path): get $HOME from
23707 g_get_home_dir() (gtk-pmc-990123-0.patch.gz).
23709 * gtk/gtkwindow.c (gtk_window_key_press_event): feature keypad up/down/
23710 left/right as well (gtk-michael-980726-0.patch.gz).
23712 * gtk/gtklabel.[hc]: bunch of miscellaneous cleanups, such as s/0/NULL/
23713 for pointer values, use gchar instead of char. fixed uline allocation
23714 leaks, changed the allocation pattern so we use G_ALLOC_AND_FREE mem
23715 chunks instead of G_ALLOC_ONLY.
23716 (gtk_label_size_request): always alter requisition as passed and leave
23717 widget->requisition alone.
23718 (gtk_label_set_text): allow NULL strings.
23719 (gtk_label_new): likewise.
23721 Wed Mar 24 09:24:03 1999 Tim Janik <timj@gtk.org>
23723 * gtk/gtkdrawingarea.[hc]: type/macro fixups.
23725 Mon Mar 22 05:51:34 1999 Tim Janik <timj@gtk.org>
23727 * gtk/gtkbin.c (gtk_bin_draw): only redraw children that are visible
23728 *and* mapped (i.e. drawable).
23729 (gtk_bin_expose): only send exposes to drawable children.
23731 * gtk/gtkbox.c (gtk_box_draw): only redraw children that are drawable.
23732 (gtk_box_expose): only send exposes to drawable children.
23734 * gtk/gtkhscale.c (gtk_hscale_draw):
23735 * gtk/gtkvscale.c (gtk_vscale_draw):
23736 hm, this is an ugly one. we first compute the size of our trough area
23737 here (window relative) and then check intersection with the draw_area
23738 which is parent relative because we're a NO_WINDOW widget, so we need
23739 to offset the trough area by allocation.x and allocation.y before the
23740 check. (this must not be done for the background area though, since
23741 that's already computed parent relative).
23743 Mon Mar 22 00:41:39 1999 Lars Hamann <lars@gtk.org>
23745 * gtk/gtkclist.c (gtk_clist_unrealize): unmap clist if neccessary,
23746 unrealize title buttons.
23748 Fri Mar 19 00:00:22 1999 Lars Hamann <lars@gtk.org>
23750 * gtk/gtkclist.c (gtk_clist_column_title_passive)
23751 (gtk_clist_column_title_active):
23752 only connect/disconnect to GtkWidgetClass::event to block mouse events.
23754 * gtk/gtkclist.c (vertical_timeout) (horizontal_timeout):
23755 zero initialize event, removed superfluous gdk_window_get_pointer call
23757 * gtk/gtklist.c (gtk_list_vertical_timeout)
23758 (gtk_list_horizontal_timeout): removed superfluous
23759 gdk_window_get_pointer call
23761 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
23763 * plugging problems reported by "Bruce Mitchener, Jr."
23764 <bruce@puremagic.com> due to a purify session.
23768 (gtk_style_unref): assert ref_count to be > 0.
23770 * gtk/gtkclist.c (gtk_clist_set_cell_style): { 0 } initilaize
23772 (gtk_clist_set_shift): likewise.
23774 * gtk/gtklayout.c: introduce gtk_layout_finalize() to unref the
23777 * gtk/gtklist.c (gtk_list_horizontal_timeout): zero initialize the
23778 event before sending it and set send_event to TRUE (which needs to
23779 be done for *all* synthesized events).
23780 (gtk_list_vertical_timeout): likewise.
23782 * gtk/gtktipsquery.c (gtk_tips_query_destroy): plug small memory
23785 * gtk/gtkdrawingarea.c (gtk_drawing_area_send_configure): set send_event
23786 to TRUE when synthesizing events.
23788 [ *** end of merges from 1.2 *** ]
23790 1999-11-21 Tor Lillqvist <tml@iki.fi>
23792 * gdk/gdkconfig.h: Remove, as this is a file generated by configure
23793 (or copied from gdkconfig.h.win32 on Win32, sigh).
23795 * gdk/gdkprivate.h: Mark gdk_parent_root for export from DLL.
23797 * gdk/gdk.c (gdk_keyval_convert_case): Fix typo.
23799 * gdk/gdkgc.c (gdk_gc_alloc): Remove duplicated line.
23801 * gdk/gdkconfig.h.win32: New file.
23803 * gdk/win32/makefile.cygwin: Build just a static archive here.
23805 * gdk/makefile.cygwin: New file. Get the win32-specific stuff
23806 for the DLL from the static archive built above.
23808 * gdk/gdk.def: Moved here from the win32 subdirectory.
23810 * gdk/win32/*: Adapt for the changed private struct organisation.
23812 * gtk/makefile.{cygwin,msc}: Get gdk library from ../gdk now.
23814 Sun Nov 21 16:44:35 1999 Stefan Jeske <stefan@gtk.org>
23816 * gtk/gtkspinbutton.c (gtk_spin_button_button_press): Added support
23817 for wheel mice (buttons 4 and 5).
23819 1999-11-18 Tor Lillqvist <tml@iki.fi>
23821 * gdk/win32/gdkgc-win32.c (gdk_gc_predraw): Also for truecolor
23822 drawables use just the pixel field in the foreground and
23823 background GdkColor of the GdkGC.
23825 gdk_gc_set_{fore,back}ground() are called in the GIMP with
23826 GdkColors containing uninitialized (red,green,blue) fields, and
23827 just the pixel field filled in, and furthermore in the
23828 visual-dependent format as returned by gdk_rgb_xpixel_from_rgb().
23829 It thus turns out that we really don't need to have the full
23830 GdkColor for fg and bg in GdkGCWin32Data after all. Will change
23831 it later to have just the pixel values.
23833 Mon Nov 15 17:17:51 GMT 1999 Tony Gale <gale@gtk.org>
23835 * docs/gtkfaq.sgml: s/gtk_main_iteration/g_main_iteration/
23837 Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
23839 * docs/gtkfaq.sgml: threads example from Erik Mouw.
23840 New question on GtkLabel background colors.
23842 * docs/gtk_tut.sgml:
23843 - Correct the example code callback
23844 function definitions.
23845 - Update the gtkdial example code, from Frans van Schaik.
23846 - Update setselection.c to current API.
23848 * examples/Makefile examples/*/*.c: Update to code
23849 listed in tutorial.
23851 1999-11-10 Tor Lillqvist <tml@iki.fi>
23853 * gdk/win32/gdkfont-win32.c: Fix a couple of bugs. The Unicode
23854 subrange table (from the "Developing International Software for
23855 WIndows 95 and Windows NT" book) was missing the Hangul syllable
23856 block... Get the loaded font's charset correctly.
23858 (Note that this, and the other *-win32.c files, still really are
23859 the old ones, the win32 subdirectory is not ready for compilation
23860 yet after the reorg.)
23862 Wed Nov 10 17:26:49 GMT 1999 Tony Gale <gale@gtk.org>
23864 * gtk/gtkclist.c: Fix off-by-one bug in parameter
23867 Wed Nov 10 12:12:03 1999 Owen Taylor <otaylor@redhat.com>
23869 * gdk/x11/gdkinput-{x11,xfree}.c: Call XFreeDeviceState()
23870 on results of XQueryDeviceState().
23872 Mon Nov 8 16:40:43 1999 Owen Taylor <otaylor@redhat.com>
23874 * gtk/gtkwidget.c: Substitute gdkx.h => gdkprivate.h since
23875 we need to accesss only ->children. We need an accessor
23878 * gtk/gtkhandlebox.c gtk/testgtk.c: Substitute G
23879 DK_ROOT_PARENT() => NULL, in call to gtk_window_get_pointer()
23880 to get rid of gdkx.h include.
23882 * gtk/gtkctree.c: Get rid of #include <gdk/gdkx.h>
23883 and random references to 'None'.
23885 * gtk/gtkclist.c gtk/gtkeditable.c gtk/gtkpreview.c
23886 Get rid of unused #include <gdk/gdkx.h>
23888 * gtk/gtkrc.c gtk/gtkmain.c: Get rid of #include <gdk/gdkx.h>
23889 gdkx.h is _X_ specific stuff. GDK_WINDOWING comes from
23892 1999-11-08 Tor Lillqvist <tml@iki.fi>
23894 * gdk/win32/gdkdraw.c
23895 * gdk/win32/gdkfont.c
23896 * gdk/win32/gdkgc.c: Various minor cleanups and bugfixes
23897 following yesterday's changes. (Unrelated to Owen's reorg.)
23899 Mon Nov 8 16:18:25 1999 Owen Taylor <otaylor@redhat.com>
23901 * gdk/x11/gdkinput-gxi.c: Add missing include,
23902 fix GdkWindowPrivate => GdkDrawablePrivate.
23904 * gdk/x11/gdkinputprivate.h: include <X11/Xlib.h>.
23906 * gdk/x11/Makefile.am (xinput_sources): Add missing
23907 backslash to fix building with --with-xinput=none
23909 Mon Nov 8 14:47:04 1999 Owen Taylor <otaylor@redhat.com>
23911 Move all X specific code into the x11/ directory.
23912 Aside from shuffling things around, did the following:
23914 * gdk/gdkprivate.h gdk/gdk.h gdk/x11/gdkmain-x11.h: Add
23915 gdk_arg_context_* - a simple argument parsing system
23916 in the style of popt.
23918 * gdk/gdkdrawable.[ch] gdk/gdkprivate.h gdk/gdkwindow.[ch]
23919 gdk/x11/gdkprivate-x11.h:
23920 Remove X specific stuff from GdkDrawable and GdkWindowPrivate -
23921 add ->klass and ->klass_data fields. The klass_data
23922 field points to an auxilliary structure that is
23923 windowing system dependent.
23925 * gdk/gdkfont.c: Make most of the measurement functions
23926 simply wrappers around gdk_text_extents().
23928 * gdk/gdkfont.c gdk/gdkprivate.h gdk/x11/gdkfont-x11.c: Add a
23929 _gdk_font_strlen() function that hides the weird
23930 behavior in gtk+-1.[02] where a string is interpreted
23931 differently for 8-bit and 16-bit fonts.
23933 * gdk/gdkevents.c: Add a new function gdk_event_button_generate()
23934 to store common code for synthesizing double/triple
23937 * gdk/gdkgc.[ch]: Virtualize in the same way as gdkdrawable.h.
23938 Make all the function that modify an existing GC
23939 simply wrappers around gdk_gc_set_values().
23941 * gdk/gdkcc.[ch]: Moved into x11/ directory in preparation
23942 for throwing out later.
23944 * gdk/gdkfont.c gdk/gdkimage.c gdk/gdkcolor.c: Change GdkFontPrivate,
23945 GdkImagePrivate and GdkColormapPrivate to have a
23946 windowing system dependent part (GdkFontPrivateX etc.)
23947 that "derives" from the system-independent part.
23949 * configure.in gdk/x11/Makefile.in gdk/x11/gdkinput*.c:
23950 Got rid of the included-source-files for XInput in
23951 favor of automake conditionals. (Which didn't exist
23952 when XInput support was originally added.)
23954 * gdk/gdkrgb.c: Remove the visual id from the debugging
23955 statements since that is X11 specific; print out
23956 type/depth info instead.
23959 Wed Nov 3 18:14:49 1999 Owen Taylor <otaylor@redhat.com>
23961 * gdk/x11/gdkfont-x11.c (gdk_font_load): Ref fonts when
23962 loading duplicates of hashed fonts.
23964 * gdk/gdk.c (gdk_keysym_convert_case): rename
23965 gdk_XConvertCase to gdk_keysym_convert_case, allow
23966 results to be NULL in the GTK+ style.
23968 * gdk/gdkcompat.h: Started compatibility header
23971 1999-11-07 Tor Lillqvist <tml@iki.fi>
23973 * gdk/win32/gdkprivate.h: New font private structures, related to
23976 * gdk/win32/gdkfont.c: New functions gdk_font_list_new() and
23977 gdk_font_list_free(). On X11, will just be wrappers to
23978 XListFonts() and XFreeFontNames(). On Win32, the code previously
23979 in gtkfontsel.c is now here.
23981 New function gdk_font_xlfd_create(). On X11 will get the FONT
23982 property of the font (for GDK_FONT_FONTs), or call
23983 XBaseFontNameListOfFontSet (for GDK_FONT_FONTSETs), on Win32
23984 builds a XLFD style name from the font information in the LOGFONT
23987 New function gdk_font_xlfd_free(), which correspondingly frees the
23988 string returned by gdk_font_xlfd_create().
23990 Implement fontsets on Win32. Add a function that iterates over a
23991 wide char string and calls a callback function for each substring
23992 of wide chars from the same Unicode subrange (and thus probably
23993 available in the same real font).
23995 Improve the XLFD emulation a bit.
23997 * gdk/win32/gdkim.c (gdk_nmbstowchar_ts): Small bugfix.
23999 * gdk/win32/gdkevents.c: Workaround for suspected bug on Win2k
24000 Beta3, WM_IME_CHAR messages don't seem to contain the composed
24001 multi-byte char as with the Active IMM on Win9x. Oh well, handle
24002 WM_IME_COMPOSITION with GCS_RESULTSTR instead, use
24003 ImmGetCompositionStringW() to get the composed Unicode chars.
24005 * gdk/win32/gdkgc.c
24006 * gdk/win32/gdkdraw.c: Changes needed because of the font private
24009 * gdk/win32/gdk.def: Add the new functions.
24011 1999-11-04 Tor Lillqvist <tml@iki.fi>
24013 * config.h.win32: Don't define HAVE_DIMM_H if MSC, as you have to
24014 get the Platform SDK to get <dimm.h>.
24016 * gdk/win32/gdkevents.c: More event handling fixes and
24017 simplification. Never generate motion events with is_hint true. We
24018 used to do that on bogus grounds earlier. Windows sends
24019 WM_MOUSEMOVE messages on button events even if the mouse hasn't
24020 moved, ignore these.
24022 * gdk/win32/gdkfont.c: Load all fonts as (pretended) fontsets.
24024 * gdk/win32/gdkglobals.c
24025 * gdk/win32/gdkprivate.h: Define a typedef for the pointer to
24026 the TrackMouseEvent function, and use it.
24028 * gdk/win32/gdkwindow.c: Terminate widechar string with a zero
24029 char before calling WideCharToMultiByte in order to get a string
24030 for the window title.
24032 * gdk/win32/gdkdnd.c: Some more random hacking, ifdeffed out.
24034 * gdk/win32/gdk.def: Remove obsolete functions.
24036 * gdk/win32/makefile.{cygwin,msc}: Remove gdkcompat.{o,obj}. Add
24037 /nodefaultlib and /defaultlib switches.
24039 * gtk/gtkrc.c: s/gwin_getlocale/g_win32_getlocale/.
24041 1999-10-31 Tor Lillqvist <tml@iki.fi>
24043 * gdk/gdkkeysyms.h: Add new keysyms from X11R6.4 (including
24046 * gdk/gdktypes.h: Add note about wchar_t not necessarily being the
24047 same type as GdkWChar, especially on Win32.
24049 * gdk/win32/*.c: Change gdk_root_parent to be a pointer.
24051 * gdk/win32/*.c: Assume all strings are UTF-8. Convert to Unicode
24052 before passing to Windows GDI for drawing etc. Convert to the
24053 system default codepage before passing to Windows as window
24056 * gdk/win32/gdkprivate.h: Add more fields to GdkWindowPrivate to
24057 support changing input locale on the fly.
24059 * gdk/win32/gdkevent.c: Support input language (keyboard locale)
24060 on-the-fly changes. Convert incoming characters from the current
24061 codepage to Unicode (and then to a UTF-8 multi-byte string) based
24062 on the current input language. Use keysym<->Unicode mapping tables
24063 and functions borrowed from xterm sources.
24065 Support IMEs (Input Method Editors) for CJK languages. On non-CJK
24066 editions of Win9x, use the ActiveX-based Active IMM (Input Method
24067 Manager) if available. IMEs and the Active IMM are available under
24068 the disguise of Chinese, Korean and Japanese support for IE and
24069 Outlook Express from "Windows Update" for Win98. On Win2k, the CJK
24070 support is present in all editions (as long as you install it).
24072 Call DispatchMessage from gdk_events_queue() (and thus
24073 gdk_WindowProc()), instead of duplicating the code in
24076 Reworked the grab handling and propagation code, factored out
24077 duplicated code snippets into separate functions. Other cleanups,
24080 * gdk/win32/surrogate-dimm.h: Provide just the bits we need from
24081 the <dimm.h> header describing the Active IMM.
24083 * gdk/win32/gdkfont.c: Pretend to support fontsets, but so far
24084 just do the same as for "single" fonts.
24086 * gdk/win32/gdk.c: Call CoInitialize() (COM initialisation) from
24087 gdk_init_check, and CoUninitialize() from gdk_exit_func. Handle
24088 the new keysyms from gdkkeysyms.h.
24090 * gtk/gtkfontsel.c (Win32): Load the font for the preview as a
24091 fontset, so that gtkentry uses wide characters.
24093 * gtk/gtkrc.c (Win32): Get the locale with gwin_getlocale(). Call
24094 GTk+'s system directory "gtk+", not "gtk".
24096 Sat Oct 30 13:17:18 BST 1999 Tony Gale <gale@gtk.org>
24098 * docs/gtkfaq.sgml: FAQ update
24100 1999-10-21 Tor Lillqvist <tml@iki.fi>
24102 * gdk/win32/gdkprivate.h: Add more font private data.
24104 * gdk/win32/gdkfont.c
24105 * gdk/win32/gdkdraw.c: Revamped handling of multi-byte charset
24106 fonts and strings. Now works much better. You still have to
24107 have a correct font selected, though. No fontset emulation yet.
24109 1999-10-19 Tor Lillqvist <tml@iki.fi>
24111 * gtk/maketypes.awk: Use G_OS_WIN32.
24113 * gtk/gtk.def: Add some missing entry points. Also some non-public
24114 ones, but PyGTK porter claims to need them.
24116 * gtk/makefile.{cygwin,msc}: Drop some unneeded headers from the
24117 built-in type generation.
24119 1999-10-14 Tor Lillqvist <tml@iki.fi>
24121 * gdk/win32/gdkdraw.c (gdk_draw_text_wc): Don't use TextOutW for
24122 GDK_FONT_FONT fonts (which is all we have for now, we don't
24123 emulate fontsets). The X11 version uses plain XDrawString in that
24124 case, too. The string passed to gdk_draw_text_wc seems to be in
24125 fact (at least, when used by gtkentry and gtktext) either in a
24126 single-byte charset, or a DBCS. Not Unicode.
24128 This fixes the problem in gtkfontsel, where even if you had
24129 selected a font with a non-Latin1 charset (windows-greek, for
24130 instance), the preview still used Latin-1 glyphs.
24132 * gdk/win32/gdkfont.c (gdk_text_width_wc): Similar change. Don't
24133 use GetTextExtentPoint32W, use GetTextExtentPoint32A.
24134 (gdk_font_load): Recognize the demibold etc weights, even if we
24135 don't have the corresponding constants in the headers.
24136 (gdk_font_hash_insert): Use same hash mechanism as in the X11
24137 version. Should save font resources a bit, when we don't have
24138 multiple HFONTs for the same font.
24140 * gdk/win32/gdkprivate.h: Add the names field as in the X11
24143 1999-10-11 ERDI Gergo <cactus@cactus.rulez.org>
24145 * gdk/gdk.c (gdk_beep): Modified the XBell call to use the default
24148 1999-10-09 ERDI Gergo <cactus@cactus.rulez.org>
24150 * gtk/gtktoolbar.h, gtk/gtktoolbar.c: Added horizontal icon/text
24151 layout support (as mentioned on
24152 http://www.jcinteractive.com/gnome-ui/software/widgets/)
24154 Wed Oct 6 12:46:17 PDT 1999 Manish Singh <yosh@gimp.org>
24157 * gtk/gtkfilesel.c: s/G_HAVE_CYGWIN/G_WITH_CYGWIN/
24159 1999-10-05 Jesus Bravo Alvarez <jba@pobox.com>
24161 * configure.in (ALL_LINGUAS): Added Galician (gl)
24163 1999-10-05 Tor Lillqvist <tml@iki.fi>
24165 * gdk/win32/*.[ch]: Corresponding changes as in X11 backend.
24167 * gdk/win32/gdkcompat.c: New file, actually provide an
24168 implementation for the deprecated functions. (Just temporarily.)
24170 * gtk/gtkfilesel.c: Fix an #ifdef syntax botch.
24172 * gtk/makefile.{cygwin,msc}: Update gdk_headers.
24174 * gdk/win32/gdk.def gtk/gtk.def: Updates.
24176 1999-10-05 Kjartan Maraas <kmaraas@online.no>
24178 * configure.in: Added "uk" to ALL_LINGUAS.
24180 Mon Oct 4 11:57:11 PDT 1999 Manish Singh <yosh@gimp.org>
24182 * configure.in: correct checking for BeOS check
24187 * gtk/gtkitemfactory.c
24189 * gtk/gtkrc.c: use G_OS_WIN32 and G_HAVE_CYGWIN #defines
24191 Mon Oct 4 16:16:53 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24193 * gtk/gtkrc.{bg,iso88591[345]}: add gtkrc files for some new charset
24194 encodings: iso-8859-13 (for Lithuanian), iso-8859-14 (used by celtic
24195 languages), iso-8859-15 (used in Estonia) and microsoft-cp1251 (used
24198 Sun Oct 3 18:13:44 1999 Owen Taylor <otaylor@redhat.com>
24200 * gtk/gtkwidget.c (gtk_reset_shapes_recurse):
24201 Fix a reference to window_private->destroyed.
24203 * gtk/gtkplug.c (gtk_plug_realize): Fix up a direct
24204 (ugly) setting of an internal GdkWindow member to use
24205 a _slightly_ cleaner macro.
24207 * gdk/gdkprivate.h: Split GdkWindowPrivate into
24208 GdkDrawablePrivate and GdkWindowPrivate.
24209 Add extra macros for accessing GDK_DRAWABLE_ components.
24211 * *.[ch]: Massive adjustments for the above, use the
24212 new macros in a lot of places.
24214 Sun Oct 3 15:16:24 1999 Owen Taylor <otaylor@redhat.com>
24216 * gdk/gdktypes.h: Make GdkDrawable the base type,
24219 Sun Oct 3 15:08:44 1999 Owen Taylor <otaylor@redhat.com>
24221 * gdk/gdkdraw.c (gdk_drawable_get_data): Added new function.
24223 Sun Oct 3 14:26:15 1999 Owen Taylor <otaylor@redhat.com>
24225 * gdk/gxid* gdk/x11/gxid*: Move files into x11 subdirectory.
24227 Sun Oct 3 14:16:23 1999 Owen Taylor <otaylor@redhat.com>
24229 * gdk/gdkdrawable.h: Include gdk/gdkdrawable.h with
24230 gdk/ prefix. (Pointed out by chak@is.tsukuba.ac.jp)
24232 * configure.in gdk/Makefile.am x11/: create x-specific subdirectory.
24234 * docs/gtk-config.1: Now autogenerated.
24235 * docs/Changes-1.4.txt: started
24237 1999-10-03 Tor Lillqvist <tml@iki.fi>
24239 * gdk/gdkimage.h gdk/gdkpixmap.h: Change GDK_WINDOWING_WIN32 usage
24240 to #ifdef also here.
24242 * gdk/win32/*.h gdk/win32/*.c: Make corresponding changes as those
24243 Owen did to the X11 backend.
24245 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Fix it again, don't use
24246 ScrollWindowEx when blitting inside a window, it can't be correct
24247 in the general case.
24249 * gdk/win32/gdkevents.c: Don't handle WM_SIZING, handling
24250 WM_GETMINMAXINFO is easier.
24252 * gdk/win32/gdkimage.c (gdk_image_new): Create new image with
24253 depth equal to the bitspixel value, not the visual's depth.
24255 * gdk/win32/gdkvisual.c (gdk_visual_init): Set the visual's depth
24256 to 24 even if the bitspixel value is 32.
24258 * gdk/gdkrgb.c (gdk_rgb_select_conv): After the above change, no
24259 need to check for depth==32 when bpp==32, depth will always be 24.
24261 Fri Oct 1 18:03:36 1999 Owen Taylor <otaylor@redhat.com>
24263 * docs/Changes-1.4.txt: Started
24265 * gtk/Makefile.am (gdk_headers): Include all the new headers.
24267 * gdk/*.h gdk/*.c: Split gdk.h into lots of itty-bitty little pieces.
24269 * gdk/gdkprivate.h gdk/gdkcc.c: Moved GdkColorContext private
24272 * gdkinput.h gdkinputprivate.h - renamed the internal gdkinput
24273 header to gdkinputprivate.h.
24275 * gdk/gdk.h gdk/gdk.c: Removed gdk_time* functions which have been
24276 unused since before 1.2.
24278 1999-09-30 Tor Lillqvist <tml@iki.fi>
24280 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): On Win32,
24281 expand possible hex escapes in the font family (put there by
24282 logfont_to_xlfd if the font name isn't a legal XLFD font family,
24283 mainly if it contains slashes). (gtk_font_selection_create_xlfd):
24284 On Win32, add hex escapes here, too.
24286 Wed Sep 29 19:55:35 1999 Owen Taylor <otaylor@redhat.com>
24288 * */*.[ch]: Changed from #if GDK_WINDOWING == GDK_WINDOWING_X11
24289 to #ifdef GDK_WINDOWING_X11.
24291 [ Merges from gtk-1-2 ]
24293 Wed Sep 8 07:13:29 1999 Tim Janik <timj@gtk.org>
24295 * configure.in: fixed "GNU Make" check to pass with new make version
24298 Fri Sep 3 16:04:41 1999 Tim Janik <timj@gtk.org>
24300 * gtk-config.in (--version): don't echo @GTK_VERSION@, but
24301 @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@.@GTK_MICRO_VERSION@, so the
24302 AM_PATH_GTK() macros don't get confused by the -pre1.
24304 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
24306 * configure.in (REBUILD): Change check for perl5
24307 to check explicitely for v >= 5.002. (5.001
24308 does not work with our scripts.)
24310 Wed Aug 25 15:45:46 1999 Tim Janik <timj@gtk.org>
24312 * configure.in: evaluate $PERL for the perl version check. added
24313 --disable-rebuilds to give the user an option to completely disable
24314 any source autogeneration rules.
24316 Mon Aug 23 23:16:14 1999 Tim Janik <timj@gtk.org>
24318 * configure.in: evaluate $ac_make when checking for GNU Make.
24320 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
24322 * docs/Makefile.am: added generation.txt.
24324 * Makefile.am: require automake 1.4, build README from README.in and
24325 INSTALL from INSTALL.in in dist-hook.
24328 * INSTALL.in: new files to autogenerate README and INSTALL from.
24330 * configure.in: figure whether we have GNU Make
24332 * docs/generation.txt: minor additions/corrections.
24334 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
24336 * docs/gtkfaq.sgml: FAQ Update
24338 July 30, 1999 Elliot Lee <sopwith@redhat.com>
24340 * configure.in: Fix autoconf warnings about cross compilation by
24341 trying to provide sane defaults for AC_TRY_RUN.
24343 Fri Jul 16 22:20:21 PDT 1999 Manish Singh <yosh@gimp.org>
24346 * ltmain.sh: upgrade to libtool 1.3.3
24348 Thu Jul 8 11:30:18 1999 Owen Taylor <otaylor@redhat.com>
24350 * INSTALL: Indicate that the --with-glib= configure
24351 time flag is unsupported.
24353 Mon Jul 5 20:36:03 1999 Owen Taylor <otaylor@redhat.com>
24355 * docs/generation.txt: Added a file that gives
24356 documenation about the autogeneration process for
24357 various autogenerated files.
24359 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
24361 * configure.in (LIBS): Look for libgmodule in the
24364 Thu Jun 17 13:57:31 1999 Owen Taylor <otaylor@redhat.com>
24366 * docs/gtk_tut.sgml: Removed references to
24367 code examples in my directory on gtk.org as
24368 they should all be in the tutorial now.
24370 * docs/gtk_tut.sgml: Added sources for dial-test
24371 and scribble-xinput programs that were previously
24374 Fri Jun 4 00:08:59 1999 Owen Taylor <otaylor@redhat.com>
24376 * TODO: Added entry about menu keyboard navigation, removed
24377 some finished items.
24379 Mon May 31 00:11:24 1999 Owen Taylor <otaylor@redhat.com>
24381 * acinclude.m4: Standardize on func_dgettext
24382 not func_gettext, so that the checks for dgettext
24383 actually are paid attention to.
24385 Wed May 5 10:47:54 1999 Owen Taylor <otaylor@redhat.com>
24387 * configure.in (LIBS): Add $INTLLIBS into $LIBS
24388 directly, rather than repeating the checks for
24391 * INSTALL: Added information about gettext and
24394 * acinclude.m4 (LIBM): Check for dgettext, not
24395 just gettext. This should hopefully fix things wrt
24396 systems with old versions of GNU gettext installed.
24398 Tue Jun 29 15:59:25 1999 Owen Taylor <otaylor@redhat.com>
24400 * configure.in (LIBS): Look for libgmodule in the
24403 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24405 * autogen.sh: add --enable-maintainer-mode
24407 * configure.in: set ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
24409 Wed Mar 24 23:03:49 CST 1999 Shawn T. Amundson <amundson@gtk.org>
24411 * docs/gtk-config.1.in:
24413 configure.in: gtk-config is now generated.
24415 * docs/gtk-config.1: Removed, now generated.
24417 Thu Sep 23 17:59:59 1999 Tim Janik <timj@gtk.org>
24419 * gdk/gdkevents.c (gdk_event_translate): grr, even if Gdk doesn't
24420 handle CreateNotify itself, still put out a debuging message for
24421 --gdk-debug=events. made the ReparentNotify debugging message more
24423 wrap xcoords translation for ConfigureEvents into an error trap,
24424 a destroy event may already be pending, and in that case, the
24425 actuall coordinate values are not at all critical.
24427 Sat Sep 18 22:24:15 1999 Owen Taylor <otaylor@redhat.com>
24429 * gdk/gdkcc.c: Stop leaking the color_hash all over
24430 the place. Simplify and improve the logic.
24432 Fri Sep 17 09:57:15 1999 Tim Janik <timj@gtk.org>
24434 * gdk/gdk.h, gdk/gdkcolor.c: make return types (gint or gboolean)
24435 for prototypes and function implementations consistent (reported
24438 Tue Sep 14 18:23:01 1999 Tim Janik <timj@gtk.org>
24440 * gdk/gdkevents.c (gdk_event_translate): tell if expose events have
24441 send_event set in debugging output.
24442 (gdk_compress_exposures): default initialize the event so we don't
24443 operate on bogus values (namely send_event).
24445 Thu Sep 2 16:33:59 1999 Owen Taylor <otaylor@redhat.com>
24447 * gdk/gdkwindow.c: When we receive an unexpected
24448 destroy notify on one of our windows, don't just
24449 warn about it, also mark our windows as destroyed.
24451 Sun Sep 5 08:10:53 1999 Owen Taylor <otaylor@redhat.com>
24453 * gdk/gdkfont.c (gdk_font_hash_insert): Add
24454 name => font and name => fontset hashes. The
24455 name => fontset hash is a _big_ win since we
24456 weren't previously caching fontsets at all and loading
24457 fontsets is expensive. The name => font hash
24458 is less of a win, but it does save us from doing
24459 repeated XQueryFont calls on the same font.
24461 * gdk/gdkprivate.h (struct _GdkFontPrivate): Add a names
24462 list so we can remove font/fontset from hash.
24464 Thu Sep 2 19:02:37 1999 Owen Taylor <otaylor@redhat.com>
24466 * gdk/gdkproperty.c (gdk_atom_intern): Remove useless
24467 and slightly confusing test. [ XInternAtom (,,TRUE)
24468 will never return None ].
24470 Sat Sep 4 08:39:26 1999 Owen Taylor <otaylor@redhat.com>
24472 * gdk/gdkwindow.c (gdk_window_set_geometry_hints)
24473 gdk/gdkwindow.c (gdk_window_set_hints):
24475 Don't omit setting the properties if flags == 0 -
24476 there may be an existing set of properties there
24477 already. (Very old bug. Would it be better to
24478 delete the property instead?)
24480 * gdk/gdkselection.c (gdk_selection_property_get): Fix
24481 spelling error in comment.
24483 Wed Sep 1 14:05:30 1999 Owen Taylor <otaylor@redhat.com>
24485 * gdk/gdkimage.c (gdk_image_new): Use gdk_error_trap_push()
24486 to avoid stomping over gdk_error_warnings.
24488 * gdk/gdkimage.c (gdk_image_new): compute image->bpp
24489 as (bits_per_pixel + 7) / 8. This gives the same
24490 result as before for multiples of 8, but actually
24491 a "reasonable" value for 1bit or 4bit displays.
24493 Mon Aug 23 19:11:17 1999 Tim Janik <timj@gtk.org>
24495 * gdk/Makefile.am: minor cleanups, strip spaces on build rules for
24498 Tue Aug 17 07:43:04 1999 Tim Janik <timj@gtk.org>
24500 * gdk/gdkevents.c (gdk_event_translate): give a debugging note when
24501 discarding configure events.
24503 1999-08-18 Federico Mena Quintero <federico@redhat.com>
24505 * gdk/gdkpixmap.c (gdk_pixmap_unref): g_return_if_fail() the
24506 refcount is greater than zero.
24508 * gdk/gdkwindow.c (gdk_window_unref): Likewise.
24510 * gdk/gdkfont.c (gdk_font_unref): Likewise.
24512 * gdk/gdkgc.c (gdk_gc_unref): Likewise.
24514 * gdk/gdkdnd.c (gdk_drag_context_unref): Likewise.
24516 Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com>
24518 * gdk/gdkproperty.c (gdk_property_get): Fix assumption
24519 that format 32 => sizeof(item) == 4. It really is
24522 Tue Jun 29 23:02:42 1999 Owen Taylor <otaylor@redhat.com>
24524 * gdk/gdk.c (gdk_x_error / gdk_x_io_error): Don't
24525 core dump at all on X IO errors, only core dump
24526 if --enable-debug for X errors.
24528 Thu Jun 24 17:06:23 1999 Tim Janik <timj@gtk.org>
24530 * gdk/gdkevents.c (gdk_event_translate): removed old ""Got event for
24531 unknown window:" message. disabled ConfigureNotify discarding code,
24532 because it led to events being processed out of order.
24534 Thu Jun 24 12:22:02 1999 Tim Janik <timj@gtk.org>
24536 * gdk/gdkglobals.c: preinitialize gdk_error_code to 0.
24538 * gdk/gdkevents.c (gdk_event_send_client_message_to_all_recurse): since
24539 we export this function, supress error warnings and don't reset the
24540 error code in the first half of this function.
24542 * gdk/gdk.c (gdk_x_error): set gdk_error_code to the actuall X error
24543 code (instead of just -1) so gdk_error_trap_pop() reveals something
24544 actually informative about the error that happened.
24547 don't rely on gdk_error_code being -1 if an error occoured, but just
24548 gdk_error_code != 0.
24550 Thu Jun 24 11:50:07 1999 Tim Janik <timj@gtk.org>
24552 * gdk/gdkevents.c (gdk_event_apply_filters): advance the filter list
24553 pointer *before* invoking the filter function, so we at least don't
24554 crash if a filter is removed that is currently executed. window filters
24555 *really* need to be made truely reentrant at some point.
24557 Mon Jun 14 11:10:15 1999 Tim Janik <timj@gtk.org>
24559 * gdk/gdkevents.c (gdk_event_translate): print the atom name in the
24560 PropertyNotify debug messages.
24562 Wed May 5 22:51:06 1999 Owen Taylor <otaylor@redhat.com>
24564 Patch from Sung-Hyun Nam <namsh@lgic.co.kr>
24566 * gdk/gdkim.c: Fix cut-and-paste errors for
24567 x/y and PreeditAttributes/StatusAttributes.
24569 Wed May 5 22:24:21 1999 Owen Taylor <otaylor@redhat.com>
24571 * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Change
24572 G_MAXINT to 2^16 to alleviate overflow problems in
24573 various window managers.
24575 Wed Apr 21 00:42:08 1999 Owen Taylor <otaylor@redhat.com>
24577 * gdk/gdkfont.c (gdk_text_measure): Fix the return value
24580 Wed May 5 12:42:01 1999 Owen Taylor <otaylor@redhat.com>
24582 * gdk/gdkwindow.c (gdk_window_set_geometry_hints):
24583 Initialize size_hints.x and size_hints.y because kwm
24584 brokenly pays attention to them.
24585 (Bug #1181 - Lars Heete <hel@admin.de>)
24587 Wed May 5 11:38:56 1999 Owen Taylor <otaylor@redhat.com>
24589 * gdk/gdkrgb.c (gdk_rgb_choose_visual): Free the
24590 return value of gdk_list_visuals().
24591 (Bug #1193 - Morten Welinder <terra@diku.dk>)
24593 Tue May 4 11:12:56 PDT 1999 Manish Singh <yosh@gimp.org>
24595 * gdk/gdkim.c (gdk_im_real_open): cast the return value of
24596 XSetIMValues to (void *) when comparing to NULL, to workaround
24597 the problem of some compilers barfing since older X headers don't
24598 have the prototype for it.
24600 Mon Apr 19 10:11:12 1999 Owen Taylor <otaylor@redhat.com>
24602 * gdk/gdkcolor.c (gdk_colormap_new): Fix memory leak
24603 for pseudocolor where colormap->colors was double
24606 * gdk/gdkcolor.c (gdk_colormap_alloc1): Store the
24607 color value in the hash table with the pixel filled
24608 in so when we do later hash table lookups, the color
24611 Sun May 2 15:29:45 PDT 1999 Manish Singh <yosh@gimp.org>
24613 * gdk/gdkdraw.c (gdk_draw_lines): check private->destroyed before
24616 Tue Apr 27 11:17:35 1999 Owen Taylor <otaylor@redhat.com>
24618 * gdk/gdkdnd.c (xdnd_set_{targets,actions}): Fix leak
24619 pointed out by Morten Welinder <terra@diku.dk>.
24621 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
24623 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24624 default filter from the list
24626 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
24628 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
24629 default filter from the list
24631 Fri Apr 16 20:41:43 PDT 1999 Manish Singh <yosh@gimp.org>
24633 * gdk/gdk.c: #include "gdkkeysyms.h" for gdk_XConvertCase #defines
24635 * gtk/gtkfontsel.c (gtk_font_selection_create_xlfd): use
24636 g_strdup_printf instead of calcing the length separately
24638 Tue Apr 13 02:49:33 1999 Owen Taylor <otaylor@redhat.com>
24640 * gdk/gdkwindow.c: removed some silly #ifdef HAVE_CONFIG
24641 that we don't do in many other places. (Fixing duplicate
24642 #include of config.h)
24644 * gdk/gdkevents.c: include gdkinput.h _after_ config.h.
24645 Otherwise, #ifndef XINPUT_NONE check in the latter
24646 doesn't work. (Bug #546)
24648 Sun Apr 11 14:38:03 1999 Tim Janik <timj@gtk.org>
24650 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): check for color
24651 "None" case insensitive.
24653 Tue Apr 6 16:38:51 1999 Owen Taylor <otaylor@redhat.com>
24655 * gdk/gdkselection.c:
24656 Add error traps so if the other end of the connection
24659 Tue Apr 6 12:24:21 1999 Owen Taylor <otaylor@redhat.com>
24661 * gdk/gdkdnd.c (gdk_drag_motion): Separate out the
24662 dest_xid field into two fields - one for the window
24663 to send in messages, one to indicate the last looked
24664 up window for caching purposes. This is needed, so
24665 that Leave messages get the correct window.
24667 Mon Apr 5 13:21:30 1999 Owen Taylor <otaylor@redhat.com>
24669 * gdk/gdkevents.c (gdk_event_check, gdk_event_prepare):
24670 Fix warning created by people mucking around
24671 with the gsource API.
24673 * gdk/gdkevents.c (gdk_io_invoke, gdk_input_add_full):
24674 Change mapping between GIOCondition and GdkInputCondition
24675 to match the way the Linux kernel does it. This should
24676 fix problems where closed pipes were no longer signalling
24677 GDK_INPUT_READ on systems with a native poll().
24679 Mon Apr 5 17:11:57 1999 Owen Taylor <otaylor@redhat.com>
24681 * gdk/gdkpixmap.c (_gdk_pixmap_create_from_xpm): Check
24682 explicitly for the string "None" - it is in the XPM
24683 spec and some servers treat unknown colors in odd ways
24684 (like asking the user!)
24686 Thu Apr 1 16:58:10 PST 1999 Manish Singh <yosh@gimp.org>
24688 * gdk/gdkevents.c: made "->" into a "." of previous change so
24691 Thu Apr 1 18:41:25 1999 Owen Taylor <otaylor@redhat.com>
24693 * gdk/gdkevents.c (gdk_compress_exposures): Set the
24694 window field of the event structure before calling
24697 1999-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
24699 * gdk/gdk.c (gdk_init_check): Use False as the last argument to
24700 XInternAtom() here. This is a particularly Old And Nasty(tm) bug.
24702 Mon Mar 29 17:31:52 1999 Owen Taylor <otaylor@redhat.com>
24704 * gdk/gdkim.c (gdk_mbstowcs): Free the value of the
24705 intermediate text property - prevents major memory
24706 leak when gdk_use_mb.
24707 gtk-d3august-990311-0: Bj|rn Augustsson <d3august@dtek.chalmers.se>
24709 Mon Mar 29 17:02:58 1999 Owen Taylor <otaylor@redhat.com>
24711 Patches from Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
24712 gtk-a-higuti-990322-[0-3]
24714 * gdk/gdkfont.c (gdk_text_extents_wc): Make work when
24715 sizeof(wchar_t) != sizeof (GdkWChar)
24717 * configure.in: Fix confusion between GTK_LOCALE_[C]FLAGS
24718 that was causing -DX_LOCALE not to work.
24720 * gtk/gtkrc.c (gtk_rc_init):
24721 X_LOCALE will never have LC_MESSAGES defined
24723 * gdk/gdk.c (gdk_init_check):
24724 Remove --xim-preedit and --xim-status from argv properly.
24726 * gdk/gdkim.c (gdk_ic_real_new): Add a gdk_flush() so
24727 that the client window is present on the X server
24728 before we pass it to the input method.
24730 Tue Mar 9 10:46:49 1999 Owen Taylor <otaylor@redhat.com>
24732 * gdk/gdkdnd.c (motif_find_drag_window): Fix bug where
24733 if --display is specified on the command line, than
24734 the drag window will not be created on that display.
24736 Tue Mar 9 10:38:24 1999 Owen Taylor <otaylor@redhat.com>
24738 * gdk/gdkproperty.c (gdk_atom_intern): Fixed bug where
24739 lookups with only_if_exists == TRUE were inserting
24740 bogus values into the atom cache.
24742 Wed Mar 17 09:00:00 1999 Tim Janik <timj@gtk.org>
24744 * gdk/gdkselection.c (gdk_selection_property_get): first XFree(t),
24745 then reset it to NULL.
24749 (gdk_colormap_free_colors): use colormap->colors[in_pixels[i]] as the
24750 key for g_hash_table_remove() in both functions, this prevents us
24751 from accessing possibly uninitialized portions of a GdkColor structure
24752 where we are only interested in its pixel value.
24754 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
24756 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
24757 font hash table, if we have a GdkFontPrivate entry for this font
24758 already, simply increment its reference count, provided by Olaf Dietsche
24759 <olaf.dietsche+list.gtk@netcologne.de>.
24761 1999-09-21 Tor Lillqvist <tml@iki.fi>
24763 * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
24766 * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
24767 unused variables, leftovers from the X11 version.
24769 * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
24771 * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
24772 downcase fields on X11.
24774 Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24776 * configure.in,po/pt_BR.po: added Portuguese Brazilian file from
24777 Alex Sandro Queiroz e Silva <asandro@lcg.dc.ufc.br>
24779 1999-09-17 Tor Lillqvist <tml@iki.fi>
24781 * gdk/win32/gdk.def: Add gdk_threads_mutex.
24783 * gtk/makefile.msc: Correct path to libintl.
24785 Thanks to Tomi Ollila and Bernd Herd: Fix some inconsistencies in
24786 use of gint vs. int, and gint vs. gboolean in headers and
24787 definitions. Use GtkType for the *_get_type functions. Note that
24788 these changes preserve binary compatibility.
24792 * gdk/gdk.h: Fix inconsistencies: gint vs int.
24796 * gtk/gtkmenufactory.c
24797 * gtk/gtknotebook.c
24798 * gtk/gtkwidget.c: Fix inconsistencies, also gint
24801 * gtk/gtkcolorsel.[ch]
24802 * gtk/gtkcombo.[ch]
24803 * gtk/gtkdrawingarea.[ch]
24804 * gtk/gtkgamma.[ch]
24805 * gtk/gtkhandlebox.[ch]
24806 * gtk/gtkhpaned.[ch]
24807 * gtk/gtkhruler.[ch]
24809 * gtk/gtkpreview.[ch]
24810 * gtk/gtkruler.[ch]
24811 * gtk/gtksocket.[ch]
24812 * gtk/gtkstatusbar.[ch]
24813 * gtk/gtktoolbar.[ch]
24814 * gtk/gtkvbbox.[ch]
24815 * gtk/gtkvpaned.[ch]
24816 * gtk/gtkvruler.[ch]: Always use type GtkType for the *_get_type
24819 * gtk/gtkgamma.h: Fix bug, missing () in call of
24820 gtk_gamma_curve_get_type() in GTK_GAMMA_CURVE_CLASS.
24822 1999-09-14 Tor Lillqvist <tml@iki.fi>
24824 * gdk/gdkcolor.c (gdk_colormap_new)
24825 * gdk/win32/gdkcolor.c (gdk_colormap_new): Fix memory leak:
24826 colormap->colors was allocated twice.
24828 * gdk/win32/gdk.c: Remove some unused stuff.
24830 * gdk/win32/gdkcolor.c (gdk_colormap_sync): Initialize all of the
24833 * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_type)
24834 * gtk/gtklabel.h (gtk_label_get_type)
24835 * gtk/gtktipsquery.c (gtk_tips_query_get_type)
24836 * gtk/gtktypeutils.h (gtk_type_name): : Use GtkType
24837 in a couple of places, not guint.
24839 Fri Sep 10 21:31:00 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24841 * configure.in,po/et.po: added Estonian language file
24843 Wed Sep 1 14:36:12 CEST 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
24845 * configure.in,po/da.po: added Danish file
24847 Sun Aug 29 13:38:59 BST 1999 Tony Gale <gale@gtk.org>
24849 * docs/gtkfaq.sgml: Minor FAQ Update
24851 Sat Aug 28 14:34:37 BST 1999 Tony Gale <gale@gtk.org>
24853 * docs/gtkfaq.sgml: FAQ update
24855 1999-08-27 Tor Lillqvist <tml@iki.fi>
24857 Win32: Philippe Colantoni <colanton@aris.ss.uci.edu> suggests a
24858 way to get window contents continually refreshed while resizing. I
24859 didn't like the effects myself, so it's not on by default.
24861 * gdk/win32/gdkprivate.h: New flag variable
24862 gdk_event_func_from_window_proc, FALSE by default.
24864 * gdk/win32/gdk.c (gdk_init_check): Set above flag if the
24865 environment variable GDK_EVENT_FUNC_FROM_WINDOW_PROC is set, or we
24866 are passed --gdk-event-func-from-window-proc.
24868 * gdk/win32/gdkevents.c (gdk_WindowProc): If above flag is set,
24869 and we have am event_func, call it instead of enqueing the event.
24871 1999-08-23 Tor Lillqvist <tml@iki.fi>
24873 * gdk/win32/gdkevents.c (gdk_event_translate): Fix from Simon
24874 Kelley: Set expose_count in GdkEventExposes correctly.
24876 * gdk/win32/gdkwindow.c: Remove dead code (#ifdef
24877 MULTIPLE_WINDOW_CLASSES).
24879 * gdk/win32/gdkdraw.c (gdk_draw_line): Workaround from Hans Breuer
24880 for bug in NT, apparently NT *does* draw the end pixel, too, in
24881 LineTo with a one-pixel pen, so we don't have to do it ourselves.
24883 1999-08-21 Tor Lillqvist <tml@iki.fi>
24885 Improvements by Hans Breuer:
24887 * gdk/win32/gdkwindow.c (RegisterGdkClass): New function
24889 * gdk/win32/gdkwindow.c (gdk_window_new): Use it. Don't set the
24890 CS_?REDRAW flags as they cause lots of (late) redraws when "show
24891 window contents while dragging" is turned on. Allocate at least
24892 one unique class for every GdkWindowType. If support for single
24893 window-specific icons is ever needed (eg. Dialog specific), every
24894 such window should get its own class.
24896 1999-08-19 Tor Lillqvist <tml@iki.fi>
24898 * gdk/win32/gdkgc.c (gdk_gc_new_with_values): Fix a cut&paste
24899 error that caused crashes.
24901 1999-08-17 Tor Lillqvist <tml@iki.fi>
24903 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): When blitting inside one
24904 window, use ScrollWindowEx, and call UpdateWindow. This prevents
24905 bugs when for instance part of the window was outside the
24906 display. Thanks to Philippe Colantoni for finding and fixing this.
24908 1999-08-16 Tor Lillqvist <tml@iki.fi>
24910 * gdk/win32/gdkdraw.c (gdk_draw_arc): Fix start and end radial
24911 endpoint calculations which were totally wrong. (A little RTFMing
24914 * gtk/makefile.{cygwin,msc}: Use libintl extracted from glibc
24915 from a separate directory, not from gettext, because of licensing
24916 issues (we want to use the LGPL version).
24918 * README.win32: Mention the intl from glibc vs from gettext issue.
24920 1999-08-13 Tor Lillqvist <tml@iki.fi>
24922 * gdk/win32/gdkevents.c (gdk_event_translate): Fix a couple of bugs
24923 in the key event handling: Now AltGr chars work again. Also,
24924 now Alt-digits are passed up as well as Control-digits.
24925 Pass keypad plus and minus as normal plus and minus.
24927 Wed Aug 11 13:38:26 BST 1999 Tony Gale <gale@gtk.org>
24929 * docs/gtkfaq.sgml: FAQ Update
24931 1999-07-25 Tor Lillqvist <tml@iki.fi>
24934 * config.h.win32: Add HAVE_WINTAB. Undefine it if bulding without
24937 * gdk/win32/gdkinput.c: Hack some more. Still doesn't quite work
24938 OK, but getting closer. Guard against bogus tilt data from Wacom
24939 ArtPad II with the 3.40 driver. Add ifdefs for HAVE_WINTAB to
24940 enable easier building without Wintab.
24942 * gdk/win32/gdkinput.h
24943 * gdk/win32/gdkevents.c
24944 * gdk/win32/gdkwindow.c: Minor changes related related to above.
24946 * gdk/win32/gdkvisual.c: Simplify a lot, remove leftovers from X11
24947 code. As we have just one visual on Win32, no sense to have it in a
24948 table, and no need for the hash table.
24950 * gdk/win32/rc/cursor*.cur: Edit some of the cursors a bit to look
24951 better on white background.
24953 1999-07-21 Tor Lillqvist <tml@iki.fi>
24955 * README.win32: Update gcc build instructions. Mention gettext is
24958 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct
24959 supported cursor size with GetSystemMetrics.
24961 * gdk/win32/gdkfont.c
24962 * gtk/gtkfontsel.c: Guard against some font weight and charset
24963 symbols being undefined (in mingw32 headers).
24965 * gdk/win32/makefile.cygwin
24966 * gtk/makefile.cygwin
24967 * gtk/gtkthemes.c: No longer need to have differently named
24968 gcc-built DLLs when using gcc-2.95 and -fnative-struct.
24970 hu Jul 15 13:33:15 BST 1999 Tony Gale <gale@gtk.org>
24972 * docs/gtkfaq.sgml: Long awaited FAQ update.
24974 1999-07-15 Tor Lillqvist <tml@iki.fi>
24976 * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Implement
24977 it. Obscure bit manipulation needed.
24979 * gdk/win32/gdkevents.c: Logging.
24981 * gtk/gtkthemes.c (gtk_theme_engine_get): (Win32) Use new DLL naming
24982 style (file name include compiler name) for theme engines.
24984 1999-07-13 Tor Lillqvist <tml@iki.fi>
24986 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Less logging verbiage.
24988 * gdk/win32/gdkevents.c: Fix long-standing bug in key
24989 events. The key.string wasn't zero-terminated, still we strdup'ed
24990 it in gdk_event_copy(). Synthesize crossing events for button
24991 events before possible propagation.
24993 * gdk/win32/gdkwindow.c: Log gdk_window_set_title.
24995 * gdk/win32/makefile.cygwin
24996 * gtk/makefile.cygwin: Use new DLL naming style for the
24999 * gdk/win32/makefile.msc
25000 * gtk/makefile.msc: Cosmetics mostly.
25002 * gtk/gtk.def: Add missing entry points.
25004 * gtk/gtksocket.c: Add dummy gtk_socket_get_type() for Win32.
25006 1999-07-09 Tor Lillqvist <tml@iki.fi>
25008 * gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width
25009 or height is zero. Don't print a warning if Pie or Arc fails, they
25010 always fail (?) for very narrow ellipses.
25012 * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for
25013 the part or the destination window corresponding to source area
25014 outside of the source drawable's boundary.
25016 * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do
25017 anything if less than two points.
25019 * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always
25020 return NULL. Gtk cut-and-paste inside a single program works
25021 better this way. (It always gets the clipboard contents from
25022 Windows, not from its own copy, which is cleared anyway. I can't
25023 say I fully understand what happens... Emulating the X selection
25024 and property stuff is a bit of a mess.)
25026 * gdk/win32/gdkevents.c
25027 * gdk/win32/gdkproperty.c: A bit more verbose logging.
25029 * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions
25030 that never got deleted). Revamp gdk_region_shrink.
25032 * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions
25035 * gtk/gtk.def: Add some missing entry points.
25037 * gtk/gtkrc.c: Strip trailing directory separator from pixmap path
25040 1999-07-04 Tor Lillqvist <tml@iki.fi>
25042 * gdk/win32/gdkevents.c (gdk_event_translate): Handle
25043 Control-digits specially.
25045 1999-07-03 Tor Lillqvist <tml@iki.fi>
25047 * gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
25049 1999-06-28 Tor Lillqvist <tml@iki.fi>
25051 * gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
25052 bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
25055 1999-06-01 Jose H Mercado <jmercado@mit.edu>
25057 * gtk+.spec.in: Corrected some typos in files section.
25059 1999-06-15 Tor Lillqvist <tml@iki.fi>
25061 * README.win32: Mention using GNU gettext.
25062 * config.h.win32: Enable NLS stuff.
25063 * gtk/makefile.msc: Use GNU gettext.
25064 * gdk/win32/gdkdnd.c: Minor header reorg.
25065 * gdk/win32/{gdkevents,gdkwindow}.c: No semantic changes, mainly
25067 * gtk/gtkrc.c (Win32): Make get_gtk_sysconf_directory() public.
25068 * gtk/gtkmain.c (Win32): Use it in bindtextdomain() call.
25070 Wed Jun 2 11:44:25 PDT 1999 Manish Singh <yosh@gimp.org>
25076 * ltmain.sh: upgrade to libtool 1.3.2 (BeOS changes merged)
25078 1999-05-30 Tor Lillqvist <tml@iki.fi>
25080 * gdk/win32/gdkwindow.c: AdjustWindowRectEx2 renamed to
25081 SafeAdjustWindowRectEx. Don't override all calls to
25082 AdjustWindowRectEx by it, but use it only in two places: When
25083 creating a new top-level window and when moving a top-level
25086 Use screen coordinate rectangle, not client rectangle, in
25087 gdk_window_move. Thus SafeAdjustWindowRectEx will do its job only
25088 when we try to place a window so that the decoration (mainly,
25089 title bar) isn't visible.
25091 These changes fix the bug that showed up for instance as the
25092 GIMP's saved top-level windows moving right and down (by an amount
25093 equal to the window decoration) for each session. This bug showed
25094 up also in testgtk's "Saved Position".
25096 gdk_window_resize also redone a bit.
25098 1999-05-25 Tor Lillqvist <tml@iki.fi>
25100 * gtk/testgtkrc: Add (commented out) Windows-style theme
25103 * gdk/win32/gdk.def,gtk/gtk.def: Add some missing entry points.
25105 1999-05-18 Tor Lillqvist <tml@iki.fi>
25107 * gdk/win32/makefile.{cygwin,msc}: Copy our gdkprivate.h and
25108 gdkx.h to a gdk subdirectory, so that applications can include
25109 these with <gdk/*.h> without trouble.
25111 * gdk/win32/gdkimage.c (gdk_image_new_with_depth): Code simplified.
25112 (gdk_image_destroy): Plug resource leak, some GdkImages didn't
25113 have their bitmap destroyed.
25115 * gdk/win32/gdk.def: Add gdk_root_parent.
25117 Wed May 12 03:00:56 CDT 1999 Shawn T. Amundson <amundson@gtk.org>
25123 gtk/Makefile.am: changes to compile nicely (with xlib)
25126 Sat May 1 15:04:42 PDT 1999 Manish Singh <yosh@gimp.org>
25132 * ltmain.sh: upgrade to libtool 1.3
25134 Fri Apr 30 13:38:16 1999 Lars Hamann <lars@gtk.org>
25137 * gtk/gtkctree.c: merges from gtk-1-2
25139 1999-04-25 Tor Lillqvist <tml@iki.fi>
25141 Support added for building using a GNU toolchain on Win32,
25142 gcc -mno-cygwin (egcs-1.1.2) on cygwin-b20.1.
25144 * gdk/win32/makefile.cygwin gtk/makefile.cygwin: New files.
25145 * config.h.win32: Changes for gcc.
25146 * gdk/gdkrectangle.c: Include gdk.h as <gdk/gdk.h>.
25147 * gdk/gdkcolor.c: config.h.win32 already defines strcasecmp.
25148 * gdk/win32/gdkconfig.h: Only the MS compiler has wctype.h.
25149 * gdk/win32/gdkdnd.c: Protect (unused) OLE2 stuff better.
25150 Protect shl stuff unavaiilable with mingw32 headers.
25151 * gdk/win32/gdkevents.c: Fix typo.
25152 * gdk/win32/gdkglobals.c: Use GDKVAR here also for gcc.
25153 * gdk/win32/gdkim.c: Use OEM code page for multibyte chars. (?)
25154 * gdk/win32/gdkinput.c: Use __try __except only with the MS compiler.
25155 * gdk/win32/gdkprivate.h: Make up for some stuff missing from
25156 the mingw32 headers.
25157 * gdk/win32/makefile.msc: Use latest Wintab kit and glib.
25158 * gtk/gtkfilesel.c: Include <glib.h> early, to get stat->_stat
25159 definition on Win32. Test for NATIVE_WIN32, not _MSC_VER.
25160 * gtk/gtkfontsel.c: Protect CHARSET redefinition on Win32.
25161 Test for NATIVE_WIN32, not _MSC_VER.
25162 * gtk/gtkmain.c: No use warning about developer version on Win32,
25163 there aren't any non-developer versions anyhow.
25164 * gtk/gtkrc.c: Test for NATIVE_WIN32, not _MSC_VER.
25165 * gtk/makefile.msc: Use pthread from another directory. Minor other
25168 Wed Apr 21 14:20:22 1999 George Lebl <jirka@5z.com>
25170 * gdk/gdkwindow.c: (gdk_window_remove_filter) correctly remove the
25171 default filter from the list
25173 Mon Mar 8 12:52:53 1999 Owen Taylor <otaylor@redhat.com>
25175 * gtk/gtkwidget.c (gtk_widget_grab_default): Add a warning
25176 when gtk_widget_grab_default() is called for a widget that
25177 is not within a GtkWindow.
25179 Sat Apr 10 13:52:54 BST 1999 Tony Gale <gale@gtk.org>
25181 * docs/gtk_tut.sgml, examples/clist.c: use a
25182 scrolled window in the clist example. Minor
25185 Fri Apr 2 09:19:20 BST 1999 Tony Gale <gale@gtk.org>
25187 * docs/gtk_tut.sgml: Style check from David King
25188 <dking@youvegotmail.net>
25190 1999-03-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
25192 * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code
25193 compile with unknown value of GDK_WINDOWING
25195 1999-03-28 Raja R Harinath <harinath@cs.umn.edu>
25197 * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists
25198 after the rule is fired.
25199 (install-exec-local): Install gdkconfig.h only if the contents are
25200 different from the currently installed gdkconfig.h.
25202 1999-03-26 Raja R Harinath <harinath@cs.umn.edu>
25204 * gdk/Makefile.am (configexecincludedir): Rename from
25205 configincludedir so that gdkconfig.h will be installed
25206 as part of `make install-exec'.
25208 Fri Mar 19 16:50:33 PST 1999 Manish Singh <yosh@gimp.org>
25214 * ltmain.sh: upgrade to libtool 1.2f
25216 * autogen.sh: libtool is not required to autogen gtk+
25218 * acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly
25221 1999-03-18 Tor Lillqvist <tml@iki.fi>
25223 * gdk/gdktypes.h: Merge in Win32 version: Define macro GDKVAR for
25224 declaring gdk variables exported/imported from the DLL. New image
25225 type enum, GDK_IMAGE_SHARED_PIXMAP, for gdk_imlib. New drag and
25226 drop protocol enums, GDK_DRAG_PROTO_WIN32_DROPFILES and
25227 GDK_DRAG_PROTO_OLE2.
25229 * gdk/gdk.h: Merge in Win32 version: Two new functions,
25230 gdk_pixmap_create_on_shared_image and gdk_image_bitmap_new. So far
25231 declared only for the Win32 version, but could be in the X11
25232 version as well. (Needed for a Xlib-less gdk_imlib.)
25233 gdk_color_hash should have only one parameter. Declare
25234 gdk_threads_mutex with GDKVAR.
25236 * gdk/gdkcolor.c (gdk_color_hash): A hash function should have
25237 just one parameter.
25239 * gdk/gdkimage.c (gdk_image_get): Initialize bpp correctly. Bytes
25240 per pixel, not bits.
25242 * gdk/gdkrgb.c: Mingle includes somewhat. (gdk_rgb_select_conv):
25243 Fetch bpp (which means bits-per-pixel here) from another place on
25244 Win32. Accept also depth==32 (which we might get on Win32) with
25247 * gtk/{gtkclist,gtkctree,gtkdnd,gtkditable,gtkfontsel,
25248 gtkhandlebox,gtklayout,gtkmain,gtkplug,gtkpreview,gtkrc,
25249 gtkselection,gtksocket,gtkstyle,gtkwidget,gtkwindow}.c:
25250 Include gdx.h from "gdkx.h", not "gdk/gdkx.h", as gdkx.h will be
25251 in the backend-dependent directory, not in the common gdk
25254 * gtk/testgtk.c: Ditto. Also, don't use ../gdk path to gdk
25257 Wed Mar 17 05:06:49 1999 Tim Janik <timj@gtk.org>
25259 * gtk/gtkmain.c (gtk_init_check): tell people that they don't really
25260 want to use the Gtk+ devel version (which is true, and yes - even i am
25261 currently working with the 1.2.x branch). so everyone reading this, you
25262 probably want to issue
25263 cvs checkout -r glib-1-2 glib
25265 cvs checkout -r gtk-1-2 gtk+
25266 as your next two comands.
25268 Wed Mar 17 02:49:32 1999 Tim Janik <timj@gtk.org>
25270 * configure.in: build gtkcompat.h from gtkcompat.h.in instead of
25271 gtkfeatures.h from gtkfeatures.h.in, require GLib 1.3.0.
25273 * gtk/gtkcompat.h.in: combined gtkcompat.h and gtkfeatures.in in this
25274 file. strongly deprecated the GTK_HAVE_* macros, we provide
25275 GTK_CHECK_VERSION() for people that need to check for certain
25278 * gtk/gtkcompat.h: removed this from CVS.
25279 * gtk/gtkfeatures.h.in: removed this from CVS, gtkfeatures.h was a bad
25280 idea right from the start, it just didn't seem like that back then.
25282 Wed Mar 17 01:46:28 1999 Tim Janik <timj@gtk.org>
25284 * merges from gtk-1-2:
25286 Tue Mar 16 17:43:33 1999 Tim Janik <timj@gtk.org>
25288 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_string): ensure the
25289 item factory class has been created.
25290 (gtk_item_factory_parse_rc): likewise.
25293 keep proper references for old_active_menu_item.
25294 (gtk_menu_reparent): unset the usize of the new parent,
25295 so the menu can sanely be size requested and we don't get nasty screen
25296 artefacts upon next reparentation.
25297 (gtk_menu_motion_notify): set send_event to TRUE if we synthesize an
25298 enter notify. only synthesize enter notifies if the pointer really is
25299 inside the event window.
25300 (gtk_menu_popdown): use gtk_menu_shell_deselect().
25301 (gtk_menu_popup): move the background setting stuff into
25302 gtk_menu_tearoff_bg_copy() so it can be called from other places as well.
25304 * gtk/gtkmenushell.c (gtk_menu_shell_button_press): use
25305 gtk_menu_shell_select_item() to select the new item.
25306 (gtk_menu_shell_deselect): export this function, so gtkmenu.c can
25307 do the right thing for deselection as well.
25309 Sat Mar 15 20:10:33 1999 Tim Janik <timj@gtk.org>
25311 * gtk/gtkwidget.[hc]:
25312 (gtk_widget_accelerators_locked): return whether a widget's accelerators
25315 * gtk/gtkmenu.c (gtk_menu_key_press): don't remove or install new or
25316 existing accelerators if the widget's accelerators are locked.
25318 Sat Mar 14 19:44:05 1999 Tim Janik <timj@gtk.org>
25320 * gtk/gtkitemfactory.[hc]: allow managing of foreign menu items.
25322 * gtk/gtkmenu.c: truely forward key press and key release events to
25323 the menu widget from the toplevel or tearoff window. we can't simply
25324 connect to that, we need to stop further processing of the events as
25327 Sat Mar 13 13:14:17 1999 Tim Janik <timj@gtk.org>
25330 (gtk_menu_key_press): pass event->keyval, event->state to
25331 gtk_accelerator_valid, instead of event->keyval twice.
25332 refuse to install single letter accelerators for menus that use
25333 single letter shortcuts.
25335 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): use
25336 gtk_menu_ensure_uline_accel_group().
25338 * gtk/gtkmenu.[hc]: added gtk_menu_ensure_uline_accel_group()
25339 which will always return an uline accel group, made
25340 gtk_menu_get_uline_accel_group() return NULL if the group isn't
25343 Mon Mar 15 01:03:27 1999 Lars Hamann <lars@gtk.org>
25345 * gtk/gtkclist.h (struct _GtkCListColumn): added button_passive flag.
25347 * gtk/gtkclist.c (gtk_clist_column_title_passive):
25348 Leave button sensitive, trap button_press, button_release,
25349 motion_notify, enter_notify and leave_notify events instead.
25350 (gtk_clist_column_title_active): disconnect event handler.
25351 (gtk_clist_drag_data_get): fixed memory leak. Reported by
25352 Guillaume Laurent <glaurent@worldnet.fr>
25354 Wed Mar 10 23:49:55 1999 Lars Hamann <lars@gtk.org>
25356 * gtk/gtklayout.c (gtk_layout_adjustment_changed): fixed a few
25357 width/height mixups.
25359 * gtk/gtkctree.c (tree_delete): emit an tree_unselect_row signal
25362 Wed Mar 10 00:11:32 1999 Tim Janik <timj@gtk.org>
25364 * gtk/testgtk.c (create_item_factory): unref the item factory after
25365 window's destruction.
25367 * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): keep a reference
25368 count on the menu shell around the menu item's activation, since the
25369 signal emission may cause menu shell destruction.
25371 * gtk/gtkitemfactory.c:
25372 the previous code leaked one accel group per menu. we use
25373 gtk_menu_get_uline_accel_group() now to fix that, and with that
25374 also create the underline accelerator group of the menus only if
25375 required (i.e. an underline accelerator has been specified).
25376 (gtk_item_factory_construct):
25377 (gtk_item_factory_create_item): removed code that would create an
25378 extra accel group for the menu (and leak references).
25379 (gtk_item_factory_create_item): adapted the underline accelerator
25380 installation code to properly feature gtk_menu_get_uline_accel_group().
25382 * gtk/gtkmenu.[hc]: added gtk_menu_get_accel_group() to retrive
25383 menu->accel_group, this may return NULL if the accelerator group
25384 hasn't been set yet.
25385 added gtk_menu_get_uline_accel_group() to retrive the underline
25386 accelerator group of the menu, this will be created on demand
25387 and proper care is taken about its reference count.
25389 * gtk/gtkitemfactory.h:
25390 * gtk/gtkitemfactory.c:
25391 dumped the approach of keeping a widgets by action list on the
25392 factory since the factory<->widget destroy negotiation didn't work
25393 and would be hard to get going at all. instead we keep a list of
25394 GtkItemFactoryItem items on the factory (GtkItemFactoryItems are
25395 persistant throughout a program's life time).
25396 also, i removed the static const gchar *key_* variables, and made
25397 them inline strings (they weren't actually used anyways).
25398 (gtk_item_factory_add_item): update ifactory->items.
25399 (gtk_item_factory_destroy): destroy ifactory->items (and remove
25400 the item factory pointer from the remaining ifactory widgets).
25401 (gtk_item_factory_get_widget_by_action): walk the GtkItemFactoryItem
25402 list to find the widget.
25403 (gtk_item_factory_get_item): new function that works around
25404 gtk_item_factory_get_widget() limitations, this function will only
25405 return menu items, even for <Branch> entries.
25407 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
25409 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25410 font hash table, if we have a GdkFontPrivate entry for this font
25411 already, simply increment its reference count, provided by Olaf Dietsche
25412 <olaf.dietsche+list.gtk@netcologne.de>.
25414 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25415 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25417 Sun Mar 7 06:13:29 1999 Tim Janik <timj@gtk.org>
25419 * gtk/gtkcontainer.c:
25420 (gtk_container_add_with_args):
25421 (gtk_container_addv):
25422 (gtk_container_add): before adding a child to a conatiner, make sure
25423 it is (default) constructed, this is neccessary because under certain
25424 circumstances the child will get relized and mapped immediatedly, in
25425 which case it has to be constructed already.
25427 Mon Mar 1 17:58:21 1999 Tim Janik <timj@gtk.org>
25429 * gtk/gtksignal.c (gtk_signal_connect_by_type): count object_signal
25430 values > 1 as TRUE also.
25432 1999-03-16 Tor Lillqvist <tml@iki.fi>
25434 * README.win32: New file.
25436 * configure.in: Check for lstat.
25438 * config.h.win32: Add non-definition of HAVE_LSTAT, just for
25441 * gtk/gtkrc.c: If don't HAVE_LSTAT, use stat.
25443 * gtk/gtk.def: Removed CRs.
25445 * gtk/makefile.msc: Correct include path to Win32 GDK version (in
25448 * gdk/win32/makefile.msc: Correct upwards relative paths.
25450 Mon Mar 15 03:38:34 1999 George Lebl <jirka@5z.com>
25452 * gtk/gtkdnd.c: (gtk_drag_highlight) swap the
25453 gtk_drag_highlight_expose and gtk_drag_highlight_paint since
25454 it was connecting a void function to expose_event and the int
25455 returning function to the draw signal
25457 1999-03-14 Jeff Garzik <jgarzik@pobox.com>
25460 Use correct path to libgmodule.la when ref'ing uninstalled copy
25461 of glib. (Already in stable branch, Bug #417)
25463 1999-03-15 Tor Lillqvist <tml@iki.fi>
25465 Win32 merge and general portability stuff:
25467 * acconfig.h,configure.in: Check for <sys/time.h>.
25469 * gdk/win32: New directory (actually, been there for a while).
25471 * gtk/fnmatch.c: Include <glib.h> for G_DIR_SEPARATOR, WIN32 and
25472 NATIVE_WIN32, and use these. Always case fold on Win32. No
25473 backslashed escapes on native Win32.
25475 * gtk/{gtk.def,makefile.msc}: New files.
25477 * gtk/Makefile.am: Add above new files.
25479 * gtk/{gtkaccelgroup,gtkbindings}.c: Include <string.h>
25480 instead of <strings.h>.
25482 * gtk/{gtkcalendar,gtkitemfactory,gtkpreview,gtkrc}.c: Include
25483 config.h. Protect inclusion of <sys/param.h>, <sys/time.h>, and
25484 <unistd.h> appropriately.
25486 * gtk/gtkdnd.c: Merge in Win32 version (which doesn't do much).
25487 Use ABS() (from <glib.h>) instead of abs().
25489 * gtk/gtkfilesel.c: Moved Win32-specific includes after inclusion
25490 of gtk (and thus glib) headers, so that WIN32 will be
25491 defined. With MS C, include <direct.h> for mkdir prototype.
25493 * gtk/gtkitemfactory.c (gtk_item_factory_callback_marshal): Add
25494 some casts, needed by MS C.
25496 * gtk/{gtklayout,gtkplug}.c: Merge in Win32 version (which isn't
25499 * gtk/gtkmain.c: Include gdk/gdkx.h for GDK_WINDOWING. Include
25500 <X11/Xlocale.h> only on X11 platform, otherwise <locale.h>. Use
25501 G_SEARCHPATH_SEPARATOR_S and g_module_build_path.
25503 * gtk/gtkmain.h: Mark variables for export/import on Win32.
25505 * gtk/gtkrange.c (gtk_range_motion_notify): Set mods also in case
25506 the event is not a hint, or its window is not the slider. Needed
25507 on Win32, at least.
25509 * gtk/gtkrc.c: Include config.h and gdk/gdkx.h. Use <locale.h>
25510 unless on X11. Skip \r chars, too. Use G_DIR_SEPARATOR and
25511 G_SEARCHPATH_SEPARATOR(_S). Use g_path_is_absolute. On Win32, use
25512 a subdirectory of the Windows directory as gtk system
25513 configuration directory.
25515 * gtk/gtkselection.c: No chunks on Win32.
25517 * gtk/gtksocket.c: Not implemented on Win32.
25519 * gtk/gtkthemes.c (gtk_theme_engine_get): Use g_module_build_path.
25521 * gtk/makeenums.h: Include gdkprivate.h after gdk.h.
25523 * gtk/maketypes.awk: Declare variables with a macro that expands to
25524 necessary export/import magic in the case of Win32.
25526 * gtk/testrgb.c: Use dynamically allocated buffer. Use GTimers.
25528 1999-03-13 Raja R Harinath <harinath@cs.umn.edu>
25530 * configure.in (gdk_wc): Move widechar tests from `glib' to here,
25531 since those were meant only for gdki18n.h.
25532 * gdk/gdki18n.h: Include gdkconfig.h and use GDK_* instead of G_*
25533 for widechar tests.
25534 * gtk/Makefile.am (INCLUDES): Add -I../gdk for gdkconfig.h.
25536 1999-03-13 Tor Lillqvist <tml@iki.fi>
25538 * configure.in acconfig.h: Check for dirent.h and pwd.h. Generate
25539 gdk/gdkconfig.h using similar mechanism as GLib's glibconfig.h.
25541 * gtk-config.in: Add @libdir/gtk+/include (where gdkconfig.h is
25542 installed) to CFLAGS.
25544 * gdk/Makefile.am: Add rules for gdkconfig.h.
25546 * gdk/gdktypes.h: Include gdkconfig.h. Define macros for windowing
25549 * gdk/gdkfontsel.c: Don't include Xlib.h, it gets included via
25550 gdkx.h anyway when compiling for X11.
25551 (gtk_font_selection_create_xlfd): Use g_strdup_printf. (In
25552 general): Merge in Win32 version.
25554 * gtk/gtkfilesel.c: Use g_get_current_dir(). Merge in Win32
25555 version: Use G_DIR_SEPARATOR, g_path_is_absolute, no tilde
25556 expansion (if we don't have HAVE_PWD_H), allow for drive
25557 letters. UNC paths (\\server\share\...) are not handled yet. Also,
25558 included code from Craig Setera's port to Win32 (the one that uses
25559 X11, and the cygwin dll), even if it probably will be abandoned.
25561 * gtk/gtkfilesel.c: Don't append a * to the pattern to complete if
25562 the user entered one herself. This way one can complete *.h and
25563 don't get matches on any .help files, for instance.
25565 Tue Mar 9 01:01:28 1999 Tim Janik <timj@gtk.org>
25567 * gdk/gdkfont.c (gdk_font_load): first lookup the xfont ID in our
25568 font hash table, if we have a GdkFontPrivate entry for this font
25569 already, simply increment its reference count, provided by Olaf Dietsche
25570 <olaf.dietsche+list.gtk@netcologne.de>.
25572 * gtk/gtkstyle.c (gtk_style_copy): plug a GdkFont reference leak, fix
25573 provided by Olaf Dietsche <olaf.dietsche+list.gtk@netcologne.de>.
25575 1999-03-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
25577 * gtk/gtkstyle.c (gtk_default_draw_handle): Significantly reduced
25578 the number of calls to gdk_draw_point() (and thus to X) by
25579 clipping the points by hand.
25581 * gtk/gtkhandlebox.c (draw_textured_frame): Actually make use of
25582 the clip parameter.
25583 (gtk_handle_box_paint): Only paint the handle if the expose area
25586 Sun Mar 7 18:46:37 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
25588 * gtk/gtkmain.c (add_dll_suffix): Add this function (OS/2 ver.)
25590 Sun Mar 7 11:43:34 1999 ape@spacetec.no (Asbjorn Pettersen)
25592 * gtk/gtkthemes.c (gtk_theme_engine_get): Add OS/2 changes.
25593 Added function gen_8_3_dll_name(gchar *name, gchar *fullname).
25595 Fri Mar 5 09:12:24 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
25597 * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc): Open file in
25598 textmode (O_TEXT) for OS/2 version.
25600 Sun Feb 28 16:46:02 1999 Stefan Jeske <stefan@gtk.org>
25602 * gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to
25603 GtkSpinButton, "input" and "output", to make the output more flexible.
25604 The user has to provide a mapping between adjustment->value and the
25605 output string (and vice versa, if the spin button is editable).
25606 See testgtk for examples.
25608 Sat Feb 27 01:18:47 1999 Tim Janik <timj@gtk.org>
25610 * ChangeLog: moved old ChangeLog to ChangeLog.pre-1-2, and started
25613 * configure.in: set gtk+ version to 1.3.0.
25615 * gtk/gtkfilesel.h, gtk/gtkfilesel.c: Derive from GtkDialog,