ChangeLog.pre-2-4 922 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Thu Feb 21 16:51:17 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkaccelgroup.c (gtk_accelerator_valid): Add
	GDK_ISO_Next_Group/Prev_Group/Level3_Shift/
	First_Group/Last_Group to list of invalid accelerators.
	(A lot more that should be added, but probably would
	want a range mechanism. These are the ones found in
	the standard XFree86 config files.)

	* gtk/gtkbindings.c (gtk_bindings_activate): Fix problem
	that broke bindings for menus.

	* gtk/gtkwindow.[ch]: Export _gtk_window_activate_key()
	privately.

	* gtk/gtkmenushell.c (gtk_menu_shell_key_press): Use
	_gtk_window_activate_key(), gtk_bindings_activate_event().

19 20 21 22 23
Thu Feb 21 12:24:22 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkctree.c (gtk_ctree_class_init): Remove some workarounds
	for +/= and shift key handling.

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
Wed Feb 20 14:26:47 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups;
	allow matches on key and level but not group. Also, implement 
	ignoring "consumed modifiers correctly."

	* gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using
	GtkKeyHash.
	
	* gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings

	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in
	the group for key release events as well as key press events.

	* gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): 
	Rename unused_modifiers to consumed_modifiers, make the docs and
	non-Xkb implementation match the Xkb implementation.

	* gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate
	doc and parameter name changes.

	* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
	XkbTranslateKeyCode doesn't handle LockMask, we need to handle
	it ourselves.

	* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force
	<Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency
	to allow dealing with ISO_Left_Tab.
	
	* gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c
	gtk/gtkpaned.c gtk/gtkcombo.c  gtk/gtknotebook.c:
	Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab
	or <Shift>Tab both are equivalent as a binding specifier.)

	* gtk/gtkbutton.c (gtk_button_class_init): Make ::activate
	GTK_RUN_ACTION, so you can bind an accelerator to it.

	* gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call 
	gdk_unicode_to_keyval on the mnemonic character.

	* tests/testgtk.c: Add a test for the new fuzzy key binding matching.

66 67 68 69 70
2002-02-21  jacob berkman  <jacob@ximian.com>

	* gtk/theme-bits/Makefile.am (EXTRA_DIST): inconsitent files are
	.pngs too

