1 2003-06-09 Matthias Clasen <maclas@gmx.de>
3 * gtk/gtkpaned.c (gtk_paned_class_init): Install boolean child
4 properties "resize" and "shrink".
5 (gtk_paned_[gs]et_child_property): Implementations of
6 GtkContainer::[gs]et_child_property.
7 * tests/testgtk.c (toggle_resize, toggle_shrink): Use the new
8 paned child properties instead of remove/add hacks. (#114667,
11 Mon Jun 9 16:18:11 2003 Owen Taylor <otaylor@redhat.com>
13 * gtk/gtknotebook.c (gtk_notebook_button_press): Back
14 out event->window test - it wasn't needed because
15 of the call to get_widget_coordinates().
17 * gtk/gtknotebook.c (gtk_notebook_button_press): Remove
18 call to gtk_widget_grab_focus() when not clicking on
19 any tabs. (Real fix for #114534)
21 Sun Jun 8 22:03:09 2003 Owen Taylor <otaylor@redhat.com>
23 * tests/testdnd.c: Use application/x-rootwindow-drop for
24 root window drops. (#108670, Alex Larsson)
26 * gdk/x11/gdkdnd-x11.c (gdk_drag_motion) gtk/gtkdnd.c (gtk_drag_drop):
27 Accept either application/x-rootwin-drop (what GTK+ has always used)
28 or application/x-rootwindow-drop (what the XDND standard specifies).
30 Fri Jun 6 11:07:33 2003 Owen Taylor <otaylor@redhat.com>
32 * gtk/gtkwidget.c (event_window_still_viewable):
33 Before delivering an event to a widget, check that
34 (if relevant), the event's window is still viewable.
35 (#105642, Dennis Björklund)
37 * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
38 NULL out private->parent, since after destruction
39 it might not be valid any more.
41 * gdk/gdkwindow.c (gdk_window_is_viewable): Fix some
42 accesses before g_return_val_if_fail(). Treat
43 DESTROYED windows as unmapped.
45 Thu Jun 5 09:28:03 2003 Owen Taylor <otaylor@redhat.com>
47 * gtk/gtkentry.c: Recompute unconditionally in
48 gtk_entry_style_set, and in a new gtk_label_screen_changed().
49 Protect the guts of recompute_idle_func() with
50 gtk_widget_has_screen(). (#114040, Morten Welinder)
51 Fix FALSE/0 confusion.
53 Sun Jun 8 18:27:14 2003 Soeren Sandmann <sandmann@daimi.au.dk>
55 * gdk/gdkpixbuf-drawable.c (G8fromRGB565): swap G and B.
58 Sun Jun 8 11:27:29 2003 Owen Taylor <otaylor@redhat.com>
60 * gtk/gtkviewport.c (viewport_set_adjustment): Fix bug with
61 set_adjustment (viewport, NULL);
63 2003-06-07 Matthias Clasen <maclas@gmx.de>
65 * gtk/gtkiconfactory.c (get_default_icons):
66 * gtk/stock-icons/stock_{undo,redo,undelete,revert}_rtl_{16,24}.png:
67 * gtk/stock-icons/Makefile.am: Add rtl variants of undo, redo,
68 undelete and revert. (#96633)
70 Fri Jun 6 16:25:44 2003 Owen Taylor <otaylor@redhat.com>
72 * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and
73 refactoring of code to reduce duplication; fixes include:
75 - gtk_viewport_realize(): Position the window correct from adjustment
76 values. (#110737, Michael Natterer)
78 - Remove some division-by-zero checks in places where there is no
79 longer division. (#110737)
81 - gtk_viewport_class_init: Make the hadjustment/vadjustment properties
82 G_PARAM_CONSTRUCT, so that there will always be adjustments, even
83 if gtk_viewport_new isn't used (#101135, Thomas Leonard).
85 - Switch over to encapsulated lazy-creation for hadjustment/
86 vadjustment; even with the CONSTRUCT property, we need this after
89 - When updating the adjustment, immediate set their values to
90 match the the current range of the viewport, and update the
91 viewport position to match the value of the new adjustments.
94 2003-06-06 Tor Lillqvist <tml@iki.fi>
96 * gdk/win32/gdkprivate-win32.h: Fix typo.
98 * gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
99 graphics_exposures and subwindow_mode, too, even if they aren't
102 Fri Jun 6 23:38:23 2003 Kristian Rietveld <kris@gtk.org>
106 * gtk/gtktreeview.c (do_expand_collapse),
107 (expand_collapse_timeout), (cancel_arrow_animation): made
108 expand_collapse_timeout a wrapper with locks around
109 do_expand_collapse, made cancel_arrow_animation use
110 do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
113 Fri Jun 6 11:05:45 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
115 * modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
116 * modules/input/gtkimcontextxim.c (preedit_start_callback,
117 preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag
118 to keep preedit-[start,changed,end] signals from being called during
119 finalization (#111861).
121 2003-06-05 Noah Levitt <nlevitt@columbia.edu>
123 * gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
124 presses that are not on the tab (#114534).
126 Thu Jun 5 20:35:40 2003 Owen Taylor <otaylor@redhat.com>
128 * demos/Makefile.am: Conditionalize dependencies for
129 gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe).
130 Buildtest-inline-pixbufs.h in srcdir. Don't try to build
131 test-inline-pixbufs.h if we don't have libpng.
133 * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h):
134 Add a dependency on gdk-pixbuf.loaders when not
135 cross-compiling, remove the dependency on gdk-pixbuf-csource
136 when not cross compiling.
138 Thu Jun 5 20:12:51 2003 Owen Taylor <otaylor@redhat.com>
140 * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
141 gtk_window_get_geometry_info() returning NULL.
142 (#107311, John Finlay)
144 Thu Jun 5 19:24:33 2003 Owen Taylor <otaylor@redhat.com>
146 * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
147 twice the border width from the width/height, not
148 1x the border width. (#106336, Rodney Dawes)
150 Thu Jun 5 15:33:38 2003 Owen Taylor <otaylor@redhat.com>
152 * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
153 If at the end of the buffer, move to the end iter -
154 parallels behavior of move_iter_to_previous_line.
155 (#81960, Padraig O'Briain)
157 Thu Jun 5 16:12:54 2003 Owen Taylor <otaylor@redhat.com>
159 #80023, Yao Zhang, TOKUNAGA Hiroyuki
161 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
162 Account for the preedit cursor offset if the iter passed
163 in is at the same place as the insertion cursor.
165 * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
166 Encapsulate getting the insertion cursor location.
168 * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
169 Pass the real y/height to the IM context. Take
170 text_view->x/yoffset into account.
172 Thu Jun 5 16:52:54 2003 Owen Taylor <otaylor@redhat.com>
174 * gtk/gtktextview.[ch]: Never scroll on focus in
175 (#81893, Patch from Paolo Maggi)
177 * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
178 Scroll to the current cursor location before handling
179 the action, in case the user just tabbed in
180 and the cursor is offscreen.
182 Thu Jun 5 17:20:40 2003 Owen Taylor <otaylor@redhat.com>
184 #107883, Gustavo Giráldez
186 * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
187 Split out the case where we know we changed, and
188 already dealt with our cached line being invalidated
189 from external calls to gtk_text_layout_changed.
191 * gtk/gtktextlayout.c (gtk_text_layout_changed):
192 Check if the invalidate yrange intersects our
193 cached line, and clear it if necessary.
195 2003-06-05 Tor Lillqvist <tml@iki.fi>
197 * gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
200 2003-06-05 Matthias Clasen <maclas@gmx.de>
202 * gtk/gtktextview.c: Fix for #84668, reported by Torbjörn Andersson:
203 (gtk_text_view_grab_notify):
204 (gtk_text_view_state_changed): Implement these
205 to unobscure cursor when grab shadowed or insensitised.
206 (gtk_text_view_unobscure_mouse_cursor): New function to undo the
207 effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
208 gtk_text_view_motion_event().
209 (gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
211 * gtk/gtktextview.c (select_all): New keybinding signal for
212 (un)selecting the whole buffer. Bound to C-a/C-\. (see #107889)
214 * gtk/gtkcalendar.c (calendar_timer):
215 (stop_spinning): Replace deprecated gtk_timeout_* functions by
216 their GLib counterparts. (#114429)
218 * gtk/gtktreestore.c (gtk_tree_store_new):
219 * gtk/gtkliststore.c (gtk_list_store_new): Document restriction on
222 Wed Jun 4 19:42:17 2003 Owen Taylor <otaylor@redhat.com>
224 * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
225 When drawing underlines, join up adjacent runs
226 where possible, so we don't get changes in
227 shaper/font/etc. breaking underlines. (#103662,
230 Wed Jun 4 19:22:58 2003 Jonathan Blandford <jrb@redhat.com>
232 * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
233 Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
234 improve the speed of inserting rows into an already sorted list,
237 Wed Jun 4 19:24:28 2003 Owen Taylor <otaylor@redhat.com>
239 * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
240 track of when we have a clip mask set for the GC,
241 and when we unset it, or switch to a clip region,
242 immediately call XSetClipMask (..., None) to avoid
243 Xlib caching stale data. (#111806)
245 * gtk/gtktextdisplay.c: Don't set a clip mask
246 when drawing alpha pixmaps; it isn't necessary any more.
249 Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
251 * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
252 gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
253 Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
256 * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
257 gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
258 Use state_type = STATE_INSENSITIVE for insensitive menu items.
260 Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
264 * gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
265 assert for get_info. (reported by Michael Natterer),
266 (gtk_tree_view_expand_all_emission_helper),
267 (gtk_tree_view_expand_all_helper): emit row_expanded for all
268 expanded rows during an _expand_all operation. (Fixes #111280,
269 reported by Benjamin Bayart).
271 Tue Jun 3 18:32:30 2003 Owen Taylor <otaylor@redhat.com>
273 * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
274 respond to pings on a root window; prevents infinite
275 loops if we are selecting for SubstructureNotify on the
276 root window. (#111945, Sergey V. Udaltsov)
278 Tue Jun 3 17:39:16 2003 Owen Taylor <otaylor@redhat.com>
280 #71597, reported by Morten Welinder
282 * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
283 (Patch from Christian Petig)
285 * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
286 Major rewrite of 555 and 565 conversion routines:
288 - Move all the bit shifting into a small block of macros,
289 eliminating much duplication of complicated arithmetic.
290 - Get rid of 2-pixels at a time code, which was buggy,
291 hard to maintain, caused unaligned accesses, and
292 probably didn't actually perform any better.
293 - Simplify cases where different data types were
294 used for the little and big endian cases, use
295 GUINT16_SWAP_LE_BE() where appropriate.
297 Tue Jun 3 15:05:47 2003 Owen Taylor <otaylor@redhat.com>
299 * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
300 bad optimization for src_rowstride == dest_stride.
301 (Didn't consider the case where we were copying only
302 partial widths of a wider source buffer)
303 (#113034, reported by Hans Petter Jansson)
305 2003-06-03 Michael Natterer <mitch@gimp.org>
307 * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
308 reenabled button_release events for xinput devices. (#113948)
310 2003-06-03 Christian Rose <menthos@menthos.com>
312 * configure.in: Added "li" to ALL_LINGUAS.
314 Mon Jun 2 18:58:54 2003 Owen Taylor <otaylor@redhat.com>
316 * gtk/gtknotebook.c (gtk_notebook_size_allocate): Don't
317 map the event window if the notebook isn't mapped. (#113980,
320 2003-06-02 Sven Neumann <sven@gimp.org>
322 * gtk/gtkprogress.c (gtk_progress_changed): added a missing cast.
324 * gdk/gdkrgb.c (gdk_rgb_try_colormap): removed an unused variable.
326 2003-06-01 Matthias Clasen <maclas@gmx.de>
328 * gtk/gtkalignment.c (gtk_alignment_[gs]et_padding): Add
329 Since: 2.4 to the docs.
331 * gtk/gtkwindow.c (gtk_window_parse_geometry): Add some hints and
332 an example to the docs. (#98427)
334 2003-05-30 Murray Cumming <murrayc@usa.net>
336 * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
337 gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
338 uses the new private data system - see g_type_class_add_private() in
339 gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
341 2003-05-30 Matthias Clasen <maclas@gmx.de>
343 * gtk/gtknotebook.c: Changed guint to GtkNotebookArrow in the
344 signature of gtk_notebook_draw_arrow() for Solaris builds to go
345 through. (#114043, Anand Subramanian)
347 Thu May 29 18:30:35 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
349 * modules/input/imipa.c:
350 use GETTEXT_PACKAGE to get a translation for "ipa"(#113850).
352 Thu May 29 18:08:01 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
354 * gtk/gtkimmodule.c (_gtk_im_module_list):
355 use GETTEXT_PACKAGE to get a translation for "Default"(#113850).
357 Thu May 29 09:34:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
359 * gtk/gtkimmodule.c (_gtk_im_module_list): make "Default"
360 label of default input method localizable.
361 * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
362 use translations of input method context names
363 * modules/input/imam-et.c, modules/input/imcyrillic-translit.c,
364 modules/input/iminuktitut.c, modules/input/imthai-broken.c,
365 modules/input/imti-er.c, modules/input/imti-et.c
366 modules/input/imviqr.c, modules/input/imxim.c
367 use GETTEXT_PACKAGE instead of "gtk+" for domain name.
370 Thu May 29 18:23:01 2003 Kristian Rietveld <kris@gtk.org>
374 * gtk/gtktreeview.c (gtk_tree_view_button_press): put the focus
375 grab separate, the user might clear the tree in the focus-in
376 callback. (Fixes #113086, testcase from Felipe Heidrich).
378 Thu May 29 18:06:26 2003 Kristian Rietveld <kris@gtk.org>
382 * gtk/gtktreeview.c (gtk_tree_model_set_model): reset a bunch
383 of row reference when we unset the model. Also reset
384 dy and top_row_dy. (Fixes #109289, patch from Owen Taylor).
386 Thu May 29 17:12:19 2003 Kristian Rietveld <kris@gtk.org>
390 * gtk/gtktreeview.c (gtk_tree_view_set_cursor_on_cell): cancel
391 the current editing, if it exists. (Fixes #108956, reported by
394 Thu May 29 17:06:09 2003 Kristian Rietveld <kris@gtk.org>
398 * gtk/gtktreeview.c (check_selection_helper): new function,
399 (gtk_tree_view_row_deleted): traverse the tree from the
400 deleted node to see whether the selection changed, instead of
401 just checking this node. (Fixes #107400, reported by 'Duncan').
403 Thu May 29 16:31:34 2003 Kristian Rietveld <kris@gtk.org>
407 * gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row),
408 (gtk_tree_view_drag_begin): set the DnD icon in _drag_begin
409 instead of _maybe_begin_dragging_row, so the icon can be
410 overridden by apps. (Fixes #104374, patch from Daniel Elstner).
412 Thu May 29 16:14:04 2003 Kristian Rietveld <kris@gtk.org>
416 * gtk/gtktreeview.c (gtk_tree_view_start_editing): correct
417 cell_area x/width for the expander if needed. (Fixes #101748,
418 reported by Dave Cook and Mariano Suarez-Alvarez).
420 Thu May 29 16:01:38 2003 Kristian Rietveld <kris@gtk.org>
424 * gtk/gtktreeview.c (gtk_tree_view_real_set_cursor): check
425 if tree/node are still the same after _internal_select_node.
426 (Fixes #92256, reported by edscott).
428 Thu May 29 15:38:30 2003 Kristian Rietveld <kris@gtk.org>
430 Fixes #75745, reported by Richard Hult. Merged from stable.
432 * gtk/gtktreeview.c (gtk_tree_view_bin_expose): set/unset
433 GTK_CELL_RENDERER_FOCUSED flag whether the current node is the
436 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
437 if we are rendering a cursor row, and the cell the be
438 processed has focus, then set the GTK_CELL_RENDERER_FOCUSED
439 flag (else we unset it).
441 2003-05-27 Matthias Clasen <maclas@gmx.de>
443 * gtk/gtkwindow-decorate.c:
444 * gtk/gtktreeprivate.h:
446 * gdk/win32/gdkwindow-win32.h:
447 * gdk/linux-fb/gdkprivate-fb.h:
448 * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
449 unspecified signedness. (#112919, Morten Welinder)
451 * gtk/queryimmodules.c (escape_string):
452 * gtk/gtktextbtree.c (_gtk_text_btree_get_text):
453 * gtk/gtksettings.c (_gtk_settings_parse_convert):
454 * gtk/gtkrc.c (gtk_rc_parse_assignment):
455 * gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
456 * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
457 occurances of g_string_new ("") by g_string_new (NULL). (#106975,
460 2003-05-27 Tor Lillqvist <tml@iki.fi>
462 * gtk-zip.sh.in: Only include the Default and Emacs themes' gtkrc
463 files. Include share/gtk-doc/{gdk-pixbuf,gdk,gtk}.
465 * gdk/Makefile.am: libgdk-win32-2.0.la depends on
466 win32/libgdk-win32.la.
468 * gtk/gtk.def: Add gtk_tree_view_column_cell_get_position.
470 Sat May 24 22:19:13 2003 Soeren Sandmann <sandmann@daimi.au.dk>
472 * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): Make the minimum
473 scrollbar slider length 21 instead of 7.
475 2003-05-23 Matthias Clasen <maclas@gmx.de>
477 * gtk/gtknotebook.c: Add support for up to four scroll
478 arrows. Control their display by new style properties
479 "has_forward_stepper", "has_backward_stepper",
480 "has_secondary_forward_stepper" and
481 has_secondary_backward_stepper". (#110540)
483 * gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
484 click_child three bits wide, add
485 has_{before,after}_{previous,next} fields.
487 * gtk/gtkcolorsel.c (gtk_color_selection_init): Update color on
488 focus out of hex_entry. (#112665)
489 (hex_focus_out): New signal handler for focus out of hex entry.
491 Wed May 21 19:01:06 2003 Owen Taylor <otaylor@redhat.com>
493 * gtk/gtkwidget.c (gtk_widget_realize):
494 g_return_if_fail() if
495 GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget).
496 (#107872, Christian Reis)
498 2003-05-22 Matthias Clasen <maclas@gmx.de>
500 * gtk/gtkfilesel.c (gtk_file_selection_create_dir):
501 (gtk_file_selection_rename_file): Some keynav improvements for the
502 "Rename File" and "Create Directory" subdialogs: Enter in entry
503 activates default, default is "Create"/"Rename", Escape cancels
505 (gtk_file_selection_set_filename): Add a hint about opening
506 directories. (#113175)
508 2003-05-22 Matthias Clasen <maclas@gmx.de>
510 * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_update_xft_clip):
511 Use XftDrawSetClipRectangles(), since we're inside HAVE_XFT2
514 Wed May 21 15:53:14 2003 Owen Taylor <otaylor@redhat.com>
516 * gtk/gtkprogress.c (gtk_progress_set_format_string,
517 gtk_progress_set_show_text): Always queue a resize ...
518 we rely on the size-allocate to do the update, plus a
519 different format can actually change our size requisition.
520 (#111052, Vasco Alexandre da Silva Costa)
522 * gtk/gtkprogress.c (gtk_progress_changed): Track
523 ::changed as well as ::value_changed, and queue a
524 resize on ::changed when necessary.
526 * gtk/gtkprogress.c (gtk_progress_set_adjustment):
527 Call gtk_progress_changed() here to update or
528 queue a resize as necessary.
530 Wed May 21 14:06:13 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
532 * gtk/gtkimcontextsimple.c: added composing rules of
533 Greek accented letters, patch by Vasilis Vasaitis (#107507)
535 Wed May 21 13:19:05 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
537 * gtk/gtkenums.h (enum GtkIMPreeditStyle, GtkIMStatusStyle):
538 * modules/input/gtkimcontextxim.c (preedit_style_change, status_style_change):
539 gtk settings for XIMPreeditNone and XIMStatusNone. (#105909)
541 Wed May 21 12:10:25 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
543 * gtk/gtkimcontextsimple.c:
544 code that can check the compose table for ascending order,
545 by Vasilis Vasaitis (#104862).
547 Wed May 21 12:52:01 2003 Owen Taylor <otaylor@redhat.com>
549 * gtk/gtkkeyhash.[ch] (_gtk_key_hash_looku): We need
550 to pass the unmasked state to gdk_keymap_translate_keyboard_state()
551 to handle the case where a modifier not in the mask
552 (like Num_Lock) changes the key value, so replace
553 the masked state with a state/mask pair. (#106913,
556 * gtk/gtkwindow.c gtk/gtkbinding.c: Update to pass
557 in state/mask pair to _gtk_key_hash_lookup()
559 Tue May 20 21:58:00 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
561 * modules/input/gtkimcontextxim.c (xim_info_display_closed):
562 fix a memory leak, free input context list (#113259).
564 2003-05-21 Matthias Clasen <maclas@gmx.de>
566 * configure.in (all_loaders): Add pcx.
568 * gtk/gtkcalendar.c: Make calendar controls spin. (#112540)
570 Tue May 20 17:27:24 2003 Owen Taylor <otaylor@redhat.com>
572 * gtk/gtkimmodule.c (gtk_im_module_init): Silently
573 accept a missing gtk.immodules file, some people
574 want to run without one. (#112406, patch from
577 Tue May 20 17:05:31 2003 Owen Taylor <otaylor@redhat.com>
579 * gtk/gtkwindow.c (gtk_window_compute_hints): Fix
580 height/width confusion (#113370, Xan Lopez)
582 Tue May 20 15:48:45 2003 Owen Taylor <otaylor@redhat.com>
584 * gdk/x11/gdkdnd-x11.c gdk/x11/gdkwindow-x11.c: Comprehensively
585 zero all unused parts of client messages (Mainly Motif DND
586 and EWMH). Also, fix a couple places where we were putting
587 contents into Motif DND messages that didn't belong.
588 (#113361, EWMH problem reported by Lubos Lunak)
590 * gtk/gtkselection.c (_gtk_selection_request): Handle the
591 case where the property type for the multiple atoms is
592 ATOM_PAIR by doing the conversions ourselve. This is
593 needed for Xt inter-operation.
595 2003-05-19 Arafat Medini <lumina@silverpen.de>
597 * configure.in: Added ar to ALL_LINGUAS
599 2003-05-19 Matthias Clasen <maclas@gmx.de>
601 * gtk/gtksettings.c (gtk_rc_property_parse_border,
602 gtk_rc_property_parse_color, gtk_rc_property_parse_enum,
603 gtk_rc_property_parse_flags, gtk_rc_property_parse_requisition):
606 * gtk/gtkwidget.c (gtk_widget_class_install_style_property,
607 gtk_widget_class_install_style_property_parser): Add docs.
609 2003-05-17 Matthias Clasen <maclas@gmx.de>
611 * tests/prop-editor.c: Add navigation for object properties, so
612 that you can easily edit the properties of the parent of a widget.
615 Wed May 14 17:45:32 2003 Owen Taylor <otaylor@redhat.com>
617 * gdk/gdkkeysyms.h gdk/gdkkeynames.c gdk/gdkkeyuni.c:
618 Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis
619 inconsistency and leave the old name as an aliass (#104873)
621 Wed May 14 16:40:09 2003 Owen Taylor <otaylor@redhat.com>
623 * gtk/gtkframe.c (gtk_frame_set_label_widget): Patch
624 from Charles Schmidt to add missing notify (#108305)
626 Wed May 14 16:00:51 2003 Owen Taylor <otaylor@redhat.com>
628 * gdk/x11/gdkgc-x11.c: Remove unecessary g_return_if_fail().
629 (#105500, Morten Welinder.)
631 Wed May 14 09:05:11 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
633 * modules/input/gtkimcontextxim.c (get_ic_real): use type of guint32
634 instead of gumake for XNFilterEvents event mask(#110493).
636 2003-05-11 Anders Carlsson <andersca@codefactory.se>
638 * gtk/gtkdnd.c (gtk_drag_source_unset_icon): Don't cast a gchar to
641 2003-05-08 Sven Neumann <sven@gimp.org>
643 * configure.in: set the HAVE_X11R6 automake conditional to false
644 if not compiling for X11.
646 2003-05-08 Matthias Clasen <maclas@gmx.de>
648 * gtk/gtkcalendar.[ch] (gtk_calendar_set_display_options):
649 (gtk_calendar_get_display_options): New functions.
650 (gtk_calendar_display_options): Depreate. (#64567)
651 (gtk_calendar_class_init): Add boolean properties for the display
654 Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com>
656 Patch from James Henstridge to update to automake-1.7
659 * autogen.sh: update to call newer tools.
661 * configure.in: various updates, to use M4 macros to put
662 variables that change each release at the top.
663 Use AC_HELP_STRING to format help strings.
664 Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
666 * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and
667 gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure
670 * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
673 * */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
674 Use BUILT_SOURCES where appropriate.
675 Build generated files in builddir rather than srcdir.
676 Fix uninstall and distclean targets to satisfy distcheck.
680 * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
681 built first, since we are now using BUILT_SOURCES.
683 * gdk/Makefile.am: Remove an outdated comment about gdk_headers.
685 * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
688 * configure.in: Update versions to 2.3.0.
690 2003-05-06 Tor Lillqvist <tml@iki.fi>
692 Fix for #110165 (thanks to Arnaud Charlet):
694 * gdk/win32/gdkevents-win32.c (build_keypress_event,
695 build_keyrelease_event): For unshifted control char, use
696 lowercase ASCII keyval.
697 (gdk_event_translate): Similarily, when handling WM_SYSKEYDOWN and
698 UP (i.e. Alt-something), if it's an unshifted ASCII letter, use
699 lowercase keyval. Use build_key_event_state() here, too, instead
700 of minor code duplication.
702 2003-05-06 Matthias Clasen <maclas@gmx.de>
704 * tests/testmultidisplay.c: Don't include strings.h, it's not
705 needed anymore. (#112388)
707 * examples/menu/itemfactory.c:
708 * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the
711 2003-05-05 Matthias Clasen <maclas@gmx.de>
713 * gtk/gtkdnd.c (gtk_drag_source_set_icon_stock): Actually set the
714 icon type to the stock icon type. (#111735, Dave Bordoley)
716 2003-05-05 Christian Rose <menthos@menthos.com>
718 * configure.in: Added sr and sr@Latn to ALL_LINGUAS.
719 Removed sp, it's replaced by sr@Latn.
721 Wed Apr 30 22:09:11 BST 2003 Tony Gale <gale@gtk.org>
723 * docs/faq/gtk-faq.sgml: GTK+ 2.x updates, mainly from
726 Mon Apr 28 17:54:39 2003 Jonathan Blandford <jrb@redhat.com>
728 * gtk/gtktreeview.c (gtk_tree_view_destroy): destroy the search
729 data iff the destroy func isn't NULL.
731 Thu Apr 24 19:12:05 2003 Owen Taylor <otaylor@redhat.com>
733 * autogen.sh (have_libtool): Accept libtool-1.5. (#111480)
735 2003-04-23 Abel Cheung <maddog@linux.org.hk>
737 * configure.in: Added "am" "mk" "ta" to ALL_LINGUAS.
739 Tue Apr 22 15:33:51 2003 Owen Taylor <otaylor@redhat.com>
741 * gtk/gtkfilesel.c (open_new_dir): Fix capitalization
742 of UTF-8. (#106419, Roozbeh Pournader)
744 Tue Apr 22 15:17:25 2003 Owen Taylor <otaylor@redhat.com>
746 * configure.in: Only check for XFT2 if we found pango-xft
749 Tue Apr 22 15:12:19 2003 Owen Taylor <otaylor@redhat.com>
751 * gtk/gtkwidget.c (gtk_widget_class_init): Fix PROP_HAS_FOCUS/
752 PROP_IS_FOCUS confusion. (#111333, Jody Goldberg)
754 Tue Apr 22 19:43:01 BST 2003 Tony Gale <gale@gtk.org>
756 * docs/faq/gtk-faq.sgml: add note about version converage.
758 Mon Apr 21 19:02:16 2003 Owen Taylor <otaylor@redhat.com>
760 * gtk/gtksocket.c (activate_key): Fix prototype for
761 activate_key. (#108927, Jason D. Hildebrand)
763 Mon Apr 21 18:42:51 2003 Owen Taylor <otaylor@redhat.com>
765 * demos/gtk-demo/Makefile.am demos/gtk-demo/geninclude.pl:
766 Remove geninclude.pl from CVS and don't dist it either,
767 it is generated. (#108970, Rich Kinder)
769 Mon Apr 21 18:35:48 2003 Owen Taylor <otaylor@redhat.com>
771 * gtk/gtkobject.h: Remove a couple of obsolete comments,
772 fix another comment. (#109737, Britton Kerin)
774 Mon Apr 21 18:29:03 2003 Owen Taylor <otaylor@redhat.com>
776 * gtk/gtkiconfactory.c (gtk_icon_set_unref): Free
777 the source list, not just it's contents (Patch
778 from Charles Kerr, #108243)
780 Mon Apr 21 18:13:46 2003 Owen Taylor <otaylor@redhat.com>
782 * gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Patch
783 from Alex Larsson fixing problem with restacking during
786 Mon Apr 21 15:07:29 2003 Owen Taylor <otaylor@redhat.com>
788 * gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard/pointer_ungrab):
789 Calling XFlush() after ungrabbing, to avoid problems if
790 the app subsequently blocks on a long-running operation.
791 (#106520, reported by Rajkumar Siva)
793 Fri Apr 18 17:42:45 2003 Owen Taylor <otaylor@redhat.com>
795 * gdk/x11/gdkwindow-x11.c (set_initial_hints): Add
796 SKIP_TASKBAR/SKIP_PAGER to set of properties we
797 might set on map. (#110019, problem reported
800 Fri Apr 18 17:14:33 2003 Owen Taylor <otaylor@redhat.com>
802 * gdk/gdkevents.c (gdk_event_copy): Fix for the
803 case when gdk_event_copy() is called on a non-allocated
804 event. (#109716, reported by Rich Burridge)
806 Fri Apr 18 16:57:44 2003 Owen Taylor <otaylor@redhat.com>
808 * gdk/x11/gdkdrawable-x11.c (draw_with_images/pixmaps):
809 Fix pointer arithmetic on 'void *'. (#108322)
811 Fri Apr 18 16:31:49 2003 Owen Taylor <otaylor@redhat.com>
813 * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am:
814 Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and
815 use of XAddConnectionWatch. Remove --enable-xim config option.
816 Should fix building on X11R6 (#110523, Albert Chin)
818 Fri Apr 18 15:56:46 2003 Owen Taylor <otaylor@redhat.com>
820 * gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkdrawable-x11.[ch]:
821 Patch from Morten Welinder to catch Sun servers with a
822 broken implementation of the RENDER extension. (#108309)
824 Fri Apr 18 15:30:38 2003 Owen Taylor <otaylor@redhat.com>
826 * gdk/x11/gdkwindow-x11.c (set_text_property): Use
827 gdk_free_compound_text(), not g_free(). (#107643,
830 Fri Apr 18 15:11:50 2003 Owen Taylor <otaylor@redhat.com>
832 * gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type)
833 gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type): Fix
834 wrong use of base_finalize. (#105126, Sven Neumann)
836 Fri Apr 18 15:06:00 2003 Owen Taylor <otaylor@redhat.com>
838 * gdk/gdkwindow.c (gdk_window_constrain_size): Fix
839 '/' vs. '*' problem in aspect ration computations. (#108237)
841 Fri Apr 18 14:15:09 2003 Owen Taylor <otaylor@redhat.com>
843 * gdk/x11/gdkdisplay-x11.c (gdk_display_open):
844 * gdk/x11/gdkevents-x11.c (gdk_event_translate): You
845 don't get a XkbMapNotify event if you get a XkbNewKeyboardNotify
846 event, so select for both. (#108406, Egmont Koblinger)
848 Thu Apr 17 09:57:44 2003 Jonathan Blandford <jrb@gnome.org>
850 * gtk/gtktreeview.c (validate_visible_area): remove infinite loop
851 caused by not clearing the scroll_to_path.
853 2003-04-16 Matthias Clasen <maclas@gmx.de>
855 * gtk/gtkstyle.c: Doc additions and fixes.
857 * gtk/gtktreeviewcolumn.c
858 (_gtk_tree_view_column_get_neighbor_sizes): Doc fixes.
860 2003-04-14 Michael Natterer <mitch@gimp.org>
862 * gtk/gtkliststore.c (gtk_list_store_move): added checks to ensure
863 that the iter is not reordered to its own position. Prevents model
864 corruption for the case that the store contains only a single item
869 * gtk/gtkliststore.c (gtk_list_store_insert): g_list_alloc() the
870 new list element later so we don't leak it if we decide to return
873 * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
874 set selection->tree_view->priv->anchor to NULL after freeing it.
876 2003-04-13 Matthias Clasen <maclas@gmx.de>
878 * gtk/gtktreeviewcolumn.c
879 (gtk_tree_view_column_cell_get_position): Document.
881 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range):
882 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_[sg]et_expand):
883 * gtk/gtkbutton.c (gtk_button_[sg]et_focus_on_click): Document
884 these as 2.4 additions.
886 2003-04-09 Matthias Clasen <maclas@gmx.de>
888 * INSTALL.in: Fix the real thing.
892 Mon Apr 7 19:43:15 2003 Owen Taylor <otaylor@redhat.com>
894 * gdk/x11/gdkdisplay-x11.c (gdk_x11_display_ungrab): Flush
895 after ungrabbing the server.
897 * gdk/x11/gdkimage-x11.c: Remove some no-longer-needed
900 * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_at_pointer):
901 Use gdk_x11_display_grab/ungrab.
903 * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize
904 use_xshm to TRUE so SHM gets used when present.
906 2003-04-07 Matthias Clasen <maclas@gmx.de>
908 * gtk/gtktextlayout.c (set_para_values):
909 * gtk/gtkenums.h (GtkWrapMode): Add GTK_WRAP_WORD_CHAR. (#110086,
912 * gtk/gtkcelleditable.c, gtk/gtkfixed.c, gtk/gtktreemodel.c,
913 gtk/gtktreeselection.c, gtk/gtktreeview.c: Fix numerous
914 misspellings of possessive "its". (#110027, Doug Quale)
916 2003-04-03 Matthias Clasen <maclas@gmx.de>
918 * demos/gtk-demo/main.c (demo_find_file): Only use files from the
919 current directory if it looks like the srcdir. (#109357)
921 Wed Apr 2 23:02:26 2003 Soeren Sandmann <sandmann@daimi.au.dk>
923 * gtk/gtkbutton.[ch] (gtk_button_class_init): add property
926 * gtk/gtkwindow.c (gtk_window_focus): make arrow keyboard
927 navigation not wrap around.
929 2003-04-02 Matthias Clasen <maclas@gmx.de>
931 * gtk/gtkprogress.c (gtk_progress_get_percentage_from_value):
932 Return 0 if lower == upper. (#109155)
933 (gtk_progress_get_current_percentage): Use
934 gtk_progress_get_percentage_from_value().
936 2003-04-01 Matthias Clasen <maclas@gmx.de>
938 * gtk/gtkimcontext.c (gtk_im_context_focus_in): Fix docs.
939 (#109510, Noah Levitt)
941 Mon Mar 31 13:52:13 2003 Jonathan Blandford <jrb@redhat.com>
943 * gtk/gtkrbtree.c (_gtk_rbtree_reorder): null initialize reorder's
944 members so Purify won't complain.
946 * gtk/gtkliststore.c (gtk_list_store_sort): ditto.
948 2003-03-31 Matthias Clasen <maclas@gmx.de>
950 * gtk/gtkwindow.c: Add a new property, role, corresponding to
951 gtk_window_[gs]et_role(). (#93904)
953 Sun Mar 30 03:57:42 2003 Jonathan Blandford <jrb@gnome.org>
955 * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows):
956 fix crash. Patch from Markus Lausser <sgop@users.sourceforge.net>
958 2003-03-29 Matthias Clasen <maclas@gmx.de>
960 * gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Set state
961 of labels back to normal before reparenting back. (#102387)
963 * gtk/gtkcolorseldialog.c (gtk_color_selection_dialog_init): Set
964 a default window title to match the GtkFontSelectionDialog behavior.
966 (gtk_color_selection_dialog_new): Don't call
967 gtk_window_set_title() if title is NULL. (bug #101975, Daniel Elstner)
969 2003-03-29 Matthias Clasen <maclas@gmx.de>
973 * gtk/gtkentry.h (struct _GtkEntry): Add flags select_words and
976 * gtk/gtkentry.c (gtk_entry_button_press): Set select_words and
977 select_lines on double/triple click.
979 * gtk/gtkentry.c (gtk_entry_motion_notify): Implement
980 select-by-words and select-by-lines behaviour.
982 Fixes for bug #56248:
984 * gtk/gtknotebook.c (stop_scrolling): New function to remove the
985 timer and queue a redraw.
986 (gtk_notebook_grab_notify):
987 (gtk_notebook_state_changed): New functions to call stop_scrolling()
989 (gtk_notebook_button_release): Use stop_scrolling().
990 (gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
992 * gtk/gtkrange.c (stop_scrolling): New function to remove the
993 grab, remove the timer and queue a redraw.
994 (gtk_range_grab_notify):
995 (gtk_range_state_changed): New functions to call stop_scrolling()
997 (gtk_range_button_release): Use stop_scrolling().
999 * gtk/gtkspinbutton.c (gtk_spin_button_grab_notify):
1000 (gtk_spin_button_state_changed): Redraw after stop_spinning.
1001 (gtk_spin_button_stop_spinning): Reset click_child to correct the
1002 drawing of the arrows.
1003 (gtk_spin_button_button_release): Use a local copy of click_child,
1004 since stop_spinning() resets it.
1006 * gtk/gtknotebook.c (gtk_notebook_class_init): Add C-A-PgUp and
1007 C-A-PgDown as alternatives to the A-less variants. (This slipped
1008 in accidentally some time ago). (#97860)
1010 2003-03-26 Sven Neumann <sven@gimp.org>
1012 * gtk/gtktreeview.c: rewrote the function that does node and arrow
1013 prelighting, queue all redraws from here (Fixes bug #108792).
1015 2003-03-20 Richard Kinder <r_kinder@yahoo.com>
1017 * demos/testpixbuf.c (update_timeout): set error to NULL, not FALSE.
1020 2003-03-20 Guntupalli Karunakar <karunakar@freedomink.org>
1022 * configure.in: Added "ml" in ALL_LINGUAS
1024 Sat Mar 15 18:49:27 2003 Manish Singh <yosh@gimp.org>
1026 * gtk/gtkradiomenuitem.h: use GTK_DISABLE_DEPRECATED instead of
1027 G_DISABLE_DEPRECATED.
1029 2003-03-14 Tor Lillqvist <tml@iki.fi>
1031 * gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
1032 GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
1033 DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
1034 multiple monitors can have negative coordinates on some of the
1035 monitors. (partial fix for #99496, Arnaud Charlet)
1037 2003-03-15 Matthias Clasen <maclas@gmx.de>
1039 * gtk/gtktextview.c: Add a "buffer" property. (#108353)
1041 2003-03-13 Sven Neumann <sven@gimp.org>
1043 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
1044 removed redundant calls to g_object_notify().
1045 (gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
1048 * gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
1049 (_gtk_text_iter_get_segment_byte): return 0, not NULL (these
1050 functions return an integer value).
1052 2003-03-13 Tor Lillqvist <tml@iki.fi>
1054 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1055 WM_MOUSEMOVE, the test whether we have actually moved (and thus
1056 shouldn't generate an GDK event) moved after the call to
1057 propagate() and translate_mouse_coords(). Otherwise we were
1058 testing wrong values. (#108115, Allin Cottrell)
1059 (gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
1060 way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
1062 * gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
1063 is used, must copy the HCURSOR with CopyCursor(), as it is OK to
1064 destroy the GdkCursor after calling gdk_pointer_grab(). Set the
1065 cursor right away with SetCursor(), as we won't get any
1066 WM_SETCURSOR messages while the mouse is captured.
1067 (gdk_display_pointer_ungrab): Correspondingly, destroy the copy
1068 with DestroyCursor() when no longer used. (#108114, Allin Cottrell)
1070 * gdk/win32/gdkevents-win32.c (gdk_event_translate): On
1071 WM_SYSCHAR, return FALSE from the window procedure to prevent the
1072 DefWindowProc from being called. Otherwise Windows would beep,
1073 thinking you are tring to access a (nonexistent) menu when you
1074 press Alt-something. Don't do this for Alt-Space,
1075 though. (#107454, Martyn Russell)
1077 * gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
1079 Tue Mar 11 12:01:07 2003 Jonathan Blandford <jrb@gnome.org>
1081 * gtk/gtktreeview.c (gtk_tree_view_class_init): Ctrl/Shift
1082 [left/right] expands/collapses the tree, #108092
1084 2003-03-09 Tor Lillqvist <tml@iki.fi>
1086 * gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
1087 compensate for LineTo() not drawing the end pixel. It causes more
1088 harm than benefits, see bug #81895.
1090 2003-03-08 Matthias Clasen <maclas@gmx.de>
1092 Bug #107664 continued:
1094 * gdk/x11/gdkinputprivate.h:
1095 * gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove.
1096 (_gdk_input_other_event): Return gboolean.
1097 * gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove.
1098 (_gdk_input_other_event): Return gboolean.
1099 * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.
1101 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
1102 gboolean, remove pointless call to _gdk_input_window_none_event.
1104 * gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
1105 (_gdk_input_window_none_event): Remove.
1107 * gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment):
1108 (_gtk_text_iter_get_any_segment):
1109 (_gtk_text_iter_get_segment_byte):
1110 (_gtk_text_iter_get_segment_char):
1111 (_gtk_text_iter_get_text_line):
1112 (_gtk_text_iter_get_btree): Fix 0/NULL confusion.
1113 * gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
1114 * gdk/win32/gdkfont-win32.c (gdk_font_equal):
1115 * gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin):
1116 (gdk_window_get_origin):
1117 * gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion.
1119 2003-03-06 Matthias Clasen <maclas@gmx.de>
1121 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
1122 (#107664, Morten Welinder)
1124 * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin):
1125 * gdk/x11/gdkfont-x11.c (gdk_font_equal):
1126 * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
1127 Fix TRUE/1 and FALSE/0 confusion. (#107664, Morten Welinder)
1129 * gtk/gtktextmark.c (gtk_text_mark_get_buffer):
1130 * gtk/gtkeditable.c (gtk_editable_get_chars):
1131 * gtk/gtkctree.c (gtk_ctree_find_node_ptr):
1132 * demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
1133 (#107648, Morten Welinder)Fix NULL/FALSE confusion
1134 (#107648, Morten Welinder)
1136 2003-03-04 Matthias Clasen <maclas@gmx.de>
1138 * gtk/gtkobject.h: Add deprecation guards for gtk_object_new ().
1140 Sun Mar 2 23:35:57 2003 Jonathan Blandford <jrb@gnome.org>
1142 * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
1143 handle rtl code. Thanks to Matthias Clasen for an initial patch
1144 to handle the RTL code.
1146 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto
1148 * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto
1150 * gtk/gtktreeview.c: (invalidate_column),
1151 (invalidate_last_column),
1152 (gtk_tree_view_get_real_requested_width_from_column),
1153 (gtk_tree_view_size_allocate_columns),
1154 (gtk_tree_view_size_allocate), (gtk_tree_view_button_press),
1155 (gtk_tree_view_button_release_drag_column),
1156 (gtk_tree_view_update_current_reorder),
1157 (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose),
1158 (gtk_tree_view_key_press), (gtk_tree_view_header_focus),
1159 (gtk_tree_view_get_background_xrange),
1160 (gtk_tree_view_get_arrow_xrange),
1161 (gtk_tree_view_is_expander_column),
1162 (gtk_tree_view_set_column_drag_info),
1163 (gtk_tree_view_move_cursor_left_right):
1166 * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an
1169 * gtk/gtktreeviewcolumn.c:
1170 (gtk_tree_view_column_class_init),
1171 (gtk_tree_view_column_set_property),
1172 (gtk_tree_view_column_get_property),
1173 (gtk_tree_view_column_set_expand),
1174 (gtk_tree_view_column_get_expand),
1175 (gtk_tree_view_column_cell_process_action):
1176 Add support for expand flag. Thanks to Kristian Rietveld for an
1177 initial patch for this.
1179 Fri Feb 28 02:06:17 2003 Jonathan Blandford <jrb@gnome.org>
1182 2003-03-02 Tor Lillqvist <tml@iki.fi>
1185 * gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
1188 2003-03-01 Matthias Clasen <maclas@gmx.de>
1190 * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_vadjustment):
1191 (gtk_scrolled_window_set_hadjustment): Replace uses of
1192 gtk_object_new by g_object_new.
1194 Thu Feb 27 17:44:24 2003 Manish Singh <yosh@gimp.org>
1196 * demos/gtk-demo/main.c
1197 * demos/gtk-demo/tree_store.c
1198 * gdk/x11/gdkscreen-x11.c
1199 * gtk/gtkcellrenderertoggle.c
1207 * gtk/gtkmenushell.c
1211 * gtk/gtktextbuffer.c
1213 * gtk/gtktreeviewcolumn.c
1216 * tests/testtreeedit.c
1217 * tests/testtreefocus.c
1218 * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
1220 Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
1222 * gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
1225 2003-02-24 Sven Neumann <sven@gimp.org>
1227 * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
1229 2003-02-21 Tomas Ogren <stric@ing.umu.se>
1231 * docs/reference/gtk/tmpl/gtktreemodel.sgml: Fix typos in an example
1233 2003-02-20 Matthias Clasen <maclas@gmx.de>
1235 * gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
1236 Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
1238 * gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
1239 (gtk_text_view_update_adjustments): Make sure cursor stays visible
1240 during horizontal scrolling. (#75270)
1242 2003-02-19 Matthias Clasen <maclas@gmx.de>
1244 * tests/testdnd.c: Replace gtk_timeout_* by their GLib
1245 counterparts. (#106532)
1247 * gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
1248 keys_changed virtual function with the keys_changed signal.
1249 (#106512, Jeff Franks)
1251 2003-02-15 Larry Ewing <lewing@ximian.com>
1253 * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
1255 2003-02-17 Mohammad DAMT <mdamt@bisnisweb.com>
1257 * po/id.po: Added Indonesian translation
1258 * configure.in: Added "id" to ALL_LINGUAS
1260 2003-02-14 Matthias Clasen <maclas@gmx.de>
1262 * gtk/gtktextview.c (popup_targets_received): Remove bogus casts.
1264 2003-02-12 Christian Rose <menthos@menthos.com>
1266 * configure.in: Added "yi" to ALL_LINGUAS.
1268 2003-02-12 Matthias Clasen <maclas@gmx.de>
1270 Fix for #82734 and #78216:
1272 * gtk/gtktextview.c (delete_cb):
1273 (select_all_cb): New callbacks for context menu items.
1274 (popup_targets_received): Add "Delete" and "Select All" to context
1275 menu, mnemonics and title caps for all items.
1277 * gtk/gtkentry.c (gtk_entry_delete_cb): New callback for "Delete"
1279 (popup_targets_received): Add "Delete" to context menu, mnemonics
1280 and title caps for all items.
1282 2003-02-09 Tor Lillqvist <tml@iki.fi>
1284 * gtk/gtkfilesel.c (win32_gtk_add_drives_to_dir_list): Use
1285 GetDriveType() to recognize removable drives (in order to avoid
1286 hanging if trying to access an empty floppy drive), instead of
1287 hardcoding A: and B: (#105654).
1289 2003-02-09 Matthias Clasen <maclas@gmx.de>
1291 * gtk/gtkwidget.c (gtk_widget_set_name): Add note about periods in
1294 2003-02-09 Christian Rose <menthos@menthos.com>
1296 * configure.in: Removed "en@IPA.po" from ALL_LINGUAS.
1298 Fri Feb 7 04:49:46 2003 Tim Janik <timj@gtk.org>
1300 * gtk/gtkobject.c: remove quark_user_data usage in
1301 gtk_object_{g|s}et_user_data(). fixes get_user_data()
1302 returning NULL for user_data set through property interface.
1304 * gtk/gtkitemfactory.c (gtk_item_factory_create_item): don't put out
1305 warnings if a pixbuf couldn't be retrieved, since (a) this doesn't
1306 need to be a programming error (in case of loaded data), (b) it breaks
1307 with 2.0 behaviour where extra magic could be used to create empty
1308 images. don't attempt to retrieve pixbufs from NULL extra_data.
1310 2003-02-06 Matthias Clasen <maclas@gmx.de>
1312 * gdk/x11/gdkvisual-x11.c (gdk_visual_get_best_with_depth): Return
1313 a GdkVisual *, not a GdkVisual **. (#105243)
1317 * gtk/gtkcontainer.c:
1322 * gtk/gtkmenuitem.c:
1323 * gtk/gtknotebook.c:
1324 * gtk/gtkselection.c:
1325 * gtk/gtkspinbutton.c:
1327 * gtk/gtktextview.c:
1328 * gtk/gtktooltips.c:
1329 * gtk/gtktreeview.c:
1330 * gtk/gtkwindow.c: Replace uses of gtk_timeout_* and gtk_idle_* by
1331 their non-deprecated GLib counterparts.
1333 * gtk/gtkmain.h: Fully deprecate gtk_timeout_* and gtk_idle_*.
1335 Sun Feb 2 16:45:57 GMT 2003 Tony Gale <gale@gtk.org>
1337 * docs/tutorial/gtk-tut.sgml: cleanups from
1338 Sebastian Rittau (#104832)
1340 2003-02-01 Tor Lillqvist <tml@iki.fi>
1344 * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_foreign_new_for_display,
1345 gdk_pixmap_lookup, gdk_pixmap_lookup_for_display): Implement.
1346 (#104108, Naofumi Yasufuku)
1348 * gdk/gdk.def: Export the above. Export
1349 gdk_screen_get_system_visual, noticed by Ed Woods.
1351 Fri Jan 31 17:45:22 2003 Manish Singh <yosh@gimp.org>
1353 * demos/pixbuf-demo.c
1354 * demos/testpixbuf.c
1355 * demos/gtk-demo/pixbufs.c: remove deprecated gtk_timeout_* usage.
1357 Fri Jan 31 17:33:00 2003 Manish Singh <yosh@gimp.org>
1359 * gtk/gtknotebook.c (gtk_notebook_remove_tab_label): set_state
1360 on the tab_label before unparenting it, in case the unparent
1361 drops the refcount to 0.
1363 2003-02-01 Matthias Clasen <maclas@gmx.de>
1365 * gtk/gtkiconfactory.h: Use GDK_MULTIHEAD_SAFE like all other gtk
1366 headers. Sorry about gtk_selection_clear, Yosh.
1368 Thu Jan 30 17:16:05 2003 Manish Singh <yosh@gimp.org>
1370 * gtk/gtkselection.h: declare gtk_selection_clear in GTK_COMPILATION
1371 too, for gtkwidget.c. Remember people, when introducing new
1372 deprecations, make sure internal code isn't using it, or if so,
1373 reorganize appropriately like I've done in other places.
1375 * tests/testtext.c: don't use deprecated gtk_timeout_* stuff.
1377 2003-01-31 Matthias Clasen <maclas@gmx.de>
1379 * gtk/gtkselection.h:
1380 * gtk/gtkselection.c (gtk_selection_clear): Deprecate. (#85683)
1383 * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
1384 (gdk_pixbuf_render_to_drawable_alpha): Deprecate. (#60582)
1386 * gtk/gtkcolorsel.h:
1387 * gtk/gtkcolorsel.c (gtk_color_selection_set_change_palette_hook):
1390 * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
1392 * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
1393 and gtk_input_* functions. (#71596)
1395 * gtk/gtkentry.c (gtk_entry_move_cursor):
1396 * gtk/gtklabel.c (gtk_label_move_cursor): Handle
1397 GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
1399 * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
1401 * gtk/gtkitemfactory.h:
1402 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
1405 Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
1407 * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
1408 only count the special cell if it is also visible,
1409 (_gtk_tree_view_column_get_neighbor_sizes): only take the width into
1410 account from visible cells,
1411 (gtk_tree_view_column_cell_get_position): likewise, (Reported and
1412 testcase provided by Vasco Alexandre da Silva Costa, via IRC,
1413 tracking bug was #104563).
1415 Thu Jan 30 23:46:15 2003 Kristian Rietveld <kris@gtk.org>
1417 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
1418 subtract expander space and focus line space from the extra space
1419 we are about the allocate. (Fixes #104635).
1421 Thu Jan 30 23:42:03 2003 Kristian Rietveld <kris@gtk.org>
1423 * gtk/gtkstyle.c (apply_affine_on_point): fix rouding error
1424 (Fixes #96242, patch from Soeren Sandmann).
1426 Thu Jan 30 16:54:29 2003 Owen Taylor <otaylor@redhat.com>
1428 * gtk/gtknotebook.c: Patch from Soeren Sandmann
1429 to update the states of the tab label child
1430 widgets to match the state of the tabs.
1431 (#93389, Reported by Tommi Komulainen)
1433 Thu Jan 30 16:30:54 2003 Owen Taylor <otaylor@redhat.com>
1435 * Makefile.am (EXTRA_DIST): Remove gtk+.spec.in from
1436 EXTRA_DIST, and from dist rules. (#102231)
1438 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
1440 * gtk/gtktoolbar.c (set_child_packing_and_visibility): New helper
1441 function that sets the icon's and label's packing options and
1442 visibility based on toolbar->style.
1444 (gtk_toolbar_internal_insert_element):
1445 (gtk_real_toolbar_style_changed): Make use of
1446 set_child_packing_and_visibility() to clean up the code and get
1447 the packing right for icon-only/text-only toolbars. (#104679)
1449 (get_first_child): Remove, and use gtk_bin_get_child() instead.
1451 2003-01-30 Matthias Clasen <maclas@gmx.de>
1453 * gtk/gtktextview.c: Replace PAGE_HORIZONTALLY_HACK_VALUE by
1454 GTK_MOVEMENT_HORIZONTAL_PAGES. (#68947)
1456 * gtk/gtkenums.h: Add GTK_MOVEMENT_HORIZONTAL_PAGES to GtkMovementStep.
1458 Thu Jan 30 16:01:29 2003 Owen Taylor <otaylor@redhat.com>
1460 * gdk/gdkrgb.c (gdk_rgb_try_colormap): Remove the
1461 attempt-to-allocate then free code. To handle multiple
1462 people allocating colors at the same time, we need
1463 to just go ahead and try. (#102213, Shivram U)
1465 2003-01-30 Daniel Elstner <daniel.elstner@gmx.net>
1467 * gtk/gtkcolorsel.c (palette_paint): Explicitely draw an opaque
1468 rectangle using the background color rather than relying on
1469 gdk_window_clear_area(), so that the palette works properly with
1470 pixmap themes. (#101732)
1472 * demos/gtk-demo/colorsel.c: Install an "expose_event" handler
1473 to fill the drawing area in the background color.
1475 Wed Jan 29 14:11:21 2003 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
1477 * modules/input/gtkimcontextxim.c (choose_better_style): fix a memory
1478 initialization error for selecting input style (#103549).
1480 Wed Jan 29 17:02:41 2003 Owen Taylor <otaylor@redhat.com>
1482 * gdk/gdkkeyuni.c (get_decimal_char): Make the
1483 translation of GDK_KP_Decimal dependent on LC_NUMERIC.
1486 Wed Jan 29 15:43:56 2003 Owen Taylor <otaylor@redhat.com>
1488 * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
1489 Make up from the menu bar go to the end of the submenu.
1490 (#96114, Ian Peters.)
1492 * gtk/gtkmenuitem.c (gtk_menu_item_mnemonic_activate):
1493 Only do the select-but-not-activate stuff if the
1494 menu is already active. Otherwise, just activate.
1495 (#101690, Arvind Samptur)
1497 Tue Jan 28 15:18:24 2003 Owen Taylor <otaylor@redhat.com>
1499 * autogen.sh (have_automake): Fix version in complaint
1500 message about automake. (#104366, Rich Burridge)
1502 Mon Jan 27 16:38:13 2003 Owen Taylor <otaylor@redhat.com>
1504 * configure.in: Remove SOEXT stuff; it doesn't work portably.
1506 Mon Jan 27 22:45:15 2003 Kristian Rietveld <kris@gtk.org>
1508 * gtk/gtktreestore.c (gtk_tree_store_move): don't handle b if
1509 we appended/prepended, send the rows_reordered signal to the
1510 correct level ... (Reported by Matthew Tuck).
1512 Mon Jan 27 22:43:11 2003 Kristian Rietveld <kris@gtk.org>
1514 * gtk/gtktreestore.c (gtk_tree_store_sort_helper): don't just bail
1515 out if the level only has one item, recurse over the child if there
1516 is one. (Fixes #100458, reported by Gaël Le Mignot).
1518 Mon Jan 27 22:41:26 2003 Kristian Rietveld <kris@gtk.org>
1520 * gtk/gtktreeview.c (gtk_tree_view_set_model),
1521 (gtk_tree_view_search_equal_func): make TreeView search handle
1522 all types which are transformable by GValue. (Fixes #99803, reported
1525 Mon Jan 27 22:39:25 2003 Kristian Rietveld <kris@gtk.org>
1527 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_sort_column_id):
1528 *really* handle unsetting the ID. Slightly modified patch from
1529 Soeren Sandmann. Fixes #87556, reported by Jarek Dukat.
1531 Mon Jan 27 22:33:43 2003 Kristian Rietveld <kris@gtk.org>
1533 Fixes the total GtkTreeSortable mess, and #83195, reported by
1536 * gtk/gtktreestore.c (gtk_tree_store_get_sort_column_id),
1537 (gtk_tree_store_set_sort_column_id), (gtk_tree_store_set_sort_func),
1538 (gtk_tree_store_set_default_sort_func): use the constant
1539 GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID instead of -1, make functions
1540 work as advertised by the documentation.
1542 * gtk/gtklistore.c (gtk_list_store_get_sort_column_id),
1543 (gtk_list_store_set_sort_column_id), (gtk_list_store_set_sort_func),
1544 (gtk_list_store_set_default_sort_func): likewise.
1546 * gtk/gtktreemodelsort.c (gtk_tree_model_set_sort_column_id),
1547 (gtk_tree_model_set_sort_func),
1548 (gtk_tree_model_sort_set_default_sort_func): make functions work
1549 as advertised by the documentation.
1551 Mon Jan 27 22:31:56 2003 Kristian Rietveld <kris@gtk.org>
1553 * gtk/gtktreeview.c (gtk_tree_view_button_press): update focus_column
1554 before we decide if we edit. (fixes #100973, reported by Dave Cook).
1556 Mon Jan 27 22:29:30 2003 Kristian Rietveld <kris@gtk.org>
1558 Bug report and test case from Paolo Maggi via IRC.
1560 * gtk/gtkliststore.c (gtk_list_store_swap): update tail if needed,
1561 (gtk_list_store_move): update tail if needed.
1563 Mon Jan 27 16:19:59 2003 Owen Taylor <otaylor@redhat.com>
1565 * gtk/gtksocket.c (gtk_socket_filter_func): event->any.window
1566 might be NULL. Use gtk_widget_get_display (widget)
1567 (#102860, Thomas Leonard)
1569 Mon Jan 27 15:58:31 2003 Owen Taylor <otaylor@redhat.com>
1571 * configure.in: Fix --without-modules/--disable-modules
1572 confusion that was causing --disable-modules not to work.
1573 (#102865, Akira Tagoh)
1575 * configure.in: Fix problem with plain --with-xinput
1576 (#104266, Akira Tagoh)
1578 2003-01-24 Sebastian Rittau <srittau@jroger.in-berlin.de>
1580 * docs/tutorial/gtk-tut.sgml: Fix a few typos, introduced by my last
1583 Fri Jan 24 17:06:41 GMT 2003 Tony Gale <gale@gtk.org>
1585 * docs/tutorial/gtk-tut.sgml: Remove duplicate copy of tictactoe.h
1587 Thu Jan 23 21:15:29 GMT 2003 Tony Gale <gale@gtk.org>
1589 * docs/faq/gtk-faq.sgml: Learn to spell Library
1591 Thu Jan 23 20:56:56 GMT 2003 Tony Gale <gale@gtk.org>
1592 * Sebastian Rittau <srittau@jroger.in-berlin.de>:
1594 docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a
1595 Composite widget" to modern standards. (I.e. use gobject instead of
1596 glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869.
1598 * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe
1599 code in Appendix C to reflect above changes.
1601 * examples/rangewidgets/rangewidgets.c: From Roger Leigh
1602 auto resize on page size change
1604 2003-01-23 Daniel Elstner <daniel.elstner@gmx.net>
1606 * gtk/gtktoolbar.c (gtk_toolbar_hide_all): Override hide_all
1607 in addition to show_all in order to keep them symmetric. (#102201)
1609 Wed Jan 22 14:18:46 2003 Manish Singh <yosh@gimp.org>
1611 * gdk/x11/gdkevents-x11.c (translate_key_event): add a "return" at
1612 the end of the function, so there is a statement following the "out"
1613 label in all cases (fixes #101961)
1615 2003-01-22 Christian Rose <menthos@menthos.com>
1617 * configure.in: Added "mn" to ALL_LINGUAS.
1619 Wed Jan 15 17:02:18 2003 Owen Taylor <otaylor@redhat.com>
1621 * gtk/gtktextlayout.c (gtk_text_layout_validate_yrange):
1622 Fix off-by-one error on the backward iteration loop,
1623 that was causing the wrong range to be redrawn.
1624 (at least part of #72734)
1626 2003-01-21 Matthias Clasen <maclas@gmx.de>
1628 * gtk/gtktextview.c (gtk_text_view_size_allocate): Adjust the
1629 vadjustment value after changing its bounds. (fixes #101963 and
1632 * gtk/gtkcolorsel.c (hex_changed): Fix clamping to [0,1] to avoid
1633 unnecessary roundtrip failures. (#93500)
1635 2003-01-19 Tor Lillqvist <tml@iki.fi>
1639 Fix for #103614 and some other problems with GtkFileSelection on
1642 * gtk/fnmatch.c (get_char): Need to use g_unichar_tolower(), not
1643 g_ascii_tolower(). Windows file names are case-insensitive for all
1646 * gtk/gtkfilesel.c: Instead of checking for G_OS_WIN32 or
1647 G_WITH_CYGWIN, check G_PLATFORM_WIN32. Move inclusion of gtkintl.h
1648 earlier, as it includes config.h unconditionally, and gtkprivate.h
1649 redefines GTK_LOCALEDIR.
1650 (struct _CompletionDirSent): Ifdef out the fields not used on
1652 (compare_utf8_filenames, compare_sys_filenames): Need different
1653 comparison implementation for UTF-8 file names and system locale
1654 file names on Win32. Cannot simply use g_ascii_strcasecmp(), but
1655 need to casefold all Unicode letters.
1656 (cmpl_completion_matches, open_dir, correct_parent): Ifdef out
1657 variables not used on Win32 to avoid warnings about unused
1659 (open_ref_dir): Use g_path_skip_root() to skip past potential
1660 drive letter in front of the leading (back)slash.
1661 (open_new_dir): Ifdef out use of CompletionDirSent fields not
1663 (correct_parent): Bypass inode check also on Cygwin.
1665 Fix bug noticed by Alex Shaduri: Tooltips and other
1666 GDK_WINDOW_TEMP windows were activated. This looked very odd, and
1667 was a regression from earlier versions.
1669 * gdk/win32/gdkwindow-win32.c (show_window_internal): Fine-tune
1670 behaviour. Don't ever activate GDK_WINDOW_TEMP windows.
1671 (gdk_window_move, gdk_window_resize): Add debug logging.
1673 * gdk/win32/gdkevents-win32.c (gdk_event_translate): When we get a
1674 WM_SIZE message for a non-visible (withdrawn) window, don't clear
1675 the GDK_WINDOW_STATE_WITHDRAWN bit. The window is still withdrawn
1676 even if its size changes.
1678 2003-01-16 Matthias Clasen <maclas@gmx.de>
1680 * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations): Typo fixes.
1681 (totally_invisible_line): Fix an incorrect optimization which
1682 caused invisible paragraphs to be occasionally misrendered.
1684 Wed Jan 15 15:55:47 2003 Owen Taylor <otaylor@redhat.com>
1686 * gtk/gtksettings.c: Set the double click speed from
1687 XSETTINGS when creating a new GtkSettings object
1688 as well as when getting a notify. (#103601, reported
1691 Wed Jan 15 14:56:09 2003 Owen Taylor <otaylor@redhat.com>
1693 * gtk/gtknotebook.c (gtk_notebook_size_allocate):
1694 Show/hide the notebook event window as necessary,
1695 we weren't previously keeping the visibility updated
1698 2003-01-15 Matthias Clasen <maclas@gmx.de>
1700 * examples/menu/itemfactory.c:
1701 * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory
1704 2002-12-29 Murray Cumming <murrayc@usa.net>
1708 * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c:
1709 Actually implement the GtkTreeDragSource::row_draggable virtual
1710 function in GtkListStore and GtkTreeStore instead of just checking
1711 whether it's implemented at all. This means that DnD isn't broken by
1712 gtkmm's virtual function wrappers. The alternative would be to
1713 hard-code the TRUE return value into gtkmm's wrappers, but that's
1714 part of GTK+'s implementation, not it's API.
1716 Tue Jan 14 23:42:29 2003 Kristian Rietveld <kris@gtk.org>
1718 * gtk/gtktreeview.c: fix compiler warning.
1720 Tue Jan 14 23:29:00 2003 Kristian Rietveld <kris@gtk.org>
1722 * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render):
1723 make sure exposed pixbufs are clipped to the exposed area before
1724 drawing, which is a slight speedup. (#102379, patch from Soeren
1727 Tue Jan 14 23:26:41 2003 Kristian Rietveld <kris@gtk.org>
1729 * gtk/gtktreeview.c (validate_visible_area): silly typo fix,
1730 only free scroll_to_path when the complete tree has been validated.
1731 This makes sure that we scrolled to the correct path.
1733 Tue Jan 14 23:25:32 2003 Kristian Rietveld <kris@gtk.org>
1735 * gtk/gtktreeview.c (gtk_tree_view_style_set): update the
1736 background of widget->window and bin->window. (Fixes #96650, reported
1739 Tue Jan 14 23:24:02 2003 Kristian Rietveld <kris@gtk.org>
1741 * gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): process
1742 updates before scrolling, avoiding a "selection streak". (Fixes
1743 #101235, patch from Soeren Sandmann).
1745 Tue Jan 14 23:22:13 2003 Kristian Rietveld <kris@gtk.org>
1747 * gtk/gtktreeview.c (validate_visible_area): actually put values
1748 in the requisition using gtk_widget_size_request. (Fixes #100172,
1749 reported by Kjartan Maraas).
1751 Tue Jan 14 23:19:45 2003 Kristian Rietveld <kris@gtk.org>
1753 * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): cancel the
1754 arrow animation timeout before we actually reorder the rbtree. If
1755 we don't do this we can get stuck arrows,
1756 (cancel_arrow_animation): new function. (Fixes #93629, part 2,
1757 reported and testcase provided by Hans Petter Jansson).
1759 Tue Jan 14 23:18:21 2003 Kristian Rietveld <kris@gtk.org>
1761 * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range):
1762 anchor_path should be start_path, not end_path. (Fixes #102618,
1763 patch from Carlos Garnacho Parro).
1765 Tue Jan 14 23:16:15 2003 Kristian Rietveld <kris@gtk.org>
1767 * gtk/gtkliststore.c (gtk_list_store_move): also update the tail,
1768 only correct new_pos if we don't move to the head/tail.
1770 Tue Jan 14 23:11:55 2003 Kristian Rietveld <kris@gtk.org>
1772 * gtk/gtktreestore.c (gtk_tree_store_swap): take the path from
1773 the parent_iter if depth >= 1, so we send the reordered signal to
1774 the correct level, remove debugging printfs which I forgot the remove
1775 earlier (2.2.0 shipped with this, oops). (Fixes #103198, Reported and
1776 testcase provided by Matthew Tuck).
1778 Tue Jan 14 20:58:44 2003 Kristian Rietveld <kris@gtk.org>
1780 * gtk/gtktreeview.c (invalite_last_column): split out actual column
1781 invalidation into invalidate_column(),
1782 (gtk_tree_view_size_allocate_columns): invalidate column if the
1783 new width is larger than the old width.
1784 (fixes #102890, reported by Alex Duggan).
1786 2003-01-14 Matthias Clasen <maclas@gmx.de>
1788 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip
1789 invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
1792 * gtk/gtktextiter.c,
1793 gtk/gtktextiter.h: Add some variant movement functions which
1794 skip invisible chars, and do some cleanups.
1796 2003-01-12 Tor Lillqvist <tml@iki.fi>
1800 * gtk/gtkmain.c: Move inclusion of config.h and gtkintl.h earlier,
1801 as gtkprivate.h redefines GTK_LOCALEDIR on Win32, for run-time
1804 * gdk/Makefile.am (libgdk_win32_2_0_la_DEPENDENCIES): Depend on
1808 * gtk/gtk.def: Add some missing entries. Thanks to Kenichi SUTO.
1810 * gtk-zip.sh.in (DEVZIP): Add bin/{gtk-query-immodules-2.0,
1811 gtk-demo}.exe and share/gtk-2.0.
1813 * gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
1814 Implement by setting or clearing the WS_EX_TOOLWINDOW extended
1816 (gdk_window_set_type_hint): Add all cases to the switch (not all
1817 do anything, though). Handle GDK_WINDOW_TYPE_HINT_TOOLBAR by
1818 calling gdk_window_set_skip_taskbar_hint(). This means that GTK
1819 won't know that the skip_taskbar hint is on for the window, is
1822 Wed Jan 8 18:43:03 2003 Manish Singh <yosh@gimp.org>
1824 * gdk/x11/gdkdisplay-x11.c: #include <stdlib.h> for putenv,
1825 <string.h> for strlen.
1827 * gdk/x11/gdkscreen-x11.c: #include <stdlib.h> for getenv,
1828 <string.h> for strrchr.
1830 * tests/testgtk.c (create_saved_position): "x" and "y" properties
1831 for widgets no longer exist, use gtk_window_move instead.
1833 * test/testtextbuffer.c (check_get_set_text): cast strlen to
1836 2003-01-08 Matthias Clasen <maclas@gmx.de>
1838 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix display of
1839 the selection in the presence of invisible segments.
1841 2003-01-07 Matthias Clasen <maclas@gmx.de>
1843 * gtk/gtktextview.c (gtk_text_view_class_init): Bind C-/ and C-\
1844 to "select all" and "unselect all". (#102065)
1846 * gtk/gtktextview.h (struct _GtkTextView): Add a comment that
1847 the just_selected_element is unused.
1849 * gtk/gtktextview.c (extend_selection): New helper function to
1850 find the range that should be added to the selection.
1851 (selection_motion_event_handler):
1852 (gtk_text_view_start_selection_drag):
1853 (gtk_text_view_end_selection_drag):
1854 (selection_motion_event_handler):
1855 (selection_scan_timeout): Support select-by-words/lines.
1856 (gtk_text_view_button_press_event): Start a selection drag on
1857 double/triple clicks. (#78499)
1859 2003-01-06 Matthias Clasen <maclas@gmx.de>
1861 Implement a utility function proposed in #102534:
1863 * gtk/gtktextbtree.h:
1864 * gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
1865 (_gtk_text_btree_place_cursor): Now a simple wrapper around
1866 _gtk_text_btree_select_range().
1868 * gtk/gtktextbuffer.h:
1869 * gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
1870 (gtk_text_buffer_place_cursor): Now a simple wrapper around
1871 gtk_text_buffer_select_range().
1873 2003-01-05 Havoc Pennington <hp@pobox.com>
1875 * configure.in: fix a stray bracket that was breaking the build
1877 2003-01-05 Tor Lillqvist <tml@iki.fi>
1879 * gtk-zip.sh.in: Use correct DLL and import library names, with
1880 GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION.
1881 (DEVZIP): Add gdk-pixbuf-query-loaders.exe.
1883 * configure.in: Improve check for dimm.h.
1885 * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in
1886 gdk-pixbuf/Makefile.am.
1888 * gdk-pixbuf/makefile.mingw.in
1889 * gdk-pixbuf/pixops/makefile.mingw.in
1890 * gdk/makefile.mingw.in
1891 * gdk/win32/makefile.mingw.in
1892 * gtk/makefile.mingw.in: Remove. Not maintained anyway.
1894 * gdk-pixbuf/Makefile.am
1895 * gdk-pixbuf/pixops/Makefile.am
1897 * gdk/win32/Makefile.am
1899 * configure.in: Remove makefile.mingw{,.in} from here, too.
1901 * README.win32: Updates. Don't mention the now removed
1902 makefile.mingw files.
1905 * gtk/gtk.def: Add a couple of missing entries.
1907 * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy().
1909 * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround
1912 * gdk/win32/rc/Makefile.am: Add hack to help
1913 build/win32/lt-compile-resource decide which kind of libtool
1914 object file to produce.
1916 2003-01-05 Matthias Clasen <maclas@gmx.de>
1918 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Make
1919 C-Down step through the sequence of paragraph ends (old behaviour
1920 included paragraph starts). (#80340, patch by Narayana Pattipati)
1922 * gtk/gtktextiter.c (_gtk_text_btree_get_iter_at_first_toggle):
1923 Check for a tag toggle at the start iterator before calling
1924 gtk_text_iter_forward_to_tag_toggle(). (#102090, patch by Daniel
1927 2003-01-04 Matthias Clasen <maclas@gmx.de>
1929 * gtk/gtkfilesel.h (struct _GtkFileSelection): Add /*< public >*/
1930 and /*< private >*/ as appropriate. (#97211)
1932 2003-01-04 Tor Lillqvist <tml@iki.fi>
1934 * Makefile.am (EXTRA_DIST): Don't distribute gtk-zip.sh, but do
1935 distribute gtk-zip.sh.in.
1937 * gtk-zip.sh.in (DEVZIP): Add gdk-pixbuf-csource.exe and .1.
1939 2003-01-03 Havoc Pennington <hp@pobox.com>
1941 * docs/Makefile.am (EXTRA_DIST): put it in EXTRA_DIST
1943 * docs/text_widget_internals.txt: add a file documenting some of
1944 the text widget internals
1946 2003-01-02 Matthias Clasen <maclas@gmx.de>
1948 * gtk/gtkwindow.c (gtk_window_get_focus): Document that it may
1949 return NULL. (#102069)
1951 2003-01-01 Matthias Clasen <maclas@gmx.de>
1953 * gtk/fnmatch.c (FNMATCH_TEST_CASES): #undef, since having
1954 a main() in the library is obviously bad.
1956 2002-12-27 Matthias Clasen <maclas@gmx.de>
1958 * gtk/gtktextview.c (gtk_text_view_drag_data_received): Place the
1959 cursor at drop point. (#72384)
1960 (gtk_text_view_size_allocate): Update the horizontal adjustment
1963 2002-12-25 Matthias Clasen <maclas@gmx.de>
1965 * gtk/gtktextdisplay.c (gtk_text_layout_draw): Fix highlighting of
1966 selection wrt. to empty lines. (#90435, #90582, #91619)
1968 * gtk/gtktextview.c (gtk_text_view_preedit_changed_handler):
1969 Keep the cursor on screen. (#96929)
1971 2002-12-24 Matthias Clasen <maclas@gmx.de>
1973 * gtk/gtktextbuffer.c (paste_from_buffer):
1974 (clipboard_text_received): Let the user action span the insertion
1975 and the deletion of the old selection. (#82844)
1977 2002-12-23 Matthias Clasen <maclas@gmx.de>
1979 * gtk/gtktextiter.c (gtk_text_iter_backward_sentence_starts):
1980 Don't call gtk_text_iter_backward_sentence_start() if
1981 count is zero. (#99115)
1983 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Call
1984 move_cursor() even if the cursor hasn't moved, since it has the
1985 side effect of canceling the selection. (#81395, #98537, #98333)
1987 2002-12-22 Matthias Clasen <maclas@gmx.de>
1989 * gtk/gtktextlayout.c (add_preedit_attrs): Don't add attributes
1990 with empty ranges. (fixes #101564 and #80637)
1992 2002-12-21 Tor Lillqvist <tml@iki.fi>
1994 * gdk/win32/gdkwindow-win32.c (gdk_window_new): Move the code that
1995 sets the window style and extended window style, and adjusts the
1996 width and height to take the window decorations into account
1997 earlier. The adjusted width and height used to be ignored. Remove
1998 the local x, y, width and height variables, no need to further
1999 confuse the code by having local copies. (Partial fix, I hope, for
2002 (gdk_window_move): When moving top-level windows, take title bar
2003 and border width into account, offsetting the coordinates before
2004 calling SetWindowPos().
2006 (gdk_window_set_decorations, gdk_window_set_functions):
2007 Reimplement, taking into account the peculiar semantics of
2008 GDK_DECOR_ALL and GDK_FUNC_ALL. (#79036)
2010 (gdk_window_get_decorations): Implement. (#98981)
2012 (gdk_window_set_type_hint): When setting
2013 GDK_WINDOW_TYPE_HINT_MENU, call gdk_window_set_decorations().
2016 * gdk/gdk.def: Add gdk_window_get_decorations. (#98981)
2018 2002-12-21 Matthias Clasen <maclas@gmx.de>
2020 * gtk/gtktextview.c (gtk_text_view_set_background): New static
2021 function to set the background of all windows.
2022 (gtk_text_view_style_set): Use gtk_text_view_set_background().
2023 (gtk_text_view_state_changed): New function; change background
2024 according to state. (#88126)
2026 2002-12-21 Havoc Pennington <hp@pobox.com>
2028 * gtk/gtktextview.c (gtk_text_view_move_visually): fix the documentation