1 2002-03-27 Matthias Clasen <maclas@gmx.de>
3 * configure.in: Try to find libpng via pkg-config first,
4 since libpng-1.2.2 will come with a .pc file.
6 Wed Mar 27 11:10:39 2002 Owen Taylor <otaylor@redhat.com>
8 * gtk/gtknotebook.c (gtk_notebook_real_remove): Set
9 page->last_focus_child to NULL as well as removing the
10 weak reference, to deal with reentrancy in set_focus_child().
11 (#76634, Dennis Björklund)
13 2002-03-27 Murray Cumming <murrayc@usa.net>
15 * gtk/gtktreeview.c: Corrected registered return type of
16 "move-cursor" signal. Had to add a marshaller to
17 gtk/gtkmarshalers.list.
19 Tue Mar 26 14:46:50 2002 Owen Taylor <otaylor@redhat.com>
21 * gtk/gtkmenu.c (gtk_menu_popup): Shuffle the ordering around
22 some more (position before realizing) fixing problems with
23 arrows popping up at the wrong time (#73386), hopefully not
24 introducing other problems. (Reported by Ettore Perrazoli, others)
26 2002-03-26 Dave Camp <dave@ximian.com>
28 * gtk/gtktreeview.c (gtk_tree_view_button_press): Free the path
29 after calling gtk_tree_view_row_activated() rather than before.
31 2002-03-25 Sven Neumann <sven@gimp.org>
33 * gtk/gtkrc.c (gtk_rc_parse_font_name): free the style's
34 font_description before assigning a new one.
35 (gtk_rc_parse_stock): always unref the created icon_set. #76289
37 2002-03-25 Mark McLoughlin <mark@skynet.ie>
39 * gtk/gtkbindings.c: (gtk_binding_entry_add_signal),
40 kill code duplicated in gtk_binding_entry_add_signall.
42 Sun Mar 24 10:32:38 2002 Jonathan Blandford <jrb@redhat.com>
44 * gtk/gtktreemodel.c (gtk_tree_path_copy): Make path arg const, #75653
46 * gtk/gtkfontsel.c (gtk_font_selection_show_available_styles): fix
49 * gtk/gtktreeview.c (gtk_tree_view_button_press): remove the grab
50 when we emit row_activated so that listeners of this signal can
51 grab the mouse, #75629
53 2002-03-23 Havoc Pennington <hp@pobox.com>
55 * gtk/gtktextlayout.c (gtk_text_layout_real_invalidate):
56 invalidate the line containing start, even if the [start,end)
57 range is empty (just invalidate [start,end], essentially).
58 Partially fixes #72374
60 2002-03-23 Havoc Pennington <hp@pobox.com>
62 * gtk/gtktextview.c (gtk_text_view_do_popup): end any selection in
63 progress, patch from db@zigo.dhs.org, #74620
65 2002-03-23 Havoc Pennington <hp@pobox.com>
67 * gtk/gtktextview.c (gtk_text_view_move_cursor_internal): extend
68 selection for pageup/pagedown and ctrl+pageup/pagedown if
69 shift is held. more of #53934
71 2002-03-23 Havoc Pennington <hp@pobox.com>
73 * gtk/gtktextview.c (gtk_text_view_destroy_layout): disconnect
74 layout handlers earlier in the function, to avoid possible
76 (gtk_text_view_invalidate): Don't install idle handlers if
77 layout == NULL, otherwise we get problems during finalization
78 since clearing the buffer invalidates and puts the idle handlers
79 back after we destroy the layout. #74660
80 (gtk_text_view_ensure_layout): Install the validation handlers
81 right after creating the layout.
83 * gtk/gtktexttagtable.c (foreach_unref): call
84 _gtk_text_buffer_notify_will_remove_tag(), #75126
86 2002-03-22 Havoc Pennington <hp@pobox.com>
88 * gdk/x11/gdkfont-x11.c (gdk_fontset_load): add more explanatory
89 text to the error message about missing charsets, and use
90 g_printerr() not g_warning() since this is typically not a
91 programming error (we do not export any API to ask whether
92 a font set will have missing charsets so apps realistically can't
93 do anything other than try the gdk_fontset_load())
95 * gtk/gtktextview.c (gtk_text_view_key_press_event): return FALSE
96 if the text view isn't editable and the user presses Return,
97 so default buttons and such can be activated, #74937
99 * gtk/gtktextbuffer.c (paste_from_buffer): don't insert
100 if the insertion point is not editable and the paste
101 is interactive, #74125
103 * gtk/gtkwindow.c (gtk_window_move_resize): enhance the #if 0
106 * gtk/gtktextbuffer.c (cut_or_copy): only remove the previous
107 cut/copied data right before replacing it, when we know we are
108 going to replace it. Fixes #74049
110 2002-03-22 Richard Hult <rhult@codefactory.se>
112 * gdk/gdkevents.c (gdk_event_get_root_coords): Fix typo, where x
113 value was assigned to both x and y.
115 Fri Mar 22 11:29:11 2002 Owen Taylor <otaylor@redhat.com>
117 Partial fix for problem where keypad keys acted
118 as shift-arrows in an entry rather than arrows (#74327)
120 * gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Sort lookup
121 results by number of modifiers in the entry. Fixes
122 problem where if a key matched both modified and unmodified
123 key bindings ... e.g., the distinguishing key binding
124 was consumed, then it was random which was used.
126 * gtk/gtkbindings.c (gtk_binding_entries_sort_patterns):
127 Catch the case where there are multiple entries from the
128 same bindingset (with different modifiers), and use only
129 the first entry, which, with the change in _gtk_key_hash_lookup()
130 will be the preferred value.
132 Fri Mar 22 10:56:19 2002 Owen Taylor <otaylor@redhat.com>
134 * gtk/gtkaccelmap.c (gtk_accel_map_save_fd): Fix memory
135 leak. (#74400, Morten Welinder.)
137 * gtk/gtkaccelmap.c: Properly handle short returns from
138 write() calls. (Handling EINTR isn't enough... that only
139 handles the case where you were interrupted before you
140 wrote a single byte.)
142 * gdk/linux-fb/gdkmouse-fb.c gdk/linux-fb/gdkkeyboard-fb.c:
143 Robustify against short returns from write() calls.
145 Fri Mar 22 10:12:10 2002 Owen Taylor <otaylor@redhat.com>
147 * gtk/gtktextview.c (gtk_text_view_paint): Change
148 G_BREAKPOINT() to g_assert_not_reached ().
149 (#75865, Ashok Venkiteswaran)
151 2002-03-22 Tor Lillqvist <tml@iki.fi>
153 * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Don't clear
154 all of the pen_style, just the PS_STYLE_MASK. Seems to fix #74441,
155 but that is just the special case of one-pixel wide one-pixel
156 on-off dotted lines. To fully implement generic X11 style dashed
157 lines a major rewrite would be needed.
159 2002-03-21 Matthias Clasen <maclas@gmx.de>
161 * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Trivial typo
162 fix. (Vitaly Tishkov, #75726)
164 Thu Mar 21 10:04:05 2002 Owen Taylor <otaylor@redhat.com>
166 * gdk/gdkwindow.c (gdk_window_real_get_depth): Remove
167 some left over debugging code with a G_BREAKPOINT()
170 Wed Mar 20 19:33:31 2002 Owen Taylor <otaylor@redhat.com>
172 * gtk/gtkcalendar.c (gtk_calendar_main_button): When
173 changing months when the user clicks on a prev-month
174 or next-month day, focus and select the new day.
175 Ignore double clicks on prev-month, next-month days.
176 (Based on suggestions from Andras Salamon, #74173)
178 * gtk/gtkcalendar.c: Implement the focused/unfocused
179 selected color change.
181 2002-03-20 Alex Larsson <alexl@redhat.com>
183 Patches from Carlo E. Prelz <fluido@fluido.as>
184 Now gtkfb at least compiles and mostly works. The keyboard
185 stuff needs more loving.
187 * gdk/linux-fb/gdkkeyboard-fb.c (xlate_get_for_keyval,
188 xlate_get_for_keycode, raw_get_for_keyval, raw_get_for_keycode):
189 At least set the out parameters for these calls.
191 * gdk/linux-fb/gdkmain-fb.c:
192 (gdk_pointer_grab_info_libgtk_only, gdk_keyboard_grab_info_libgtk_only):
193 Implement new functions.
195 Wed Mar 20 19:00:03 2002 Owen Taylor <otaylor@redhat.com>
197 * gtk/gtkentry.c (gtk_entry_set_text): Short-circuit
198 the text to the exact same thing, so we don't
199 unexpectedly change the selection or cursor position.
200 (#74290, John Ellis.)
202 Thu Mar 21 00:05:14 2002 Kristian Rietveld <kris@gtk.org>
204 * gtk/gtktreeview.c (gtk_tree_view_get_background_area),
205 (gtk_tree_view_get_cell_area): fix logic (fixes #74235, #73593)
207 Wed Mar 20 17:11:51 2002 Owen Taylor <otaylor@redhat.com>
209 * gtk/gtkrc.c: Patch from Richard Hestilow to fix
210 gtk-font-name changes for widgets that get the actual
211 default style. (#73709)
213 Wed Mar 20 22:59:23 2002 Kristian Rietveld <kris@gtk.org>
215 * gtk/gtkrbtree.[ch]: add _gtk_rbtree_set_fixed_height()
217 * gtk/gtktreeprivate.h: add fixed_height_check field
219 * gtk/gtktreeview.c (gtk_tree_view_init): initialize
220 scroll_sync_timer and fixed_height_check
221 (do_validate_rows): add fixed_height_check. If all validated rows
222 in the first cycle have the same height, then we set that height for
223 the entire tree. This is some sort of 'fake' optimization, but helps
224 a lot for the common case. We keep validating the entire tree in
225 the background though.
226 (gtk_tree_view_set_model): reset fixed_height_check
228 Wed Mar 20 16:36:08 2002 Owen Taylor <otaylor@redhat.com>
230 * gtk/*.c: Patch from Erwann Chenede, #73900 fixing
231 a lot of warnings with Forte CC, mostly implicit
232 casts between void * and function pointers.
234 * gdk/gdkevents.c (gdk_event_get_state): GdkEventVisibility's
235 state field is not a GdkModifierType. (Also #73900)
237 Wed Mar 20 12:35:22 2002 Owen Taylor <otaylor@redhat.com>
239 * gtk/gtkwidget.c (gtk_widget_grab_default): Remove
240 leftover notification of has-default. (#75508, Jacob
243 Wed Mar 20 12:27:07 2002 Owen Taylor <otaylor@redhat.com>
245 * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow
246 arrow keys as accelerators, as long as some modifier
249 * gtk/gtkaccelgroup.c (gtk_accelerator_valid): Fix
250 incorrect example in the docs.
252 Wed Mar 20 12:06:30 2002 Owen Taylor <otaylor@redhat.com>
254 * gtk/gtkwidget.c (gtk_widget_set_child_visible):
255 Fix segfault when widget->parent is NULL.
256 (#75615, Alexey A. Malyshev)
258 Wed Mar 20 11:32:07 2002 Owen Taylor <otaylor@redhat.com>
260 * gtk/gtkentry.c: Improve test to prevent infinite
261 loop. (#74952, Thomas Leonard)
263 * gtk/gtkmenushell.c (gtk_real_menu_shell_cycle_focus):
264 Fix warning when toplevel menu shell isn't a menu
265 bar. (Thomas Leonard, #75602)
267 Wed Mar 20 11:00:59 2002 Owen Taylor <otaylor@redhat.com>
269 * configure.in: Use $PKG_CONFIG, not pkg-config.
270 (LEE Sau Dan, #75572)
272 Wed Mar 20 10:55:56 2002 Owen Taylor <otaylor@redhat.com>
274 * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix assignment
275 of time in scroll events. (Sven Neumann, #75574)
277 2002-03-20 Tor Lillqvist <tml@iki.fi>
279 * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window): Use
280 gdk_window_get_toplevel(), as it is the top-level windows that are
283 * gdk/win32/gdkwin32.h: Don't include gdkinternals.h.
285 2002-03-19 jacob berkman <jacob@ximian.com>
287 * gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
288 gtk_combo_func() returns NULL (bug #75464)
290 2002-03-18 jacob berkman <jacob@ximian.com>
292 * gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the
293 correct min/max values for the ratio property (fixes #75331)
295 Mon Mar 18 11:55:03 2002 Owen Taylor <otaylor@redhat.com>
297 * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave):
298 Patch from Yao Zhang fixing reference count leak.
300 * gtk/gtkentry.c (gtk_entry_key_release): if (entry->editable),
301 not if (!entry->editable).
303 Mon Mar 18 11:09:17 2002 Owen Taylor <otaylor@redhat.com>
305 * gdk/x11/gdkwindow-x11.c (gdk_window_set_override_redirect):
306 Fix backwards conditional. (#75019, Dan Winship.)
308 Sun Mar 17 01:11:16 2002 Kristian Rietveld <kris@gtk.org>
310 * gtk/gtktreeview.c (gtk_tree_view_size_request): use
311 do_validate_rows instead of validate_rows_handler (fix by
314 Sat Mar 16 23:54:56 2002 Kristian Rietveld <kris@gtk.org>
316 * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_bit_gravity): just
317 return when we have an input_only window (fix by Owen Taylor)
319 * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add
322 * gtk/gtktreeview.c (install_scroll_sync_handler): new function,
323 (scroll_sync_handler): ditto,
324 (gtk_tree_view_unrealize): take scroll_sync_timer into account
325 (gtk_tree_view_row_deleted): install scroll_sync_timer instead of
326 calling top_row_to_dy/dy_to_top_row directly
327 -- this greatly speeds up clearing the model (#73199)
329 * gtk/gtktreemodelsort.c
330 (gtk_tree_model_sort_convert_path_to_child_path): fix up this function,
331 for some reason I really screwed it up (fixes #74663)
333 2002-03-16 Sven Neumann <sven@gimp.org>
335 * configure.in (GDK_PIXBUF_DEP_CFLAGS) (GDK_PIXBUF_XLIB_DEP_CFLAGS)
336 (GDK_DEP_CFLAGS) (GTK_DEP_CFLAGS): include CFLAGS from gthread-2.0
337 so that the libs work correctly in a threaded environment.
339 Fri Mar 15 12:51:42 2002 Jonathan Blandford <jrb@redhat.com>
341 * gtk/gtktreeviewcolumn.c
342 (gtk_tree_view_column_new_with_attributes): add example to docs,
343 as people are seeming to have trouble with this function.
345 2002-03-15 Tor Lillqvist <tml@iki.fi>
347 * configure.in: Set MATH_LIB to empty also on Win32.
349 Fri Mar 15 15:37:01 2002 Owen Taylor <otaylor@redhat.com>
351 * gdk/x11/gdkdrawable-x11.c (convert_to_format):
352 Fix byte shift arithmetic for big-endian. (Tracked
353 down with help from Tuomas Kuosmanen)
355 Fri Mar 15 11:28:41 2002 Jonathan Blandford <jrb@redhat.com>
357 * gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
358 make args const, 74159
359 (gtk_tree_view_insert_column_with_attributes): ditto
361 * gtk/gtktreeviewcolumn.c
362 (gtk_tree_view_column_cell_process_action): remov unused variables.
364 Fri Mar 15 13:31:51 2002 Soeren Sandmann <sandmann@daimi.au.dk>
366 * gtk/gtkmenu.c (gtk_menu_leave_notify): Fix test for "active
369 2002-03-15 Padraig O'Briain <padraig.obriain@sun.com>
371 * gdk/x11/gdkkeys-x11.c (update_keymaps): Fudge keymap to have lower
372 upper case variants if there is only a single keysym per keycode and
373 the key symbol has upper and lower case variants (#74512)
375 Thu Mar 14 17:09:52 2002 Owen Taylor <otaylor@redhat.com>
377 * gdk/gdkwindow.c (gdk_window_process_all_updates): Fix rather
378 improbable reentrancy problem if a window is destroyed
379 while updates are being processed on another window. (Noticed
380 by Michael Meeks, #74708)
382 2002-03-14 Vitaly Tishkov <tvv@sparc.spb.su>
384 * gtk/gtktreemodelsort.c
385 typo in docs for gtk_tree_model_sort_convert_iter_to_child_iter() fixed
388 Thu Mar 14 11:17:18 2002 Owen Taylor <otaylor@redhat.com>
390 * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry): When
391 removing keys from the key hash, reinsert the right list
392 back into the hash. (Dave Camp, #74571)
394 Wed Mar 13 17:17:40 2002 Owen Taylor <otaylor@redhat.com>
396 * gtk/gtkobject.h: Remove left-over GTK_OBJECT_CONNECTED
397 macro that was defined in terms of the now-gone GTK_CONNECTED
398 flag. (Seth Burgess, #74028)
400 Wed Mar 13 17:11:10 2002 Owen Taylor <otaylor@redhat.com>
402 * gtk/gtkaccelgroup.c (accel_group_weak_ref_detach): Unset
403 the acceleratable_groups qdata because qdata isn't removed
404 on ->dispose but rather on ->finalize. (#74569, found
407 Tue Mar 12 23:14:23 2002 Jonathan Blandford <jrb@redhat.com>
409 * gtk/gtktreeselection.c (gtk_tree_selection_unselect_iter): Fix
412 Sat Mar 9 18:23:25 2002 Richard Hestilow <hestilow@ximian.com>
414 * gtk/gtkimage.c (gtk_image_set_from_filename): Allow NULL
417 Tue Mar 12 10:50:09 2002 Owen Taylor <otaylor@redhat.com>
419 * modules/input/gtkimcontextxim.c (gtk_im_context_xim_filter_keypress):
420 Fix incorrect return value, filter out returns of 0x7f for
421 the delete key. (#74179, Kang Jeong-He)
423 Mon Mar 11 23:42:11 2002 Jonathan Blandford <jrb@redhat.com>
425 * gtk/gtktreemodel.c (gtk_tree_model_foreach): fix totally broken
428 2002-03-11 Matthias Clasen <maclas@gmx.de>
430 * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Document
431 gtk_{menu_item,widget}_set_accel_path() as the recommended API.
434 2002-03-11 James Henstridge <james@daa.com.au>
436 * configure.in: set CCAS and CCASFLAGS to get automake 1.6
437 compatibility without breaking things for people using 1.4.
439 Sun Mar 10 21:04:30 2002 Jonathan Blandford <jrb@redhat.com>
441 * gtk/gtktreeview.c (gtk_tree_view_button_press): finally get the
444 Mon Mar 11 01:25:14 2002 Kristian Rietveld <kris@gtk.org>
446 * gtk/gtktreeview.c (gtk_tree_view_button_press): compare path with
447 cursor path and not with the selected iter in the 'decide to edit'