71 72 73 74 75 76 77 78
Wed Feb 20 21:52:13 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkselection.c (gtk_selection_request): Set the property
	as type ATOM_PAIR, not ATOM. (#72074, Gregory Merchan.)

	* gdk/x11/gdk{property,selecton}-x11.c: Auto-convert properties
	of type ATOM_PAIR as well as properties of type ATOM.

Matthias Clasen's avatar
Matthias Clasen committed
79 80 81 82 83 84 85 86 87
2002-02-21  Matthias Clasen  <maclas@gmx.de>

	* docs/tutorial/images/*.png: screenshots of examples.
	
	* docs/tutorial/gtk-tut.sgml: remove deprecated widgets, add
	screenshots, fix chapters 1-4 for GTK+ 2.0. 

	* demos/gtk-demo/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.

88 89 90 91 92 93 94 95
Thu Feb 21 00:31:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkspinbutton.c: Many cleanups and fixes. Draw exclusively
	in expose handler. Feedback when buttons are depressed.

	* gtk/gtkstyle.c: update for changes in gtkspinbutton.c. Fix
	spinbuttons for RTL langauges.

96 97 98 99 100 101 102 103 104 105 106 107 108
Wed Feb 20 23:00:08 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkstyle.c: new radio buttons. handle inconsistent state for
	check- and radiobuttons.

	* gtk/theme-bits/check-13-inconsistent.png,
	gtk/theme-bits/radio-13-inconsistent.png: new files

	* gtk/theme-bits/radio-13.png: new radio buttons

	* gtk/theme-bits/Makefile.am (EXTRA_DIST): add new
	-inconsistent.png files

109 110 111 112 113
Wed Feb 20 16:19:49 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkevents-x11.c: Add a XSETTING mapping for
	gtk-can-change-accels. (#70218, Thomas Leonard.)

114 115 116 117 118 119 120
2002-02-20  Sven Neumann  <sven@gimp.org>

	* gtk/gtkcolorsel.c (gtk_color_selection_finalize): check
	handler_id before disconnecting the signal handler since it might
	have never been connected if the GtkColorSelection is destroyed
	before it was realized.

121 122 123 124 125 126 127 128 129
2002-02-20  Matthias Clasen  <maclas@gmx.de>

	* docs/tutorial/gtk-tut.sgml: Fold back Svens g_signal fixes from
	the examples.  

	* docs/tutorial/gtk-tut.sgml, examples/progressbar/progressbar.c,
	examples/progressbar/Makefile: Make the progressbar example 
	deprecation-clean.

130 131
Tue Feb 19 22:10:59 2002  Kristian Rietveld  <kris@gtk.org>

Kristian Rietveld's avatar
Kristian Rietveld committed
132
	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_mnemonic_activate): new
133 134 135 136 137 138 139
	function
	(gtk_tree_view_column_create_button): use g_signal_* instead of
	gtk_signal_*, hook up _mnemonic_activate callback
	(gtk_tree_view_column_update_button): use
	gtk_label_set_text_width_mnemonic instead of gtk_label_set_text
	(#69095)

Kristian Rietveld's avatar
Kristian Rietveld committed
140
	* gtk/gtktreeview.c (gtk_tree_view_class_init): remove key bindings
141
	for C-f and C-b, let treeview search use C-f (instead of C-s)
142
	(#61866)
143

Kristian Rietveld's avatar
Kristian Rietveld committed
144
	* gtk/gtkrc.key.emacs: add some GtkTreeView bindings
145

146 147 148 149 150
Tue Feb 19 20:56:32 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/theme-bits/decompose-bits.c (do_part): fix bug (skipping all
	black pixels).

151 152 153 154 155
2002-02-19  Sven Neumann  <sven@gimp.org>

	* examples/*/*.c: finish conversion to g_signal_* functions by
	using G_OBJECT and G_CALLBACK and other assorted changes.

156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
Tue Feb 19 17:36:31 2002  Kristian Rietveld  <kris@gtk.org>

	* gtktreeprivate.h, gtktreeviewcolumn.[ch], gtktreeview.c: change
	gtk_tree_view_column_cell_render,
	gtk_tree_view_column_cell_focus,
	gtk_tree_view_column_cell_draw_focus and
	gtk_tree_view_column_cell_set_dirty to be private functions.

	* gtktreeviewcolumn.[ch]: add install_handler argument to
	_cell_set_dirty to control if _mark_rows_col_dirty (which calls
	install_presize_handler) gets called, set widths correctly so
	autosizing works (#71870)

	* gtktreeview.c (gtk_tree_view_column_autosize): new function,
	(gtk_tree_view_button_press): make double click on column
	separator resize the row (#71870)
	(gtk_tree_view_get_dest_row_at_pos): change DnD threshold to 33%
	(#71869, suggestion by Anders Carlsson)

175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
Mon Feb 18 23:16:16 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.[ch]: Add routines _gtk_find_module(),
	_gtk_get_module_path() to look up a module of an arbitrary type in
	a standard fashion. (#68474)

	* gtk/gtkrc.c: Make module_path keyword warn and do
	nothing. Remove the im_module_path keyword.

	* gtk/gtkrc.c (gtk_rc_get_im_module_path): Fix
	to return the standard path instead of one determined
	from im_module_path and GTK_IM_MODULE_PATH.
	
	* gtk+-2.0.pc.in: Add gtk_host to go along with gtk_binary_version.

190 191 192 193 194
2002-02-19  Matthias Clasen  <maclas@gmx.de>

	* docs/tutorial/gtk-tut.sgml, docs/examples/*: Trivial formatting
	fixes to all examples, simple functional fixes to rangewidgets example.

195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
Mon Feb 18 18:27:45 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Select
	the right item in the family list. (Reported by Mark Patton,
	Patch from Satajyit Kanungo, #64240)

	* gtk/gtkfontsel.c (gtk_font_selection_set_font_name): Update
	the size and face entry lists as well, fix memory leak.
	(Also #64240)

	* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): 
	Allow fractional sizes, unselect the selected row if none
	matches.

	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): Fix
	a bug where the scrolled window would always get focus
	when focusing out of the child.

213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
2002-02-18  Hans Breuer  <hans@breuer.org>

	* gdk/win32/gdkevents-win32.c : process WM_PAINT messages
	for bg_pixmap == GDK_NO_BG, fixes The GIMP's canvas
	rendering glitches on win32

	* gdk/win32/gdkinput-win32.c : use g_object_new to create
	GdkDevice instead of g_new
 
	* gtk/gtkpaned.c : make LAST_SIGNAL the last in enum. 
	This avoids to smash totally unrelated static data and
	resulting random crashes. (as reported on gtk-devel-list, 
	2002-02-10 : testgtk crashes)

	* gtk/gtk.def : add new file selection entry points

229 230 231 232 233
Mon Feb 18 17:34:43 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c gtk/gtktextview.c: Remove support for
	the poorly defined text/plain type for now. (#55117)

234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
Mon Feb 18 16:44:00 2002  Owen Taylor  <otaylor@redhat.com>

	* docs/widget_system.txt: Add some docs for GTK_NEED_REQUEST
	GTK_NEED_ALLOCATION.

	* gtk/gtkmenu.c (gtk_menu_popup): Scroll the menu
	to the right place before showing the menu to
	avoid spurious enter events.

	* gtk/gtkmenu.c (gtk_menu_realize): Only scroll
	if there is an active menu item.

	* gtk/gtkwidget.c (gtk_widget_init): Set RESIZE_NEEDED
	ALLOC_NEEDED initially.

249 250 251 252
2002-02-18  Matthias Clasen  <maclas@gmx.de>

	* NEWS: fix version number.

253 254 255 256 257 258
2002-02-18  Manish Singh  <yosh@gimp.org>

	* Makefile.am: don't comment out the lines to dist the packer
	example, just simply remove it. (the continuation line confused
	make even though it was in the comment, barf)

259 260 261 262
Mon Feb 18 14:40:22 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcombo.c (gtk_combo_popdown_list): Fix problems
	with stuck grab (#60132, reported by Nicolas Setton) and
263 264
	stuck prelighting. Combine duplicated code in three
	places for popping down the list.
265

266 267 268 269 270 271 272 273 274 275 276 277 278 279
Mon Feb 18 14:17:59 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (adjust_adjustments) 
	* gtk/gtklayout.c (gtk_layout_size_allocate)
	* gtk/gtktextview.c (gtk_text_view_size_allocate) 
	* gtk/gtktreeview.c (gtk_tree_view_size_allocate) 
	* gtk/gtkviewport.c (gtk_viewport_size_allocate):
	Standardize on a page increment of page minus 1 line
	rather than half a page (#51027, Eric Fischer)

	* gtk/gtkviewport.c (gtk_viewport_size_allocate): 
	Change step increment to be 0.1 * page_size height rather than
	a fixed 10 pixels.

280 281 282 283 284
Mon Feb 18 12:31:52 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimcontextsimple.c (gtk_im_context_simple_filter_keypress): 
	Don't commit unless we got at least one hex digit. (#70619)

Owen Taylor's avatar
Owen Taylor committed
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302
Sun Feb 17 21:30:49 2002  Owen Taylor  <otaylor@redhat.com>

	* Released 1.3.14

	* configure.in: Version 1.3.14, interface, binary age 0.

	* gdk/gdkregion-generic.c (miSubtractO): Fix out-of-bounds
	read. (#71619, reported by Morten Welinder)

	* gtk/gtkmenu.c (gtk_menu_class_init): Fix setting default.

	* gtk/gtkfilesel.c (gtk_file_selection_class_init): Add
	a select_multiple property to go along with thenew 
	get/set_select_multiple.

	* gdk/gdkwindow.c: Patch from Soeren Sandmann to improve
	update debugging code. (#71703)

303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
2002-02-17  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkcolor-win32.c (free_colors): Don't set the
	PC_EXPLICIT flag for unused palette entries, that might have
	undesired side effects. Just set them to black. Black is always
	present in a palette, so having superfluous black entries won't
	cause any extra allocations from the system palette either when
	realized.

	* gdk/win32/gdkevents-win32.c
	(gdk_event_translate:WM_QUERYNEWPALETTE): Don't do anything if the
	system visual is static color, i.e. the user has told GDK to use
	just the 16 static colors. In that case no need to redraw
	anything, as the colors are static and by definition always
	correctly mapped in the system palette.
	(WM_PALETTECHANGED): Ditto, no need to call UpdateColors() either.
	
	* gtk/gtk.def: Add new gtkfilesel entry points.

322 323 324 325 326
2002-02-17  Matthias Clasen  <maclas@gmx.de>

	* docs/tutorial/gtk-tut.sgml, examples/paned/paned.c, 
	examples/paned/Makefile: Make the paned example deprecation-clean.

327 328 329 330 331
2002-02-17  jacob berkman  <jacob@ximian.com>

	* Makefile.am: remove the packer example files as they don't exist
	in CVS.

332 333 334 335
2002-02-16  Manish Singh  <yosh@gimp.org>

	* tests/testgtk.c: hm, check buttons look better for below.

336 337 338 339 340 341 342
2002-02-16  Manish Singh  <yosh@gimp.org>

	* tests/testgtk.c: redid the filesel test. Added a way to set select
	multiple as a toggle button, and made show/hide fileops toggle
	buttons as well. get_selections() is called on OK and all the
	filenames selected are printed.

343 344
2002-02-17  Tor Lillqvist  <tml@iki.fi>

345 346 347
	* README.win32: Remove comment about the gtk-1-3-win32-production
	branch having more functionality.

348 349 350 351 352 353 354 355 356
	* gdk/win32/*.c: Massive changes. Too many to list here, but I'll
	try a summary:

	1) Unify GdkPixmap and GdkImage implementation: For each
	GdkPixmap, allocate a GdkImage, and vice versa.
	GdkPixmapImplWin32Data has a pointer to the GdkImage.
	GdkImage::windowing_data is a pointer to the GdkPixmap.

	This simplifies many pixmap and image related functions a lot, and
357
	reduces duplicated code. For instance, there is only one
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
	place in gdk/win32 where CreateDIBSection() is called, in the
	function _gdk_win32_new_pixmap(). Converting a bitmap (GdkPixmap)
	to a Windows region is almost trivial, with the bitmap bits being
	readily accessible in the associated GdkImage.

	All blitting between GdkPixmaps, GdkWindows and GdkImages goes
	through handled the _gdk_win32_blit() function, which calls
	different functions to handle the cases of blitting from pixmaps,
	inside windows (scrolling), or from windows, which all require
	somewhat different handling.

	2) Support 256-color mode. This has long been very broken, now it
	works more or less OK. Keep the logical palette for each colormap
	as small as possible while allocating and freeing colors. Select
	and realize the logical palette associated with a GdkColormap into
	a DC before drawing or blitting.

	When the display is in 256-color mode, make it possible for the
	user to override the size of the palette(s) used with either the
	GDK_WIN32_MAX_COLORS environment variable, or a -max-colors
	command line option. It is possible to reduce the palette size all
	the way down to using just the 16 static colors (which causes the
	system visual to be of type GDK_VISUAL_STATIC_COLOR. This could
	possibly be useful if one desperately wants to avoid color
	flashing. (Note that in order for this to work properly, an as of
	yet not commited fix to gdkrgb.c is needed.)

	Handle the palette messages. On WM_PALETTECHANGED, call
	UpdateColors() for the given window hierarchy. Do this only if a
	window in some other top-level window hierarchy caused the palette
	change (realized a palette). Do this max five times in a row (an
	arbitrarily chosen limit), though, otherwise redraw by generating
	expose events. On WM_QUERYNEWPALETTE, cause a redraw of the whole
	window hierarchy by generating GDK_EXPOSE events.

	3) Code cleanup in general. For instance, remove the "emulated"
	X11 structs ColormapStruct, Visual and XStandardColormap. Use the
	new GDK_DEBUG_* flags for debugging output in the relevant source
	files. Remove the unused colormap hash table in gdkcolor-win32.c

	4) Plug some resource leaks.

2002-02-14  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Use
	g_filename_to_uri() to actually create legal URIs in the
	text/uri-list data.

Manish Singh's avatar
Manish Singh committed
406 407 408 409
2002-02-16  Manish Singh  <yosh@gimp.org>

	* gtk/gtkfilesel.[ch]: Added multiple selection API

410 411 412 413
2002-02-16  Manish Singh  <yosh@gimp.org>

	* gdk/linux-fb/miarc.c: use fabs() on a double instead of abs()

414
2002-02-17  Matthias Clasen  <maclas@gmx.de>
Matthias Clasen's avatar
Matthias Clasen committed
415 416 417 418 419 420 421 422 423 424 425

	More work on #71430.

	* examples/*/Makefile (CFLAGS): add deprecation guards.
	
	* docs/tutorial/gtk-tut.sgml, examples/*/*.c: make most examples
	deprecation-clean; the major offenders right now are the examples
	that make heavy use of completely deprecated or broken widgets:
	list, tree, text, pixmap, paned and progressbar. These will have
	to be redone from scratch.

426 427 428 429 430 431 432 433 434
Sun Feb 17 00:13:06 2002  Kristian Rietveld  <kris@gtk.org>

	This commit lands the 'dy patch'.

	* gtk/gtktreeview.c (validate_rows_handler): update top_row or dy,
	(gtk_tree_view_top_row_to_dy): new function,
	(gtk_tree_view_row_changed): update top_row or dy,
	(gtk_tree_view_rows_reordered): update top_row

435
2002-02-16  Matthias Clasen  <maclas@gmx.de>
Matthias Clasen's avatar
Matthias Clasen committed
436 437 438

	* demos/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.

439
2002-02-16  Matthias Clasen  <maclas@gmx.de>
440 441 442 443 444 445 446

	* examples/extract.awk: rearrange rules to not emit the example 
	start and end markers.

	* docs/tutorial/gtk-tut.sgml: turn the start and end markers into
	SGML comments, so they don't clutter the formatted tutorial.

447 448 449 450 451 452
2002-02-16  Havoc Pennington  <hp@pobox.com>

	* gtk/gtkwindow.c (gtk_window_parse_geometry): take
	GDK_HINT_RESIZE_INC into account, and handle negative coordinates
	correctly. (Can't email Owen - hope this is OK.)

453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469
Fri Feb 15 20:09:45 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkscrolledwindow.[ch] gtk/gtkmarshallers.list:
	Add key bindings on GtkScrolledWindow for arrow keys,
	PageUp/PageDown Home/End to scroll the window. 
	Bind Control-[Shift]-Tab to focus out of the scrolled
	window entirely. Allow the scrolled window to be
	focused if no child can be focused. (#63480)

	* gtk/gtkwidget.c (gtk_widget_hide): Remove the REALIZED()
	check - if we have visible but not mapped widgets 
	(inside a unshown notebook tab, for instance), we need
	to track their size. (#65087, reported by Damon Chaplin.)

	* gtk/gtkcolorsel.c (palette_change_color): Shut up
	a warning.

Tor Lillqvist's avatar
Tor Lillqvist committed
470 471 472 473 474 475 476
2002-02-16  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/rc/Makefile.am (gdk-win32res.lo): Depend on gtk.ico.

	* gdk/win32/rc/gtk.ico: Use the real GTK logo. Thanks to Jernej
	Simoncic for providing the nice multi-resolution .ico file.

477 478
2002-02-15 Alexey Malyshev <maa@sparc.spb.su>
	
479 480 481
        * gtk/tmpl/gtkimage.sgml
	removed wrong sentence from gtk_image_new() docs

482 483 484 485 486 487 488
Fri Feb 15 19:38:00 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreestore.c (gtk_tree_store_clear_traverse): new function
	(gtk_tree_store_clear): traverse the tree, so we emit row_deleted
	for every node. This way we don't have confused row refs crashing the
	application. (#70631)

489 490 491 492 493 494
2002-02-14  Richard Hult  <rhult@codefactory.se>

	* gtk/gtkpaned.c (gtk_paned_enter): Only queue a draw on the
	handle, not the whole widget. #71530.
	(gtk_paned_leave): Likewise.

495 496 497 498 499 500 501 502
2002-02-14  Jody Goldberg <jody@gnome.org>

	* gtk/gtkrange.c (gtk_range_class_init) : add new signal
	  'adjust_bounds' to potentialy change the bounds before assigning the
	  new value and camping it to the existing bounds.
	(gtk_range_internal_set_value) : used here. #68800.
	* gtk/gtkmarshalers.list : add VOID:DOUBLE

503 504 505 506 507
Thu Feb 14 21:08:49 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkglobals.c: Remove GDKVAR from C file, see
	if anyone complains. (#71317, Morten Welinder.)

508
2002-02-14  Matthias Clasen  <maclas@gmx.de>
509 510 511 512 513 514 515 516 517 518 519 520 521

	The following changes are the beginning of the work on #71430.
	
	* examples/extract.sh, examples/extract.awk: Make extraction work.
	
	* examples/Makefile (SUBDIRS): Remove packer.

	* examples/packer/pack.c, examples/packer/Makefile: Removed.

	* docs/tutorial/gtk-tut.sgml: Fix the included examples far
	enough to make them compile and (mostly) work, remove the packer
	example.

522 523 524 525 526 527 528 529 530 531 532 533
Thu Feb 14 16:46:48 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
	gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
	Haneman and Padraig O'Briain to add cursor_aspect_ratio
	style property to GtkWidget to allow theming the aspect
	ratio of the cursor.

	* gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
	gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
	to GtkWidget.

534 535 536 537 538 539
Thu Feb 14 11:13:22 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimmulticontext.c (gtk_im_multicontext_get_surrounding): 
	Fix bug where we called get_surrounding on the context,.
	not the slave.

540 541 542 543 544 545 546 547 548
Thu Feb 14 00:10:09 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
	pop the tooltip down on a select set of events, not
	on any unknown event. (#71157, Jody Goldberg)

	* gtk/gtktooltips.c (gtk_tooltips_event_handler):
	Fix some warnings.

549 550 551 552 553 554 555 556
Thu Feb 14 00:02:21 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
	small allocation/drawing fixes.

	* gtk/gtkcalendar.c: Replace DAY_XPAD, DAY_YPAD with
	GtkWidget::focus-padding

557 558 559 560 561 562 563
Wed Feb 13 23:01:20 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcalendar.c: Patch from Bill Haneman to draw
	to focus using gtk_paint_focus() with the focus width
	GtkWidget::focus-width. (#63075)

	* gtk/gtkcalendar.c (gtk_calendar_size_request): Initialize
564 565
	label_char_ascent/descent to 0. (#56925, reported by
	(Jean-Noel Guiheneuf)
566

567 568 569 570 571 572
2002-02-13  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_flush_scroll): validate a
	larger area, proportional to widget size, to fix
	#71427 reported by Dennis Bjorklund

573 574 575 576 577 578 579 580 581 582 583 584 585
2002-02-13  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_paint): just go ahead and flush 
	all the first validate stuff if it hasn't been done, presumably
	someone called process_updates at a weird time.

	* tests/testtext.c (do_apply_colors): terminate on >= end, not >
	end, avoids infinite loop when end is at the end of the buffer.

	* gtk/gtktextbtree.c (_gtk_text_btree_delete): when creating a
	line data, we were adding it to the wrong line ("line" instead of
	"start_line")

586 587 588 589 590 591 592 593 594 595
2002-02-13  Joe Shaw  <joe@ximian.com>

	* gtk/gtktreeitem.c (gtk_tree_item_expose): Don't chain up to the
	container's expose event.  Instead call
	gtk_tree_item_expose_child() on each child.  Avoids a failed
	g_assert() in gtk_container_propagate_expose().
	(gtk_tree_item_expose_child): Added.  Synthesize an expose event
	for our children.  Basically gtk_container_propagate_expose()
	minus the g_assert().  (#71396)

596 597 598 599 600 601 602
2002-02-13  Tor Lillqvist  <tml@iki.fi>

	* gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
	fine-grained debugging output (mainly used in the Win32 backend).

	* gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.

603 604 605 606 607 608 609 610
Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
	as toggle-tooltips-mode.

	* gtk/gtktooltips.c: Remove parsing of tooltips style
	string from here ... now in gtkrc.c.

611 612 613 614 615 616 617 618 619 620 621 622
Wed Feb 13 12:41:44 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_init_check): g_warning() if setting
	the local fails, like gdk_set_locale() did.

	* gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list): 
	Don't free local_list if local_count == 0. (#71241, reported
	by Kevin Vandersloot.)

	* gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list): 
	Clean up list == NULL handling and failure.

623 624 625 626 627
Wed Feb 13 11:27:31 2002  Owen Taylor  <otaylor@redhat.com>

	* tests/testtreeview.c (typesystem_recurse): Cast GType
	to long and use %ld to fix warning. (#71318, Morten Welinder)

628 629 630 631
Wed Feb 13 13:26:39 2002  Tim Janik  <timj@gtk.org>

	* gtk/gtkmenu.c: fix figuring accel path and changing behaviour.

632 633 634 635 636 637 638
Wed Feb 13 06:42:37 2002  Tim Janik  <timj@gtk.org>

	* gtk/gtktable.c (gtk_table_size_allocate_pass1): partly revert
	my recent expanding change to not expand the table if all children
	have not epxand behaviour. this fixes palette views which often
	use homogeneous non-expanding tables.

639 640 641 642 643 644 645 646 647 648
Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
	row_deleted before we start unreffing the nodes ourselves
	(gtk_tree_model_sort_increment_stamp): always increment the stamp,
	and not only if the stamp equals 0 (pointed out by Darin Adler)

	* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
	to continue the while loop and not the nested for loop.

649 650 651 652 653 654 655
Tue Feb 12 02:19:49 2002  Tim Janik  <timj@gtk.org>

	* gtk/gtktable.c (gtk_table_size_allocate_pass1): always spread out
	the extra space allocated for the homogeneous case, as we don't
	properly deal with readjusting table allocation within it. (for  this
	purpose, a GtkAlignment can be used as table parent).

656 657 658 659 660 661 662 663 664 665 666 667 668
2002-02-11  Darin Adler  <darin@bentspoon.com>

	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
	Consider reordering the row even when there's no sort column, if
	there's a default sort function.
	(gtk_tree_model_sort_rows_reordered): Use symbolic constants.
	(gtk_tree_model_sort_level_find_insert): Add code to handle the
	case where there is no sort column, but a default sort function.
	(gtk_tree_model_sort_insert_value): Add code to handle the case
	where there is no sort column an no default sort function.
	(gtk_tree_model_sort_set_model): Use symbolic constant.
	(gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.

669 670 671 672 673
2002-02-11  Sven Neumann  <sven@gimp.org>

	* gtk/gtkfilesel.c: converted the "Delete File" dialog to
	GtkMessageDialog. Marked missing strings for translation.

674 675 676
Mon Feb 11 22:03:15 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkpaned.[ch]: Opaque resizing + prelighting for paned widget.
Søren Sandmann Pedersen's avatar
Søren Sandmann Pedersen committed
677
	* gtk/gtkvpaned.c, gtk/gtkhpaned.c: move reszing logic to gtkpaned.c
678

679 680 681 682 683 684 685 686 687
Mon Feb 11 21:42:17 2002  Kristian Rietveld  <kris@gtk.org>

	Implements DnD scrolling and fixes #71139

	* gtk/gtktreeview.c (gtk_tree_view_vertical_autoscroll): new function,
	(scroll_row_timeout): new function,
	(gtk_tree_view_drag_motion): create scroll_timeout, so
	scroll_row_timeout gets called

688 689 690 691 692 693
Mon Feb 11 17:54:46 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper
	member of hadjustment correct, so the hscrollbars of lists smaller
	than 1 page (in width) are somewhat saner

694 695 696 697 698
2002-02-11  jacob berkman  <jacob@ximian.com>

	* gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to
	match implementation

699 700 701 702 703 704
Mon Feb 11 16:48:34 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkliststore.c (gtk_list_store_set_valist): set value of
	func to NULL during initialization (we don't use func in the
	!SORTED case, so we just silent the compiler here) (#71029)

705 706 707 708 709
Mon Feb 11 16:40:44 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_set_model): install presize
	handler, so the validate_rows_handler will always be run (#70997)

710 711 712 713 714
Sun Feb 10 22:20:46 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkliststore.c (gtk_list_store_sort_iter_changed): increase
	value of new_location by one if cmp_a > 0 and we hit the end of
	the list and pass NULL instead of a 'NULL-iter' with
Kristian Rietveld's avatar
Kristian Rietveld committed
715
	_rows_reordered (#71060)
716

717 718 719 720 721 722
Sun Feb 10 12:32:44 2002  Owen Taylor  <otaylor@redhat.com>

	* modules/input/Makefile.am modules/input/{imam-et.c, imti-er.c,
	imti-et.c} po/POTFILES.in: Add three Ethiopic input methods from
	Daniel Yacob.

723 724 725
2002-02-10  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkcalendar.c (gtk_calendar_class_init): Set finalize handler;
726 727 728
	(gtk_calendar_finalize): Rename gtk_calendar_destroy to 
	gtk_calendar_finalize since ::destroy can be called multiple times, 
	resulting in double-freeing memory.
729

730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754
2002-02-10  Hans Breuer  <hans@breuer.org>

	* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
	rect size by the scroll amount

	* gdk/win32/gdkwindow-win32.c
	* gdk/win32/gdkselection-win32.c : added some casts to
	make it compile with msvc's strict type checking

	* gtk/fnmatch.c : #include <ctype.h> again for tolower
	prototype. The fnmatch() code assumes to be in the crt 
	locale though it is feeded by utf8 strings from gtkfilesel.c

	* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
	_CompletionDir instead of referencing already freed memory

	* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
	gtk_rc_parse_string (theDefaultTooltipColor) once as it
	was intended

	* tests/makefile.msc : added more tests

	* tests/testgtk.c (create_list) : don't try to load gtkenums.h
	from the current directory use ../gtk/gtkenums.h instead

755 756
2002-02-10  Kjartan Maraas  <kmaraas@gnome.org>

757
	* gtk/gtksizegroup.c: Fix a double "The" typo in a string.
758
	
759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775
2002-02-09  Matthias Clasen  <matthias@local>

	* gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
	for selectable tab labels (even without a segfault, they make the
	notebook almost unusable, though).  (#69985)

2002-02-08  Matthias Clasen  <matthias@local>

	* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do 
	nothing if the parent is not a menu.  (#66492)

2002-02-06  Matthias Clasen  <matthiasc@poet.de>

	* gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
	gtk_item_factory_path_from_widget): Try fetching the return value 
	from menu_item->submenu as a fallback.  (#69020)
	
776 777 778 779 780 781
Sat Feb  9 22:57:43 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_build_level): convert
	the iter to a child iter again, after doing _iter_children. It's
	possible that _iter_children added some rows and updated the stamp.

782 783 784 785 786
2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>

	* gtk/gtktextchild.c: Use == rather than = in sanity
	checks.  Ouch!

787 788 789 790 791 792 793
2002-02-09  Daniel Elstner  <daniel.elstner@gmx.net>

	* gtk/gtktextchild.c (CHECK_IN_BUFFER_RETURN): Add missing
	curled braces so that it doesn't always return.  Also indent
	both CHECK_IN_BUFFER* macros properly, and make use of
	G_STMT_START/G_STMT_END.

794 795 796 797 798
Sat Feb  9 13:27:14 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkbindings.h: Add prototype for
	_gtk_binding_reset_parsed().

Owen Taylor's avatar
Owen Taylor committed
799 800 801 802 803 804
Sat Feb  9 13:19:20 2002  Owen Taylor  <otaylor@redhat.com>

	* configure.in gtk/Makefile.am gtk/theme-bits/*: Add
	tools and images used for creating the check/radio
	button images in the default theme.

805 806 807 808 809 810 811 812 813
Sat Feb  9 13:58:41 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkpaned.[ch]: Keyboard navigation for GtkPaned
	F6: cycle between panes.
	F8: focus handle (#53584)
	
	* tests/testgtk.c: Add test cases for GtkPaned keyboard 
	navigation.
	
814 815 816 817 818 819 820 821 822
Sat Feb  9 00:16:31 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): 
	XCopyArea with subwindow_mode = IncludeInferiors.
	(#70999)

	* demos/testpixbuf-save.c (configure_cb): Fix a minor
	memory management problem.

823 824 825 826 827 828 829 830
Fri Feb  8 20:24:58 2002  Owen Taylor  <otaylor@redhat.com>
	
	* gtk/gtkbindings.c (binding_compose_params): Fix problem
	with string-valued parameters (#70012, Johan Dahlin.)

	* gtk/gtkentry.c (gtk_entry_delete_whitespace): Fix 
	white space deletion.

831 832 833 834 835 836
Fri Feb  8 21:25:56 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): fix
	evil ref bug where the wrong row and a deleted row was unreffed.
	Found by Darin Adler <darin@bentspoon.com>

837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858
Fri Feb  8 18:46:13 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkbindings.[ch] (_gtk_binding_reset_parsed): Add
	a function to delete all bindings add by
	gtk_binding_parse_binding() when rereading RC files.

	* gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Reset
	binding set content as well as RC content.

	* gtk/gtkbindings.c (binding_compose_params): Fix 
	various GValue handling problems.

	* gtk/gtkentry.c (gtk_entry_class_init): Remove bindings 
	for C-b, C-f, M-b, M-f, C-a, C-e, C-w, C-y, M-space, C-u,
	C-k, M-\, M-d, C-d.

	* gtk/gtktextview.c (gtk_text_view_class_init): Remove
	same bindings as GtkEntry, plus C-n, C-p, C-space

        * gtk/gtkrc.key.default gtk/gtkrc.key.emacs gtk/Makefile.am:
	Add Emacs and Default key themes.
	
859 860 861 862 863
2002-02-08  Darin Adler  <darin@bentspoon.com>

	* gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
	Remove a tiny bit more dead code.

Darin Adler's avatar
Darin Adler committed
864 865 866 867 868
2002-02-08  Darin Adler  <darin@bentspoon.com>

	* gtk/gtktreeview.c: (gtk_tree_view_map_expanded_rows_helper):
	Fix stale pointer bug.

869 870 871
Fri Feb  8 14:30:14 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (title_focus_in): Return FALSE if
872
	not showing the titles. (#70959, Thomas Leonard)
873

874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896
2002-02-08  Darin Adler  <darin@bentspoon.com>

	* demos/gtk-demo/main.c: (load_file): isspace -> g_ascii_isspace
	* gdk/x11/gdkim-x11.c: Remove gdki8n.h include.
	* gdk/x11/gdkkeys-x11.c: Remove <ctype.h> include.
	* gdk/x11/gdkmain-x11.c: Remove <ctype.h> include.
	* gtk/fnmatch.c: Remove <ctype.h> include.
	* gtk/gtkaccelgroup.c: Remove <ctype.h> include.
	* gtk/gtkaccellabel.c: (gtk_accel_label_refetch): toupper ->
	g_unichar_toupper, toupper -> g_unichar_totile
	* gtk/gtkbindings.c: Remove <ctype.h> include.
	* gtk/gtkfontsel.c: Remove <ctype.h> include.
	* gtk/gtkiconfactory.c: Remove <ctype.h> include.
	* gtk/gtkinputdialog.c: Remove <ctype.h> include.
	* gtk/gtklabel.c: Remove <ctype.h> include.
	* gtk/gtkmain.c: Remove <ctype.h> include.
	* gtk/gtkmenu.c: Remove <ctype.h> include.
	* gtk/gtkoldeditable.c: Remove <ctype.h> include.
	* gtk/gtkrc.c: Remove <ctype.h> include.
	* gtk/gtktextbtree.c: Remove <ctype.h> include.
	* gtk/gtktextiter.c: Remove <ctype.h> include.
	* gtk/gtktextsegment.c: Remove <ctype.h> include.

897 898 899 900 901 902
2002-02-08  Sven Neumann  <sven@gimp.org>

	* gtk/gtkfilesel.c
	* gtk/gtkgamma.c
	* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.

903 904 905 906 907 908
2002-02-08  Darin Adler  <darin@bentspoon.com>

	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
	(gtk_tree_model_sort_unref_node): Pass the ref_node and
	unref_node calls through to the child model.

909 910 911 912 913
2002-02-08  Laszlo Peter  <laca@ireland.sun.com>

	* gtk/gtktextchild.c: s/__FUNCTION__/G_GNUC_FUNCTION/
	* gtk/gtktextview.c: ditto

914 915 916 917 918 919 920 921
2002-02-07  Havoc Pennington  <hp@pobox.com>

	* gtk/gtkspinbutton.h (struct _GtkSpinButtonClass): add
	change_value virtual function, to fix build

	* gtk/gtkpixmap.c (gtk_pixmap_class_init): parent_class was 
	from GtkWidget not GtkMisc. Not that it ever mattered.

922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943
Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
	to handle Control[-Shift]-Tab and Control-arrow
	bindings and implement bindings as per #53612.

	* gtk/gtktextview.c (gtk_text_view_move_focus): Fix 
	fetching the toplevel for plug-socket.

	* gtk/gtknotebook.c (gtk_notebook_class_init): Remove
	bindings for Return/Enter to select the page.

	* gtk/gtknotebook.c (gtk_notebook_change_current_page):
	Beep at ends.

	* gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
	and beep at ends.

	* gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
	the page with the arrow keys, focus the first widget,
	not the directionally closest widget.

944 945 946 947 948 949 950 951 952 953 954 955
Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
	to using  binding set for doing key bindings. (#62622,
	Requested by Skip Montaro)

	* gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
	bindings as overrides along with control-tab bindings.

	* gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
	type for ::focus_tab signal.

956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973
Thu Feb  7 19:39:27 2002  Kristian Rietveld  <kris@gtk.org>

	Fixes #70782 and some drag dest rectangle/line issues

	* gtk/gtktreeview.c (gtk_tree_view_set_model): set
	GTK_TREE_VIEW_IS_LIST flag (we can switch from a TreeStore to a
	ListStore for example)
	(gtk_tree_view_get_path_at_pos): revert previous change, we
	shouldn't correct for the header, because we are taking bin_window
	coordinates here
	(gtk_tree_view_set_drag_dest_row): queue old drag_dest row and
	upper/lower neighbors for draw, so the drag dest rectangle/line will
	be cleared correctly
	(gtk_tree_view_get_dest_row_at_pos): correct for treeview header
	here, as drag_y is relative to the widget and _get_path_at_pos wants
	coords relative to bin_window, draw black outline rectangle after
	drawing the cells

974 975 976 977 978 979
Thu Feb  7 10:53:12 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_draw_text): Use layout text
	(which may be affected by invisible char) to compute
	selection bounds, not entry text. (#70733, Alex Larsson)

980 981 982 983 984 985 986 987 988 989 990
2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>

	* gtk/gtkwidget.[ch]:
	Change show_help signal to return gboolean instead of void. This
	allows the keypress which invokes the signal to be propagated to the
	focus widgets ancestors if not handled by the focus widget.
	
	* gtk/gtktoolips.[ch]
	Change _gtk_tooltips_show_tip () to return a gboolean indicating
	whether widget has tooltip to display.
	
991 992 993 994 995 996 997 998 999 1000 1001
2002-02-07 Padraig O'Briain <padraig.obriain@sun.com>

	* gtk/gtkwidget.[ch]:
	Change popup_menu signal to return gboolean instead of void. This
	allows the keypress which invokes the signal to be propagated to the
	focus widgets ancestors if not handled by the focus widget.

	* gtk/gtkcolorsel.c gtk/gtkentry.c gtk/gtktextview.c:
	Change signature of popup_menu signal handler to return gboolean
	instead of void and return TRUE in the signal handler

Anders Carlsson's avatar
Anders Carlsson committed
1002 1003 1004 1005 1006
2002-02-07  Anders Carlsson  <andersca@gnu.org>

	* gdk/x11/xsettings-common.c (xsettings_setting_free): Free 
	the setting name.

Kristian Rietveld's avatar
Kristian Rietveld committed
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
Wed Feb  6 23:28:39 2002  Kristian Rietveld  <kris@gtk.org>

	Fixes #70708

	* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): we're dealing
	with widget coordinates here, so take the header height into
	account while converting
	(gtk_tree_view_widget_to_tree_coords): take header height into
	account
	(gtk_tree_view_tree_to_widget_coords): ditto
	(gtk_tree_view_get_dest_row_at_pos): we were passing coords
	relative to the tree with _get_path_at_pos, while that function
	wants coords relative to the widget

1021 1022 1023 1024 1025 1026 1027
2002-02-06  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_scroll_hpages): remove unused variable
	(gtk_text_view_get_window): add warning about how you
	can't get the private window. #70683, and avoid default: in the
	switch so we get "enum value unhandled" warnings

1028 1029 1030 1031 1032 1033 1034
2002-02-06  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextchild.c: Add warnings if you try to use a child
	anchor that isn't inside a buffer. Really kind of lame; 
	we should separate the anchor from the buffer. But not worth 
	fixing for now. #70601

1035 1036 1037 1038 1039
Wed Feb  6 18:25:24 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodelsort.c: rip out all the debugging ifdefs, as
	modelsort seems to be stable (and nobody complained :)

1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050
Tue Feb  5 19:13:42 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkgeometry-x11.c (gdk_window_queue): Keep
	the length of the anti-expose queue finite, by if
	it gets too long, first doing a XSync() and checking
	the event queue, and if that doesn't work, simply
	discarding all anti-expose items in the queue.

	* gdk/x11/gdkdnd-x11.c (gdk_window_cache_filter): Fix ordering
	on ConfigureNotify (#56349, Thomas Leonard)

1051 1052 1053 1054 1055 1056
2002-02-05  Havoc Pennington  <hp@redhat.com>

	* gtk/gtkimage.c (gtk_image_expose): offset area being gotten from
	pixmap by the align/padding offsets, so we don't get warnings
	in gdk_pixbuf_get_from_drawable (and so it works, of course)

1057 1058 1059 1060
2002-02-05  Matthias Clasen  <matthiasc@poet.de>

	* gtk/gtkrc.c (gtk_rc_parse_file): Remove a (now) misleading comment.

1061 1062 1063 1064
2002-02-05  Federico Mena Quintero  <federico@ximian.com>

	* gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.

1065 1066 1067 1068 1069 1070
Tue Feb  5 22:54:16 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkliststore.c (gtk_list_store_insert_after): let's set the
	path, which we're going to pass with the emission of row_inserted, to
	the iter we inserted and not its sibling.

1071 1072 1073 1074 1075
2002-02-04 Padraig O'Briain <padraig.obriain@sun.com>

	* gtk/gtkmenu.c (gtk_menu_popup):
	Fix leak of GdkEvent (#70519)

1076 1077 1078 1079 1080 1081 1082
Mon Feb  4 10:40:28 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkstyle.c (gtk_default_draw_resize_grip):
	Fix from Matthias Clasen to clear background appropriately
	for theme by calling gtk_style_apply_default_background().
	(#70449)

1083 1084 1085 1086 1087
Mon Feb  4 10:06:49 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkevents-x11.c: gtk-double-click-time,
	not gtk-double-click-timeout. (#70501)

1088 1089 1090 1091 1092 1093 1094
2002-02-04  Havoc Pennington  <hp@pobox.com>

	* gtk/gtksignal.c (gtk_signal_connect_while_alive): 
	(gtk_signal_connect_object_while_alive): rename 
	"signal" arg to "name" to avoid compiler warnings
	about shadowing signal(). #70453

1095 1096 1097 1098 1099
2002-02-03  Anders Carlsson  <expander-master@gtk.org>

	* gtk/gtkstyle.c (gtk_default_draw_expander): Add 
	flipping support to the expanders.

1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112
Sat Feb  2 21:54:01 2002  Owen Taylor  <otaylor@redhat.com>

	RC file lookup improvements (#68234, suggestions
	from Matthias Clasen.)

	* gtk/gtkrc.c (gtk_rc_parse_file): Look for the 
	locale suffix variants (gtkrc.en_US, gtkrc.en) for
	all RC files we parse, not just the default RC
	files.

	* gtk/gtkrc.c (gtk_rc_parse_default_files): Remove
	support for charset specific RC files.

1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132
Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenushell.c (_gtk_menu_shell_select_first): 
	Non-exported _gtk_menu_select_first() function that
	selects the first item of the menu in a standard
	way. (Skipping tearoffs.)

	* gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
	gtkmenuitem.c: Use _gtk_menu_shell_select_first().

	* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
	if we are starting the timeout from a keypress so
	we can set menushell->ignore_enter properly.

	* gtk/gtknotebook.c (focus_child_in): Return something
	meaningful if there are no children.

	* gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
	problem.

1133 1134 1135 1136 1137
Sat Feb  2 19:15:42 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_popup): Fix some bugs in
	the determination of xgrab_shell.

1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162
Sat Feb  2 17:43:00 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_grab_focus): Add a GtkSetting
	(gtk-entry-select-on-focus) controlling whether the
	contents of an entry are selected on focus in.

	* gtk/gtkmenu.c (gtk_menu_key_press): Add a GtkSetting
	(gtk-can-change-accels) controlling whether accelerators can be
	changed on the fly or not. (#51902)

	* gtk/gtkmenu.c (gtk_menu_key_press): Allow unmodified
	accelerators, now that accelerator changing can be turned
	off for those who won't expect it. (#61285)

	* gtk/gtkaccelgroup.c (gtk_accelerator_valid): Allow 
	Backspace/Delete/KP_Delete as valid accelerators.

	* gtk/gtkmenu.c (gtk_menu_key_press): Allow setting of
	Delete/Backspace as accelerators by making them toggle
	the menu item between empty and the pressed key.
	(#58605)

	* tests/testgtkrc: Remove the objectionably short cursor blink
	time setting.

1163 1164 1165 1166 1167 1168 1169 1170 1171 1172
Sat Feb  2 16:43:31 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_popup): To get around the fact
	that we may have a owner_events = FALSE grab in effect
	when we pop up a window, make a temporary grab on a
	different window, then grab on the real window. Fixes
	a problem where if a context menu popped up under the 
	cursor, the first item would be stuck unselected.
	(#59812, reported by Arnaud Charlet.)

1173 1174 1175 1176 1177
2002-02-02  Peter Williams  <peterw@ximian.com>

	* gtk/Makefile.am (install-data-local): Install gtkrc.default
	from $(srcdir) for when $(builddir) is different.

1178 1179 1180 1181
Sat Feb  2 19:00:39 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/Makefile.am: remove TESTGTK_RCFILE define

1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192
Sat Feb  2 11:37:21 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_popup): Remove the 
	"select first item if popped up from keypress" hack --
	was causing more problems than it was worth 
	(#53191, #68483)

	* gtk/gtktextview.c (popup_targets_received): 
	 gtk/gtkentry.c (popup_targets_received): If activated
	from keyboard, select first item of popup menu.

1193 1194 1195 1196 1197 1198 1199 1200 1201
Sat Feb  2 18:07:51 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set upper member
	of vadjustment correct, so the vscrollbars of lists smaller than
	1 page are somewhat saner (#66905)

	* gtk/gtkliststore.c (gtk_list_store_remove_silently): do not
	increment the stamp, liststore is a model with persisting iters

1202 1203 1204 1205 1206 1207
Fri Feb  1 23:54:00 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.[ch] (gtk_rc_parse_engine):	Support 
	engine "" {} to mean override to the default 
	engine. (#70205)

1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218
Fri Feb  1 23:25:33 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktooltips.c (gtk_tooltips_init): Parse the
	RC string here when the first object is created
	rather than in the class_init to not break doc 
	building. (#70341, Havoc Pennington.)

	* gtk/gtkrc.c (parse_include_file): Use the directories
	for the currently parsed files as the starting point
	to look for include files. (#59975)

1219 1220 1221 1222 1223
Fri Feb  1 20:21:56 2002  Manish Singh  <yosh@gimp.org>

	* gtk/gtkinputdialog.c: use gtk_label_new_with_mnemonic for labels
	that actually have mnemonics

Owen Taylor's avatar
Owen Taylor committed
1224 1225 1226 1227 1228 1229 1230 1231 1232
Fri Feb  1 19:57:59 2002  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Fix use of ! in shell.

	* gtk/gtktooltips.c (gtk_tooltips_class_init) gtkrc.default: 
	Move the setting of default tooltips colors to gtktooltips.c
	from gtkrc.default. (Use default priority so themes will
	override.) (#58542)

1233 1234 1235 1236 1237 1238 1239 1240 1241
Fri Feb  1 17:48:51 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c (gtk_rc_get_style): Fix ordering of
	priorities so that priorities take precendence over
	the ordering by type. (#70205)

	* test/testgtkrc tests/testgtk.c (create_rc_file): Add 
	some labels to test priorities in testgtkrc.

1242 1243 1244 1245 1246 1247
Fri Feb  1 00:37:49 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): use
	y coordinate relative to the tree and not the treeview window
	(fixes the PgDn/PgUp brokenness)

1248 1249 1250 1251 1252 1253
Fri Feb  1 23:40:31 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_button_press): adjust
	cell_area and background_area for possible treeview scroll
	(fixes #70283, #70065)

1254 1255 1256
Fri Feb  1 22:20:13 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): use
1257
	height - page_size not height - allocation->height (fixes #66269)
1258

1259 1260 1261 1262 1263
Fri Feb  1 15:22:23 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimage.c (gtk_image_class_init): Fix typo
	in property description. (Christian Rose.)

1264 1265 1266 1267 1268 1269 1270
Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
	any strings if the theme changes. (#69465)

	* tests/testgtk.c: Add a test for gtk_rc_parse_string().

1271 1272 1273 1274 1275
Fri Feb  1 20:50:29 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): set tree to
	NULL if tree_view->priv->tree is NULL (#70152, patch by John Harper).

1276 1277 1278 1279 1280 1281
Fri Feb  1 12:51:20 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtknotebook.c (focus_child_in): Catch the
	cur_page == NULL (no children) case. (#70287,
	Paolo Maggi.)

1282 1283 1284 1285 1286
Fri Feb  1 12:12:12 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c (attempt_file_completion): 
	s/directory/folder/ in all labels and messages.

1287 1288 1289 1290 1291 1292 1293
Fri Feb  1 08:57:38 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_exit_func): Remove this useless
	atexit handler. (existance pointed out by Stefan Kost)

	* gtk/gtkmain.c (gtk_init_check): Warning fixes.

1294 1295 1296 1297 1298
Thu Jan 31 18:46:10 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreemodel.c (gtk_tree_row_reference_free): unref the
	model after the last use, not before.

1299 1300 1301 1302 1303 1304 1305 1306
Thu Jan 31 14:50:16 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.default gtk/Makefile.am: Install a Default
	RC file that sets the tooltips color to yellow. (#58542)

	* gtk/gtksettings.c (gtk_settings_class_init): make 
	the default theme "Default", not NULL.

Owen Taylor's avatar
Owen Taylor committed
1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317
Thu Jan 31 11:33:52 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkproperty-x11.c (insert_atom_pair): Fix 
	another missing static.

	* gtk/gtkimmodule.c (n_loaded_contexts): And another.

	* gdk/x11/Makefile.am gdk/x11/gxid_lib.c: Don't
	build gxid sources at all except in the vanishingly
	rare case of --with-xinput=xfree.

Mark McLoughlin's avatar
Mark McLoughlin committed
1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336
2002-01-31  Mark McLoughlin  <mark@skynet.ie>

	* gdk/gdkimage.c: (scratch_image_info_for_depth): make static.

	* gdk/x11/gdkimage-x11.c: (get_full_image): ditto.

	* gdk/x11/gxid_lib.[ch]: (_gxid_claim_device), (_gxid_release_device):
	renamed from gxid_(claim|release)_device.

	* gdk/x11/gdkinput-gxi.c: (_gdk_input_enable_window),
	(_gdk_input_disable_window): upd for gxid change.

	* gtk/gtkimage.c: (animation_timeout): make static.

	* gtk/gtkstyle.c: (draw_thin_shadow), (draw_spin_entry_shadow): make
	static.

	* gtk/gtktextutil.c: (bidi_menu_entries): make static.

1337 1338 1339 1340 1341 1342 1343 1344 1345
Thu Jan 31 10:21:05 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkplug.c (gtk_plug_focus): Handle the case where
	bin->child is NULL. (#70153, Padraig O'Briain)

	* gtk/gtktextutil.c (_gtk_text_util_append_special_char_menuitems): 
	Actually call gettext() on the labels; previously they
	were marked with N_() but we never called gettext().

1346 1347 1348 1349 1350 1351 1352
Wed Jan 30 20:15:49 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreestore.c (gtk_tree_store_set_valist): save last minute
	changes before committing.

	* gtk/gtkliststore.c (gtk_list_store_set_valist): ditto

1353 1354 1355 1356 1357 1358 1359 1360 1361 1362
Wed Jan 30 18:46:14 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkliststore.c (gtk_list_store_set_valist): only emit the
	signal if an interesting column changes.

	* gtk/gtktreestore.c: ditto.

	* gtk/gtktreeview.c (gtk_tree_view_set_cursor): change behavior so
	that it no longer grabs 

Manish Singh's avatar
Manish Singh committed
1363 1364 1365 1366 1367 1368 1369 1370
2002-01-30  Manish Singh  <yosh@gimp.org>

	* gtk/gtkhandlebox.c (gtk_handle_box_destroy): remove unused
	variable.

	* gtk/gtkwindow.c (gtk_window_get_icon): function returns a value,
	so return NULL with g_return_val_if_fail instead of g_return_if_fail.

1371 1372 1373
2002-01-30  Matthias Clasen  <matthiasc@poet.de>

	* gtk/*.c: Remove excess g_return_if_fail calls from static
1374
	and virtual functions.  (#57615)
1375
	
Anders Carlsson's avatar
Anders Carlsson committed
1376 1377 1378 1379
2002-01-30  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkstyle.c (gtk_default_render_icon): Allow a -1 icon size.

1380 1381 1382 1383 1384
Wed Jan 30 20:29:01 2002  Tim Janik  <timj@gtk.org>

	* gtk/gtkscale.c (gtk_scale_set_digits): fix revrted bug fix.
	(use a define for max digits).

1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396
Wed Jan 30 13:55:59 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_show): Try to make
	sure that we have some focused widget on map. (#50339)

	* gtk/gtkdialog.c (gtk_dialog_map): Handling picking
	a focus widget here differently so that if a
	response button gets picked, it's the default one.

	* tests/testgtk.c (make_message_dialog): Set the 
	default response for the dialogs.

Owen Taylor's avatar
1.3.13  
Owen Taylor committed
1397 1398
Tue Jan 29 22:52:36 2002  Owen Taylor  <otaylor@redhat.com>

1399
	* Released 1.3.13
Owen Taylor's avatar
1.3.13  
Owen Taylor committed
1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415

	* configure.in: Micro version 13, interface, binary
	age 0. Require GLIB-1.3.13, Pango 0.24.

	* docs/Makefile.am (EXTRA_DIST): Add widget_geometry.txt,
	sizing-test.txt, tree-column-sizing.txt

	* docs/Makefile.am (EXTRA_DIST): Don't distribute
	Changes-1.2.txt, Changes-2.0.txt, README.linux-fb,
	since they are no longer canonical.

	* gtk/gtk.def: Convert spaces to tabs in front of
	gtk_widget_set_accel_path in case it matters.

	* NEWS: Updated for 1.3.13.

1416 1417 1418 1419 1420 1421 1422
Tue Jan 29 22:31:07 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.[ch] gtkmenuitem.c gtkitemfactory.c: Export 
	gtk_widget_set_accel_path().

	* gtk/gtk.def: Add gtk_widget_set_accel_path.

1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435
Tue Jan 29 21:50:28 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkaccelmap.[ch] gtk/gtkbindings.[ch] gtk/gtkwidget.[ch]:
	Consistently use GdkModifierType. (#66950, Mark Patton)

	* gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_from_stock):
	For consistency with gtk_button_new_from_stock(), fall back
	to gtk_image_menu_item_new_with_mnemnonic(). (#65944,
	Havoc Pennington)
	
	* gtk/gtkitemfactory.[ch] (gtk_item_factory_path_from_widget): 
	Make G_CONST_RETURN. (#68527, Matt Wilson)

1436 1437 1438 1439 1440 1441
Tue Jan 29 20:56:13 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtk[vh]scale.c (gtk_[vh]scale_new_with_range): Document
	that the end points are included in the range. (#69783,
	Jeffrey Baker)

1442 1443 1444 1445 1446 1447 1448 1449
Tue Jan 29 20:38:04 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkscale.[ch]: Revert the last changes to make the
	number of digits only effect drawing, instead, don't
	round unless we are in the 'draw_value' mode -- this
	is the behavior of GTK+-1.2, and keeps the behavior that
	if the user sees a displayed value, it is the correct value.

1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463
Tue Jan 29 19:51:05 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkenums.h: Deprecate GtkPreviewType,
	GtkSignalRunType, GtkSideType, GtkSubmenuPlacement, GtkSubmenuDirection
	(#68183, Matthias Clasen)

	* gtk/gtkmenuitem.h: Remove _gtk_menu_item_set_placement() from
	the public header to avoid having to use GtkSubmenuPlacement.

	* gtk/{gtkmenuitem.c,gtkmenubar.c,gtkmenushell.c}: #define
	GTK_MENU_INTERNALS to preserve access to GtkSubmenu*.

	* gdk/gdki18n.h: Deprecate contents. (Darin Adler.)

1464 1465 1466 1467 1468 1469
Tue Jan 29 19:32:47 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_get/set_property): 
	Fix wrong usage of g_value_set/get_object for PROP_TABS
	and memory leak in getter for PROP_TABS. (Jeff Franks)

1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482
Tue Jan 29 19:04:41 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkstyle.c (gtk_style_render_icon): Document that
	a size of (GtkIconSize)-1 means don't scale.

	* gtk/gtkstyle.c (gtk_default_render_icon): Obey the
	-1 convention.

	* gtk/gtkimage.c (gtk_image_expose): Pass in -1 to
	gtk_style_render_icon() to make sure that we catch it
	obviously if the style's render function tries to
	scale.

1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495
Tue Jan 29 18:50:59 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimage.c (gtk_image_expose): Optimize exposes of
	partial insensitive images.

2002-01-24  Havoc Pennington  <hp@redhat.com>

	* gtk/gtkimage.c (gtk_image_expose): create insensitive version of
	the image regardless of storage type, #63305

	* demos/gtk-demo/images.c: add toggle button to demonstrate that
	GtkImage makes its contents insensitive

1496 1497 1498 1499 1500 1501 1502 1503 1504 1505
Tue Jan 29 17:40:02 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
	Call _gdk_draw_pixbuf(), thus enabling using this function
	for pixbufs with alpha. (#68801)

	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Move
	implementation of gdk_pixbuf_render_to_drawable()
	to here.

1506 1507 1508 1509 1510 1511 1512 1513
Tue Jan 29 17:16:17 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklayout.c: Patch from Jacob Berkman to fix problem
	when the height/width of a layout was set before the
	adjustments were added. (#66294)

	* gtk/gtktreeview.c: Warning cleanups.

1514 1515 1516 1517 1518 1519 1520 1521
Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
	fix to size of torn off window (#60271, Detlef Reichl)

	* gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
	by Ross Burton)

1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543
Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
	cursor_path after usage
	(gtk_tree_view_real_start_interactive_search): use new g_signal
	and g_object calls
	(gtk_tree_view_search_dialog_destroy): use g_object calls and free
	selected_iter if set
	(gtk_tree_view_search_position_func): rework so it will never ever
	appear offscreen (#68492)
	(gtk_tree_view_search_move): use new g_object calls
	(gtk_tree_view_search_init): free selected_iter if set, use new
	g_object calls
	(gtk_tree_view_leave_notify): don't destroy interactive search
	dialog

Tue Jan 29 23:07:03 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
	send focus in event
	(gtk_tree_view_search_dialog_destroy): send focus out event (#66466)

1544 1545 1546 1547 1548
2002-01-29  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkfontsel.c (gtk_font_selection_select_size): Show correct
	size in the size entry.

1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559
Tue Jan 29 16:11:55 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfontsel.c (gtk_font_selection_show_available_sizes): Use
	gtk_tree_view_set_cursor() instead of gtk_tree_selection_select_iter().

	* gtk/gtkfontsel.c (gtk_font_selection_init): Add mnemonic to
	preview field. (#52433, patch from Anders Carlsson)
	
	* gtk/gtkfontsel.c (gtk_font_selection_dialog_init): Remove the 
	dialog separator. (#69558, Alex Larsson, patch from Anders Carlsson)

1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577
Tue Jan 29 15:24:59 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfontsel.[ch]: Switch over to GtkTreeView from
	GtkCList. Remove the entries above the font/face lists 
	since they were a little confusing. (Not sure about this 
	change, so the code is still there the entries are
	just hidden.) (#68890)

	* gtk/gtkfilesel.c: Switch over to GtkTreeView from
	GtkCList. Add mnemonics for fileops. Allow Control/Shift
	Tab to focus out.

	* gtk/gtkfilesel.c: Make fileop dialogs transient-for
	the fileselector. (#69336, patch from Melvin Hadasht)

	* gtk/gtkgamma.c (button_clicked_callback): Fix handling
	of gamma dialog a bit. (#69336, Matthias Clasen.)

1578 1579 1580 1581 1582 1583
Tue Jan 29 14:56:28 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtksocket.c (toplevel_focus_out_handler): Return boolean
	(and FALSE from focus_in / focus_out handlers. (#69528,
	Padraig O'Briain)

1584 1585 1586
Tue Jan 29 14:47:54 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_init_check): Remove the scary startup
1587
	warning. (#69480)
1588

1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601
Tue Jan 29 14:24:49 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_class_init): Add <Control>Tab
	bindings for "move-focus" so that Control-Tab to escape from
	something that eats Tab just works if not otherwise overriden.

	* gtk/gtkspinbutton.c (gtk_spin_button_new_with_range) 
	* gtk/gtkvscale.c (gtk_vscale_new_with_range)
	* gtk/gtkhscale.c (gtk_hscale_new_with_range): Use a page_size
	of zero for the adjustment, since at times we think that the range
	is lower to upper - page_size. A page size equally to the 
	step_increment is, in any case, not meaningful.

1602 1603 1604 1605 1606 1607 1608 1609
2002-01-29  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Add comment about gtk-1-3-win32-production branch
 	currently being ahead in functionality and code cleanliness (in
 	gdk/win32). Just in case somebody looks at the code in gdk/win32
 	here and starts fixing it, when it is going to change soonish
 	anyway.

1610 1611 1612 1613 1614
2002-01-29  Sven Neumann  <sven@gimp.org>

	* gtk/gtkrc.c: don't install an empty icon_set if none of the image
	files could be found in the pixmap_path (bug #69398).
	
1615 1616 1617 1618 1619
2002-01-29  Sven Neumann  <sven@gimp.org>

	* gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): fixed a segfault
	that showed up when using the color picker.

1620 1621 1622 1623 1624 1625 1626
Tue Jan 29 11:51:14 2002  Tim Janik  <timj@gtk.org>

	* gtk/gtkscale.[hc]: fix default value for ::digits property,
	leave as 1 as per havoc's request.
	don't apply the draw_digits value to range->round_digits,
	so we don't perform gross quantization by default.

1627 1628 1629 1630 1631 1632 1633 1634 1635 1636
2002-01-25  Havoc Pennington  <hp@redhat.com>

	* gtk/gtktextbtree.c (_gtk_text_btree_delete): fix assertion
	failure by creating the line data, but not validating it at this
	stage. Also, remove old code related to the "bogus newline" mess
	that removed all tags from the last char in the buffer if you
	tried to delete it.
	(_gtk_text_line_data_new): put this here and prepend underscore,
	remove from gtktextlayout.c

1637 1638 1639 1640 1641 1642
Mon Jan 28 19:57:39 2002  Owen Taylor  <otaylor@redhat.com>

	* modules/input/imhangul.c modules/input/imhangul-defs.h
	po/POTFILES.in. Add port of Emacs korean-hangul input
	method from Yusuke Tabata (#67665)

1643 1644
Mon Jan 28 18:25:10 2002  Owen Taylor  <otaylor@redhat.com>

Owen Taylor's avatar
Owen Taylor committed
1645 1646
	* gtk/gtkentry.c (gtk_entry_draw_frame): Paint shadow
	before focus to give theme engines a bit morea
1647 1648
	flexibility. (#69857)

Jonathan Blandford's avatar
Jonathan Blandford committed
1649 1650 1651 1652 1653
Mon Jan 28 16:23:20 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): no longer
	g_assert.

1654 1655 1656 1657 1658 1659
2002-01-28  Jon Trowbridge  <trow@gnu.org>

	* gtk/gtktreeview.c (gtk_tree_view_set_model): When setting the
	GtkTreeView's model, set prelight_node, prelight_tree,
	button_pressed_node and button_pressed_tree to NULL. (#69603)

1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683
2002-01-28 Bill Haneman <bill.haneman@sun.com>

	* gtk/gtkstyle.c:
	Make sure that the default expanders are drawn with
	an outline thickness appropriate to the size of the
	expanders (RINT expander_size/7).
	Added static gtk_style_draw_polygon_with_gc(), to
	reduce code duplication.

	* gtk/gtktreeview.c: (gtk_tree_view_bin_expose):
	Use focus_line_thickness when drawing focus lines.

	* gtk/gtktreeviewcolumn.c:(gtk_tree_view_column_cell_get_size):
	Adjust requested width to include focus line thickness.
	(gtk_tree_view_column_cell_render_or_focus):
	Calculate a focus line rectangle which gets larger as the focus
	line thickness increases, to avoid overwriting cell content.
	Render left-aligned content at x+focus_line_width.
	(gtk_tree_view_column_cell_draw_focus):
	Don't draw a focus line around an editable text cell, since the
	text caret already indicates keyboard focus.
	Pass a GtkStateType appropriate to the focussed cell's state
	to gtk_paint_focus.

1684 1685 1686 1687 1688
Mon Jan 28 14:44:40 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): Only
	activate/edit the row if shift is not pressed, #69248

Anders Carlsson's avatar
Anders Carlsson committed
1689 1690 1691 1692
2002-01-28  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkcurve.c (gtk_curve_set_vector): Fix build.

1693 1694 1695 1696 1697 1698 1699 1700 1701 1702
2002-01-28  Matthias Clasen  <matthiasc@poet.de>

	* gtk/{gtkalignment.c,gtkaspectframe.c,gtkbutton.c,
        gtkcellrenderer.c,gtkcellrendererpixbuf.c,gtkcombo.c,
        gtkcontainer.c,gtkcurve.c,gtkframe.c,gtklabel.c,
        gtkmessagedialog.c,gtknotebook.c,gtkspinbutton.c,gtktable.c,
        gtktext.c,gtktextview.c,gtktreeview.c,gtktreeviewcolumn.c,
        gtkviewport.c,gtkwidget.c}: General property notification 
	cleanup. (#69066)

1703 1704 1705 1706 1707
2002-01-28  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkaccelgroup.c (gtk_accel_groups_activate): & with the
	default mod mask so accels work when numlock is on.

1708
Sun Jan 27 23:23:23 2002  Kristian Rietveld  <kris@gtk.org>
1709 1710 1711 1712

	* gtk/gtkrbtree.[ch]: add _gtk_rbtree_mark_invalid (my previous
	commit already needed this ...)

1713
Sun Jan 27 22:13:02 2002  Kristian Rietveld  <kris@gtk.org>
Kristian Rietveld's avatar
Kristian Rietveld committed
1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724

	Fix for bug #69586

	* gtk/gtktreeprivate.h: get rid of tab_offset, introduce
	expander_size

	* gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
	expander_size caching (from style), fix CELL_HEIGHT macro,
	use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
	row height calculation, added style_set callback

Anders Carlsson's avatar
Anders Carlsson committed
1725 1726
2002-01-27  Anders Carlsson  <andersca@gnu.org>

Anders Carlsson's avatar
Anders Carlsson committed
1727 1728 1729
	* gtk/gtklabel.c (gtk_label_create_window): Set the cursor to
	GDK_XTERM.

Anders Carlsson's avatar
Anders Carlsson committed
1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745
	* gtk/gtktextview.h (struct _GtkTextView): add mouse_cursor_obscured.

	* gtk/gtkentry.h (struct _GtkEntry): Add mouse_cursor_obscured.

	* gtk/gtktextview.c (set_invisible_cursor): New function.
	(gtk_text_view_obscure_mouse_cursor): Likewise.
	(gtk_text_view_key_press_event): Call obscure_cursor if text 
	has been inserted.
	(gtk_text_view_motion_event): Restore the mouse cursor.

	* gtk/gtkentry.c (gtk_entry_realize): Add GDK_POINTER_MOTION_MASK.
	(set_invisible_cursor): New function.
	(gtk_entry_obscure_mouse_cursor): Likewise.
	(gtk_entry_key_press): call obscure_cursor if text has been inserted.
	(gtk_entry_motion_notify): Restore the mouse cursor.

Sven Neumann's avatar
Sven Neumann committed
1746 1747 1748 1749
2002-01-27  Sven Neumann  <sven@gimp.org>

	* gtk/gtkstyle.c (sanitize_size): removed unused return value.

1750 1751 1752 1753 1754
Sat Jan 26 19:27:23 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtksocket.c (gtk_socket_grab_notify): Don't
	send MODALITY_ON/OFF if socket->same_app (More fixes for #69735)

1755 1756 1757 1758 1759 1760 1761 1762 1763
Sat Jan 26 19:04:37 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (check_is_grabbed): Return FALSE not true
	in the grab_widget == NULL case. (Bug reported by 
	Padraig O'Briain, #69735)

	* gtk/gtkplug.c (handle_modality_on): Realize the modality
	window so gtk_widget_event() doesn't complain :-((((.

1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774
2002-01-25  Federico Mena Quintero  <federico@ximian.com>

	Merge from gdk-pixbuf stable.

	* gdk/gdkpixbuf-drawable.c (rgb565msb): Fixed the endianness
	conversion --- swap the individual 16 bit values instead of taking
	everying as a 32 bit value.
	(rgb565lsb): Likewise.
	(rgb555lsb): Likewise.
	(rgb555msb): Likewise.

1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790
2002-01-25  Alex Larsson  <alexl@redhat.com>

	* gdk/linux-fb/gdkdrawable-fb2.c (gdk_drawable_impl_fb_class_init):
	Implement copy_to_image instead of get_image
	
	* gdk/linux-fb/gdkimage-fb.c:
	Implement _gdk_image_new_for_depth, _gdk_windowing_get_bits_for_depth and
	_gdk_fb_copy_to_image.
	Based in part on patch from Mathieu Lacage <mathieu_lacage@realmagic.fr>

	* gdk/linux-fb/gdkmain-fb.c:
	Make ENABLE_FB_MANAGER region larger.

	* gdk/linux-fb/gdkprivate-fb.h:
	Change _gdk_fb_get_image to _gdk_fb_copy_to_image.

1791 1792 1793 1794 1795
2002-01-25  Sven Neumann  <sven@gimp.org>

	* gtk/gtkwindow.c (gtk_window_get_size): changed the comment so
	that gtk-doc doesn't get confused.

1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808
Fri Jan 25 14:03:36 2002  Tim Janik  <timj@gtk.org>

	* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
	that the passed in arrow is always _UP or _DOWN, this catches
	false invocations which lead to drawing artefacts.
	(start_spinning): likewise, i.e. sanity check the passed in arrow.
	(gtk_spin_button_button_release): fix arrow redrawing.
	(gtk_spin_button_button_press): must set click_child for
	button3 even if we don't take spinning action right away.

	* gtk/gtkspinbutton.h (struct _GtkSpinButton): document
	valid values for click_child.

1809 1810 1811 1812 1813 1814 1815
Thu Jan 24 23:03:24 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): update docs,
	return current FALSE if x is smaller than the current visible area,
	not than the requested area, don't correct y coordinate,
	TREE_WINDOW_Y_TO_RBTREE_Y will do that. Fixes #67477.

1816 1817 1818 1819 1820 1821 1822
Thu Jan 24 15:41:08 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c
	 (gtk_tree_view_motion_draw_column_motion_arrow): fix column
	 reordering fully.
	 (gtk_tree_view_size_allocate): fix evil bug.

1823 1824 1825 1826 1827 1828
Thu Jan 24 11:53:19 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_destroy): Don't clear
	the model until we clean up all the other objects
	that might refer to the object.

Mark McLoughlin's avatar
Mark McLoughlin committed
1829 1830 1831 1832
2002-01-24  Mark McLoughlin  <mark@skynet.ie>

	* gtk/gtkaccessible.h: include gtk/gtkwidget.h

1833 1834 1835 1836 1837 1838
Wed Jan 23 20:28:59 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_draw_arrow): 
	Use insensitive state for insensitive arrows, not
	just an "etched state". (#67172, Adrian Custer)

1839 1840 1841 1842 1843
2002-01-23  Manish Singh  <yosh@gimp.org>

	* gtk/gtkentry.c (gtk_entry_set_text): use a variable that's actually
	been declared.

1844 1845 1846 1847 1848 1849
2002-01-23  Damon Chaplin  <damon@ximian.com>

	* configure.in (gtk_doc_min_version): set minimum gtk-doc version to
	0.9, since we need to use the new --type-init-func argument for
	gtkdoc-scangobj.

1850 1851
2002-01-23  Matthias Clasen  <matthiasc@poet.de>

1852 1853 1854
	* gtk/gtkentry.c, gtk/gtkwidget.c: Remove excessive
	g_return_if_fail() calls. (#57615)

1855 1856 1857
	* gtk/gtkitemfactory.c (gtk_item_factory_delete_entries): Make
	it work for paths with underline accelerators. (#69247)

1858 1859 1860 1861 1862
Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkspinbutton.c (gtk_spin_button_state_changed): 
	Stop spinning if widget becomes insensitive. (#56248)

1863 1864
Wed Jan 23 14:44:12 2002  Owen Taylor  <otaylor@redhat.com>

1865
	* gtk/gtkspinbutton.c (EPSILON): Decrease value since
1866 1867
	we now use doubles.

1868 1869 1870 1871 1872
Tue Jan 22 16:58:37 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): Fix sizing bug
	I introduced accidentally, #69358

1873 1874 1875 1876 1877
2002-01-22 Padraig O'Briain <padraig.obriain@sun.com>

	* gtk/gtktreestore.c (gtk_tree_store_iter_children):
	Update last change to prevent core dump

1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888
Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreestore.c: add some more stamp checks (pointed out
	by Anders Carlsson)

	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
	assume _row_changed will insert sort (because _row_changed doesn't
	need to follow this signal), so apply insert sort here
	(gtk_tree_model_sort_level_find_insert): header doesn't need to be
	set here, so use a return instead of g_return_val_if_fail.

1889 1890 1891 1892 1893
Mon Jan 21 18:28:17 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update
	top_row.  Remove extraneous print statements.

1894 1895 1896 1897 1898 1899 1900 1901 1902
2002-01-21  Matthias Clasen  <matthiasc@poet.de>

	* gtk/gtkitemfactory.c (gtk_item_factory_popup, 
	gtk_item_factory_popup_with_data): Document allowed values
	for ifactory.

	* gtk/gtkitemfactory.c (gtk_item_factory_delete_entry): Make 
	it work for paths with underline accelerators.

Jonathan Blandford's avatar
Jonathan Blandford committed
1903 1904 1905 1906 1907
Fri Jan 18 16:31:21 2002  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): only resize the
	window.

1908 1909 1910 1911 1912 1913 1914
Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
	case where there is no default widget and the entry
	is the focus widget, since this also causes infinite
	recursion. (#69158)

1915 1916 1917 1918 1919 1920
Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c (gdk_init_check): Set the fallback program class here,
	rather than lazilygdk_get_program_class(), since we don't want
	-name to override it. (#69123, Ryan Lovett)

1921 1922 1923 1924 1925 1926 1927 1928