ChangeLog.pre-2-10 170 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
2003-09-21  Matthias Clasen  <maclas@gmx.de>

	Changes to make cross-process merging feasible:
	
	* gtk/gtkuimanager.[hc]: Add a readonly "ui" property which holds the
	merged UI definition. Remove the "changed" signal, since its role
	is now filled by "notify::ui". Instead add a "actions-changed" signal
	which gets emitted when the set of actions changes.

	* gtk/gtktoggleactionprivate.h:
	* gtk/gtktoggleaction.[hc] (gtk_toggle_action_[sg]et_draw_as_radio):
	Add a "draw_as_radio" property to toggle actions so that they can be
	used as proxies for radio actions much like the "draw_as_radio" 
	property on check menu items enables them to operate as proxies for
	radio actions.

	Prevent the "show_all" trap for action-based menus (see
	http://mail.gnome.org/archives/gtk-devel-list/2003-September/
	msg00260.html):

	* gtk/gtkmenu.c (gtk_menu_{hide,show}_all): Remove g_return_if_fail()
	calls from static functions.

	* gtk/gtkuimanager.c (update_node): 
	* gtk/gtkaction.c (connect_proxy): Set "no_show_all" on constructed
	widgets whose visibility is externally controlled.

	* gtk/gtkwidget.[hc] (gtk_widget_[gs]et_no_show_all): Add a boolean 
	"no_show_all" property with setter and getter. When TRUE, it keeps
	gtk_widget_{hide,show}_all() from modifying the visibility of the 
	widget and its children.

33 34 35 36
Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktextview.[ch]: Add new "tab moves focus" property (#122709)

37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
2003-09-20  Tor Lillqvist  <tml@iki.fi>

	* gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid
	including editor backup files. List files we want explicitly.

	* gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just
	calls setlocale (LC_CTYPE, NULL). On Windows, looks for the
	LC_ALL, LC_CTYPE and LANG environment variables, than calls
	g_win32_getlocale().

	(gtk_get_default_language): Code snippet moved to above function,
	call it.

	* gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave)
	* gtk/gtkrc.c (gtk_rc_context_parse_file): Call
	_gtk_get_lc_ctype() instead of setlocale().

54 55 56 57 58
Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkpaned.c, gtk/gtkhpaned.c: implement RTL flipping
	(#96632)

59 60 61 62 63
Fri Sep 19 13:24:54 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktreeview.c (gtk_tree_view_get_cursor): Improve
	documentation. (#117306, Steve Chaplin)

64 65 66 67 68 69 70 71 72
2003-09-19  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkkeys-win32.c (update_keymap): Handle dead keysyms
	present on the US-International keyboard. For clarity, order
	keysyms in case statement according to numeric value.

	(gdk_keymap_translate_keyboard_state): Handle Caps Lock
	correctly. (#120176, Ken Rastatter and Owen Taylor)

Matthias Clasen's avatar
Matthias Clasen committed
73 74
2003-09-18  Matthias Clasen  <maclas@gmx.de>

75 76 77
	* gtk/gtkaction.c (gtk_action_finalize): Call g_closure_unref() to
	unref a closure, not g_object_unref().  (#122637, Marco Pesenti Gritti)

78 79 80 81 82 83 84 85 86 87 88 89 90
	Install accelerators on actions, not on proxies, support
	accelerator-only actions:
	
	* gtk/gtkmenu.c (get_accel_path): New function to get the accel path
	and its lock status either via _gtk_widget_get_accel_path() or by 
	looking at the accel_path stored in the menu item itself and determining
	its lock status by peeking into the contained accel label. This was
	already (accidentally) committed a week ago.

	* gtk/gtkaction.h (gtk_action_set_accel_group):
	(gtk_action_[dis]connect_accelerator): New functions.

	* gtk/gtkaction.c (struct _GtkActionPrivate): Add accel_group,
91 92 93 94
	accel_closure and accel_count. We must have a reference to the 
	accel_group, since we need it in connect_proxy. The count is necessary
	to ensure that the accelerator isn't removed before the last proxy 
	requesting it has been unmerged.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
	(connect_proxy): Connect the accelerator to the 
	action now, only set the accel_path on the menuitem.
	(remove_proxy): Disconnect the accelerator from the action, not from
	the menuitem.
	(gtk_action_set_accel_group): Set the accel group. 
	(gtk_action_[dis]connect_accelerator): Count the number of times
	this functions have been called and install/remove the accelerator if
	the count leaves/reaches zero.

	* gtk/gtkuimanager.h (GtkUIManagerItemType): Add 
	GTK_UI_MANAGER_ACCELERATOR.

	* gtk/gtkuimanager.c (NodeType): Add NODE_TYPE_ACCELERATOR.
	(start_element_handler): Create NODE_TYPE_ACCELERATOR nodes from
	<accelerator> elements.
	(gtk_ui_manager_add_ui): Create NODE_TYPE_ACCELERATOR nodes when
	type is GTK_UI_MANAGER_ACCELERATOR.
	(update_node): Set the accel group on actions before creating their
	proxies. Don't set the accel group on created menus. For 
	NODE_TYPE_ACCELERATOR nodes, [dis]connect the actions' accelerator.
	(print_node): Also emit <accelerator> elements.

	* tests/testmerge.c (dump_accels): Add a "Dump Accels" button. 

Matthias Clasen's avatar
Matthias Clasen committed
119 120
	* gtk/gtkuimanager.c (update_node): Robustness improvements.

121 122 123 124 125 126 127
2003-09-17  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.c (text_handler): Report unexpected character
	data as error from the GMarkup parser, otherwise things like
	gtk_ui_manager_add_ui_from_string (ui, "Hi there!", -1, &error) 
	pass unexpectedly.

128 129 130 131 132
Wed Sep 17 02:38:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_class_init): revert accidentally
	committed redraw_on_allocate change.

133 134 135 136 137 138 139 140 141 142 143
Tue Sep 16 10:42:00 2003  Eric Warmenhoven  <eric@warmenhoven.org>

	* gdk/linux-fb/gdkwindow-fb.c: Add gdk_window_set_keep_{above,below}
	stubs to fix compilation

	* gdk/linux-fb/gdkrender-fb.c: Add gdk_shadow_fb_stop_updates stub for
	when shadowfb is disabled. Patch from pjm@cctechnol.com (#120847).

	* gdk/linux-fb/gdkmouse-fb.c: Add GDK_MOUSE_DEVICE environment
	variable. Patch from Marc Welz (#121347).

144 145 146 147
2003-09-16  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaction.h: Apply egtk-format-protos.

148 149
2003-09-15  Matthias Clasen  <maclas@gmx.de>

150 151
	* gtk/gtkuimanager.c: Doc tweaks.

152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
	Smart separators; see 
	http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00133.html:
	
	* gtk/gtkuimanager.c (update_smart_separators): New function which 
	implements "smart" separators by iterating once over the entries of a 
	menu, hiding and showing separators as necessary.
	(update_node): Mark separators used as fences of placeholders as
	hidden. Explicitly added separators are marked as smart. Call 
	update_smart_separators after updating a menu or toolbar node. 
	Connect update_smart_separators to "notify::visible" signal on menu
	and tool items.
	
	* tests/merge-[12].ui: Test smart separators.

	Changes to allow setting action state before connecting signal; see
	the thread starting at 
	http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00140.html:
	
170 171 172 173 174 175 176 177 178 179 180 181 182 183
	* gtk/gtkactiongroup.[hc]: (gtk_action_group_add_radio_actions):
	(gtk_action_group_add_radio_actions_full): Add value parameter to allow
	setting the currently selected group member before connecting signals.
	(GtkToggleActionEntry): Separate struct for constructing toggle actions,
	including a boolean to initialize the action state before connecting
	signals.
	(gtk_action_group_add_toggle_actions):
	(gtk_action_group_add_toggle_actions_full): New functions to construct
	toggle actions from an array of GtkToggleActionEntries.

	* demos/gtk-demo/appwindow.c: 
	* tests/testactions.c: 
	* tests/testmerge.c: Adjust to new action group API.

184 185 186 187 188
Sun Sep 14 16:59:52 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_init): Name the arrow 
	"gtk-toolbar-arrow" so themes can special-case it.

Soeren Sandmann's avatar
Soeren Sandmann committed
189 190 191 192
Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/Makefile.am (gtk_c_sources): sort the list of files.

193 194 195 196 197
Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
	PangoFontMetrics. Patch from Steve Chaplin (#122257).

198 199 200 201 202 203 204
2003-09-14  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
	special-case code for WS_EX_TRANSPARENT (GDK_INPUT_ONLY) windows,
	the usefulness of which was already in doubt. Removing it fixes
	bugs #118575 and #121851.

Jonathan Blandford's avatar
Jonathan Blandford committed
205 206 207 208 209 210 211 212 213
Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>

	Merge from stable.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
	pressed button (used to determine if we want to initiate a drag later
	on) if the current grab widget is either NULL or tree_view (Reported
	by Jeroen Zwartepoorte).

214 215 216 217 218
2003-09-12  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text) 
	(gdk_draw_text_wc): Add deprecation notes.  (#121955, Martin Pool)

Matthias Clasen's avatar
Matthias Clasen committed
219 220
2003-09-11  Matthias Clasen  <maclas@gmx.de>

221 222
	* gdk/gdkpango.c: Doc tweaks.

Matthias Clasen's avatar
Matthias Clasen committed
223 224 225 226 227 228 229 230
	* tests/testgtk.c: Add table menu tests.

	* gtk/gtkmenu.c (gtk_menu_free_private): Don't forget to free the 
	GtkMenuPrivate struct itself. Pointed out by valgrind.

	* gtk/gtkuimanager.c (gtk_ui_manager_finalize): Clean up 
	properly.  (#121998)

231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
Wed Sep 10 22:25:04 2003  Kristian Rietveld  <kris@gtk.org>

	The table menu patch! Turns GtkMenu into a table, so you can attach
	menu items in numerous new ways! Be creative!

	Contains some bug fixes and RTL adaptions from Matthias Clasen.

	* gtk/gtkmenu.c [toplevel]: introduce ATTACH_INFO_KEY, extend
	GtkMenuPrivate, introduce AttachInfo, add child properties enum,
	(gtk_menu_free_private), (gtk_menu_get_private): we have to free
	the heights array in the private struct,
	(gtk_menu_class_init): reorder code a bit, install child properties,
	(get_attach_info), (get_child_attach): new utility functions,
	(gtk_menu_set_child_property), (gtk_menu_get_child_property): introduce
	child properties, for the attach info,
	(gtk_menu_remove): remove AttachInfo from menu item,
	(gtk_menu_real_insert): implemented algorithm to automagically place
	inserted menu items at the correct place in the table,
	(gtk_menu_size_request), (gtk_menu_size_allocate),
	(compute_child_offset): reworked/rewritten to support table menus,
	(gtk_menu_attach): new function,
	(find_child_containing), (gtk_menu_move_current): new functions to
	get table menu keynav right.

	* gtk/gtkmenu.h: add gtk_menu_attach() prototype.

257 258 259 260 261 262 263
2003-09-10  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtksocket.c (gtk_socket_filter_func): Only remove 
	PropertyNotify events from the stream if they have been handled,
	in order to enable extending the plug<->socket communication via
	properties.

264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>

	Big TreeView DnD fixage, makes drops on empty models work, makes
	TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
	Related bugs #95362 and #113314. I don't want to touch this code
	ever again.

	* gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.

	* gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
	for selection_data->length.

	* gtk/gtktreeview.c (struct DestRow), (dest_row_free),
	(set_dest_row), (get_dest_row): we don't store just the row ref
	anymore, but a struct with the row ref and additional info,
	(set_destination_row): handle drops on empty space and some
	style fixes,
	(get_logical_dest_row): also return path_down_mode/drop_append_mode
	flags, handle dropping childs on their new parents, rewrite
	drop append handling into something saner,
	(gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
	spaces,
	(gtk_tree_view_drag_drop): updates for updated backend,
	(gtk_tree_view_drag_data_received): updates for updated backend,
	path down mode (treestore DnD) handling,
	(gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
	when we are trying to drop a row on an empty model,
	(gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.

	* gtk/gtkliststore.c (gtk_list_store_drag_data_received),
	(gtk_list_store_row_drop_possible): style and drop-append fixes.

	* gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.

298 299 300 301 302 303 304 305
2003-09-08  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkeventbox.[hc]:
	Implement gtk_event_box_get/set_input_only()
	
	* tests/testgtk.c:
	Tests for the new input only event boxes

306 307 308 309 310 311 312 313 314 315 316 317
Mon Sep  8 21:44:20 2003  Kristian Rietveld  <kris@gtk.org>

	Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
	the call to gtk_tree_model_filter_add_root,
	(gtk_tree_model_filter_row_changed): bail out if c_path is not above
	the virtual root, allow building levels on the second try to convert
	the child path to a filter path,
	(gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
	root when calling gtk_tree_model_filter_elt_get_path.

318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
2003-09-07  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.c (update_node): Fix a C99ism.  (#121640,
	Josh Beam)

	Fixes for accelerator handling during (un)merging:
	
	* gtk/gtkuimanager.c (update_node): Move setting info-action
	after the switch, since the old action is needed in some cases.
	In cases of proxy type mismatch, disconnect the old proxy from
	the old action.

	* gtk/gtkaction.c (remove_proxy): Renamed from 
	gtk_action_remove_proxy(). Move unsetting of the accelerator
	here from disconnect_proxy() in order to catch all cases of 
	removing a proxy.
	(gtk_action_disconnect_proxy): Fix logic in g_return_if_fail()
	to fail if proxy isn't a proxy of action.

Pablo Saratxaga's avatar
Pablo Saratxaga committed
337 338 339 340 341
2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>

	* configure.in: Added Uzbek latin (uz) and cyrillic (uz@Cyrl) to
	ALL_LINGUAS

342 343 344 345 346
2003-09-07  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaction.c (disconnect_proxy): Make disconnect work
	for toolitems.

347 348 349 350 351
2003-09-06  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaction.c (gtk_action_connect_proxy): Disconnect from 
	prev_action, not from action.  (Fix by David Hampton)

352 353
Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
 
354
	* Back out locale-dependent interpretation of
355 356 357 358 359 360
 	KP_Decimal, the official XFree86 interpretation
 	is that KP_Decimal => . KP_Separator => ,
 	always, independent of locale. 
 	(#105161, Frederic Crozat, 
 	http://bugs.xfree86.org/show_bug.cgi?id=534)
 
361 362
2003-09-04  Matthias Clasen  <maclas@gmx.de>

363 364 365 366 367 368 369 370 371
	* tests/testmerge.c: Test buttons and toggle buttons as proxies.

	* gtk/gtktoggleaction.c (connect_proxy): 
	(gtk_toggle_action_real_toggled): Support toggle buttons as proxies. Note 
	that a "draw_as_radio" property is needed for check buttons similar to 
	check menu items, in order to fully support button proxies for radio actions.

	* gtk/gtkaction.c (connect_proxy): Allow buttons as proxies.

372 373 374 375 376 377 378 379
	* tests/testmerge.c (toggle_dynamic): Test gtk_ui_manager_add_ui(). 

	* gtk/gtkuimanager.h: Add GtkUIManagerItemType enum which is needed for the
	'type' argument of gtk_ui_manager_add_ui().

	* gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui): Add 'type' and 'top' arguments
	to make this function as powerful as the XML methods of adding UI.  (#120647)

Kristian Rietveld's avatar
Kristian Rietveld committed
380 381 382 383 384 385
Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* docs/RELEASE-HOWTO: updates.

386 387 388 389 390 391 392 393
2003-09-04  Matthias Clasen  <maclas@gmx.de>

	* tests/merge-2.ui: Use "position" instead of "pos".

	* gtk/gtkuimanager.c (start_element_handler): No need 
	to be terse: Change the name of the "pos" attribute
	to "position".

Matthias Clasen's avatar
Matthias Clasen committed
394 395
2003-09-04  Matthias Clasen  <maclas@gmx.de>

396 397 398
	* gtk/gtkuimanager.c: Un-prefix GtkUIManagerNodeType and 
	GtkUIManagerNode to shorten the names and to make the
	GTK_UI_MANAGER_<TYPE> names available for a public enum.
399

Matthias Clasen's avatar
Matthias Clasen committed
400
	* gtk/gtkactiongroup.c:
401
	* gtk/gtkuimanager.c: Various doc tweaks.	
Matthias Clasen's avatar
Matthias Clasen committed
402 403 404 405

	* gtk/gtkuimanager.c (start_element_handler):
	(end_element_handler): Improve error reporting. 

Kristian Rietveld's avatar
Kristian Rietveld committed
406 407 408 409 410 411 412 413 414
Wed Sep  3 23:18:17 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* gtk/gtkmenu.c (gtk_menu_real_move_scroll): for the END case,
	use end_position - page_size instead of G_MAXINT, since
	gtk_menu_scroll_to doesn't CLAMP anymore internally. (Fixes #121237,
	reported by Havoc Pennington).

Kristian Rietveld's avatar
Kristian Rietveld committed
415 416 417 418 419 420 421
Wed Sep  3 21:58:03 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* gtk/gtkiconfactory.c (cached_icon_free): if icon->style != NULL,
	unref it. (Fixes memleak, patch from Kjartan Maraas).

422 423 424 425 426 427 428 429 430 431
Wed Sep  3 21:38:26 2003  Kristian Rietveld  <kris@gtk.org>

	* gdk/Makefile.am, gdk/linux-fb/gdkfbmanager.c, gdk/x11/gdkcolor-x11.c,
	gdk-pixbuf/io-gif.c, gtk/Makefile.am, gtk/gtkcalendar.c,
	gtk/gtkclist.c, gtk/gtkctree.c, gtk/gtkdnd.c, gtk/gtkentry.c,
	gtk/gtkhandlebox.c, gtk/gtkitemfactory.c, gtk/gtkmenu.c,
	gtk/gtknotebook.c, gtk/gtkrange.c, gtk/gtkrc.h, gtk/gtktree.c,
	gtk/gtktypeutils.h: big patch from Kjartan Maraas
	to fix numerous typos.

432 433 434 435
Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>

	* docs/faq/gtk-faq.sgml: Correct compile line for threads example.

436 437 438 439 440 441 442 443 444 445 446
2003-09-02  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkdisplay-win32.c (gdk_display_open): Don't call
	CloseHandle() on the HMODULE returned from GetModuleHandle().
	Didn't cause any harm, but didn't do anything useful either. When
	running a GTK+ program under MS's debugger, the CloseHandle() call
	would cause a "first-chance exception" in ntdll.dll to show up.
	(The exception is caught appropriately if you let it proceed, but
	it confuses the person using the debugger). Thanks to Bruce
	Hochstetler for noticing.

Kristian Rietveld's avatar
Kristian Rietveld committed
447 448 449 450 451 452 453 454
Tue Sep  2 21:01:19 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): revert the change
	to only select when button 1 is pressed introduced in the fix of
	bug #120187.

455 456
2003-09-02  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
457 458
	* gtk/gtkactiongroup.c (gtk_action_group_new): Doc addition.

459 460 461 462 463 464 465 466 467 468 469 470 471 472
	* gtk/gtkuimanager.c: Shorten the names of some static 
	functions.

	Support adding and removing merge nodes dynamically (#120647, 
	Anders Carlsson):
	
	* gtk/gtkuimanager.[ch] (gtk_ui_manager_new_merge_id): Renamed 
	gtk_ui_manager_next_merge_id to gtk_ui_manager_new_merge_id 
	and made it public.
	(gtk_ui_manager_add_ui): New function to add UI elements
	without juggling XML fragments, currently restricted to menuitems,
	toolitems and separators. Actions still come from registered 
	action groups.

473 474 475 476 477 478
Mon Sep  1 19:39:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/gdkwindow.c (gdk_window_get_bg_gc): Fix bug where the
	background pixmap was being offset twice, once by the ts_origin in
	gdk_window_get_bg_gc(), and once by gdk_draw_rectangle().

479 480 481 482 483 484 485 486 487
2003-09-01  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.[ch] (gtk_ui_manager_ensure_update): Make
	this public again, since it's occasionally useful.  (#121128,
	Marco Pesenti Gritti)

	* gtk/gtkaction.c: Add an "is_important" property and propagate
	it to toolitem proxies.  (#121058, Marco Pesenti Gritti)

488 489 490 491 492
Mon Sep  1 00:32:30 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* tests/testtoolbar.c (main): connect to "delete_event" so the
	application will actually quit when you close the window

493 494 495 496 497 498 499 500 501
2003-09-01  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.c (gtk_ui_manager_get_widget) 
	(gtk_ui_manager_get_action): g_return_if_fail() if
	path is NULL.
	(gtk_ui_manager_get_node): Avoid a segfault if path is empty.
	(gtk_ui_manager_finalize): Remove the idle on finalize. (#121125, 
	Marco Pesenti Gritti)

Matthias Clasen's avatar
Matthias Clasen committed
502 503
2003-08-31  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
504 505
	* gtk/gtktoolitem.c: Fix some typos in docs.

506 507 508 509 510 511
	* gtk/gtkuimanager.[ch] (gtk_ui_manager_get_action): New function,
	replaces gtk_ui_manager_activate().  (#120658)

	* tests/testmerge.c: Use gtk_ui_manager_get_action() instead of
	gtk_ui_manager_activate().

Matthias Clasen's avatar
Matthias Clasen committed
512 513
	* gtk/gtkaction.c: 
	* gtk/gtkactiongroup.c: Some doc tweaks.
Matthias Clasen's avatar
Matthias Clasen committed
514 515

	* gtk/gtkuimanager.[hc]: Get rid of the remove_widget signal. It
Matthias Clasen's avatar
Matthias Clasen committed
516
	wasn't emitted anyway. Some doc tweaks.
Matthias Clasen's avatar
Matthias Clasen committed
517

518 519
2003-08-30  Matthias Clasen  <maclas@gmx.de>

520 521 522 523 524 525 526 527
	* tests/testmerge.c (add_widget): Connect to "destroy" on toolbar,
	rather than to "remove" on handlebox. 

	* gtk/gtkuimanager.[hc] (gtk_ui_manager_activate): New method to
	activate an action found by following a path.  (#120658)

	* tests/testmerge.c: Add a button to test gtk_ui_manager_activate().

528 529
	* tests/testmerge.c (add_widget): Put toolbars in handleboxes.

530 531
	* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
	setter and getter. If it is set, add tearoff menu items to regular 
532
	menus, but not to popups. Add a signal "changed", which gets emitted
533
	when the merged ui has changed.  (#120649, #120656)
534 535 536 537

	* tests/testmerge.c: Add button to test the generation of tearoff 
	menu items.

538 539
2003-08-29  Matthias Clasen  <maclas@gmx.de>

540 541 542
	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
	Actually group the actions together rather than putting each in its 
	own group.
543

544 545
	* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
	proxy menu items for radio actions.
546

547 548
	* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.

549 550 551 552 553 554 555 556 557
Fri Aug 29 21:40:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full):
	Fix use of uninitialized variable.

	* gtk/gtktextutil.c
	(_gtk_text_util_append_special_char_menuitems): add const cast to
	get rid of warning

558 559
2003-08-29  Matthias Clasen  <maclas@gmx.de>

560 561 562
	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
	"draw_as_radio" as a separate property, not as an alias of 
	"inconsistent".
563 564
	(gtk_check_menu_item_get_property): 
	(gtk_check_menu_item_set_property): Also support "draw_as_radio".
565

566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591
Fri Aug 29 20:32:07 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c: Only treat buttons as homogeneous when they
	are narrower than 13 time the estimated character width of the
	font. (#107781, David Bordoley)

	* gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): Check
	here if the GtkToggleButton is active. This may be the case if it
	is a radio button.

	* gtk/gtktoolbar.c: Clarify documentation wrt. GtkSignalFunc
	vs. void (*) (GtkWidget, gpointer). (#107495, Mariano
	Suarez-Alvarez).

	* gtk/gtkcheckmenuitem.[ch]: new "draw_as_radio"
	property. (#111207, David Bordoley).

	* gtk/gtktoggletoolbutton.c
	(gtk_toggle_tool_button_create_menu_proxy): use new
	"draw_as_radio" property on the menu item when the item is a radio
	tool button

	* gtk/gtktoolbutton.c (gtk_tool_button_create_menu_proxy): Fixes
	to only pay attention to the "use_underline" property when the
	button label comes from the "label" property.

Laurent Dhima's avatar
Laurent Dhima committed
592 593 594 595
2003-08-29  Laurent Dhima  <laurenti@alblinux.net>

	* configure.in: Added "sq" to ALL_LINGUAS.
	
596 597
2003-08-28  Matthias Clasen  <maclas@gmx.de>

598 599 600
	* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
	fix in the docs.

601 602 603 604 605 606 607 608 609
	* gtk/gtkuimanager.c: Change the XML format:
	<Root> element is replaced by <ui>,
	<menu> element is replaced by <menubar>,
	<submenu> element is replaced by <menu>,
	<dockitem> element is replaced by <toolbar>,
	<popups> element is gone,
	verb attribute is replaced by action,
	name defaults to action or the element name. 

610 611 612 613 614 615 616 617
	* gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by 
	GtkActionEntry and GtkRadioActionEntry. GtkActionEntry is simplified 
	by removing the user_data, entry_type and extra_data fields, 
	GtkRadioActionEntry is further simplified by removing the callback. 
	The user_data can now be specified as an argument to 
	gtk_action_group_add_actions(). There is a new method 
	gtk_action_group_add_radio_actions(), which is similar to 
	gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634
	and a callback parameter in addition to the user_data. The callback
	is connected to the ::changed signal of the first group member.
	There are _full() variants taking a GDestroyNotify of 
	gtk_action_group_add_[radio_]actions().

	* gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted 
	on every member of the radio group when the active member is changed. 
	Add an integer property "value", and a getter for the value of "value"
	on the currently active group member. 

	* tests/testactions.c: 
	* tests/testmerge.c: 
	* tests/merge-[123].ui:  
	* demos/gtk-demo/appwindow.c: Adjust to these changes.

	* gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.

635 636 637 638 639
2003-08-27  Anders Carlsson  <andersca@gnome.org>

	* demos/gtk-demo/appwindow.c (do_appwindow): Focus the
	text view, so the tool bar won't have focus.

640 641 642 643 644
Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
	declaration not at start of block. (#120371, Damien Carbery)

645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660
2003-08-26  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize 
	for length, not gsize.

	* gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to 
	<ui> and make it optional in strings. Rename verb to action, <dockitem> 
	to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.

	* demos/gtk-demo/appwindow.c: 
	* tests/testactions.c: 
	* tests/testmerge.c:
	* tests/merge-1.ui:
	* tests/merge-2.ui:
	* tests/merge-3.ui: Adjust to the new XML format.

661 662 663 664 665 666
Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_update_layout_width): 
	Since we add one to the layout's reported width to
	account for the cursor, we need to subtract one when
	setting the wrap width for the layout. (Fixes infinite
667
	loop (#120325, Frederic Crozat)
668 669 670 671 672

	* gtk/gtktextlayout.c (gtk_text_layout_get_line_display): 
	Be a bit more careful about rounding when converting
	wrapped width from Pango units to pixels.

673 674 675 676 677 678 679 680 681 682 683
2003-08-26  Matthias Clasen  <maclas@gmx.de>

        Rename GtkMenuMerge to GtkUIManager. 
	
	* gtk/gtkuimanager.[hc]: New files. 
	* gtk/gtkmenumerge.[hc]: Removed. 

	* gtk/Makefile.am: 
	* gtk/gtk.h:
	* tests/testmerge.c: 
	* tests/testactions.c: 
684 685
	* demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
	GtkUIManager.
686

687 688 689
	* demos/gtk-demo/appwindow.c: Make GtkMenuMerge demo less intimidating: 
	add comments to entries array, remove newlines from ui definition. Don't 
	use the ::add_widget signal.
690

691 692 693 694 695 696
Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_forall): Don't
	include page->menu_label - causes various problems,
	including #12047.

Kristian Rietveld's avatar
Kristian Rietveld committed
697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721
Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	Fixes #115871, reported by Michael Natterer.

	* gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
	added ctrl_pressed and shift_pressed bitfields,
	(_gtk_tree_selection_internal_select_node): replace GdkModifierType
	arg with GtkTreeSelectMode.

	* gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
	(gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
	(_gtk_tree_selection_internal_select_node): all updated for
	GdkModifierType -> GtkTreeSelectMode move.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
	and shift_pressed around selection handling block,
	(gtk_tree_view_real_select_cursor_row),
	(gtk_tree_view_real_toggle_cursor_row),
	(gtk_tree_view_real_selection_cursor_parent),
	(gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
	instead of checking the event state. And also updates for the
	GdkModifierType -> GtkTreeSelectMode move.

722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750
Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkplug.c (gtk_plug_focus): Send the focus on
	to the parent when there was no focus widget before
	and no focus widget after - that is, when there are
	no focusable widgets. (#108678, help tracking it
	down from Padraig O'Briain, Federico Mena Quintero, )

	* gtk/gtkxembed.[ch]: Move various shared utilities
	for the XEMBED protocol eused by GtkPlug and GtkSocket 
	here.

	* gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
	a flag bit that is sent with focus mesages to indicate
	that the focus has wrapped around on the toplevel;
	use this bit to catch infinite loops when there is no
	focusable widget at ll in the entire toplevel.

	* tests/testsocket.c (child_read_watch): Remove an
	extraneous unref.

	* gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h: 
	Up XEMBED protocol version to 1, add logic for 
	sending the right version in XEMBED_EMBEDDED_NOTIFY.

	* gtk/gtksocket.c (gtk_socket_add_window): Send
	the embedder window in the XEMBED_EMBEDDED_NOTIFY
	as the spec requires.

751 752 753 754 755 756 757
Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkkeys-x11.c: Fix up CapsLock and 
	NumLock handling for non-XKB. Add a special case
	hack for NumLock on Sun servers. (Patch from
	Robert Basch, #115819)

758 759
2003-08-25  Matthias Clasen  <maclas@gmx.de>

760 761 762
	* gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten 
	Welinder)

763 764 765 766
	* gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
	gtk_action_group_set_translation_domain): Hooks for translation of
	label and tooltip in GtkActionGroupEntries.  (#120620)

767 768 769 770
2003-08-25  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
	values properly. Sorry about the resize grip trouble, Owen.  (#120621)
771
	
772 773 774 775 776
	* gtk/gtkactiongroup.c: 
	* demos/gtk-demo/appwindow.c: 
	* tests/testmerge.c: 
	* tests/testactions.c: Use new GtkActionGroupEntryType enum.  

777 778 779 780
Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtk.h: Remove reference to gtkresizegrip.h.

781 782 783 784 785
Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/Makefile.am: Fix accidental commit of references
	to gtkresizegrip.[ch]

786 787 788 789 790
Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c: Fix some missing initializations of
	rc_file->directory.

791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811
2003-08-24  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaction.[ch]: 
	* gtk/gtktoggleaction.[ch]: 
	* gtk/gtktoggleactionprivate.h: 
	* gtk/gtkradioaction.[ch]: 
	* gtk/gtkactiongroup.[ch]: 
	* gtk/gtkmenumerge.[ch]: A model-view separation for menus and
	toolbars, using the EggMenu code by James Henstridge.

	* gtk/gtk.h: Include new headers.
	* gtk/Makefile.am: Add new files.

	* tests/testactions.c: Test for actions.
	* tests/testmerge.c: Test for menu merging.
	* tests/merge-[123].ui: Test data for testmerge. 
	* tests/Makefile.am: Add testactions and testmerge.

	* demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the 
	menubar and toolbar.
	
812 813 814 815 816 817
Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
 
 	* gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix 
 	problem where rc_file->directory wasn't always getting
	set. (#120549, Luis Villa)
 
818 819 820 821
2003-08-22  Christian Rose  <menthos@menthos.com>

	* configure.in: Added "ne" to ALL_LINGUAS.

822 823 824 825 826 827 828
Thu Aug 21 16:00:36 2003  Owen Taylor  <otaylor@redhat.com>
 
 	* gtk/gtkrc.c: Keep a list of current GtkRcFiles
 	being parsed, not just the directories for those
 	files. Use that to catch recursion. (Part of
 	#114988)
 
Kristian Rietveld's avatar
Kristian Rietveld committed
829
Thu Aug 21 21:27:45 2003  Kristian Rietveld  <kris@gtk.org>
830 831 832 833 834 835 836 837 838 839 840

	Merge from stable.

	Fix option menu scrolling (#119821, Owen Taylor).

	* gtk/gtkmenu.c (gtk_menu_scroll_to): remove logic introduced
	by #80484 and the CLAMP,
	(get_menu_height): new function,
	(gtk_menu_real_move_scroll): sort of moved the CLAMP here to correct
	new_offset to handle page up/down right.

841 842 843 844 845 846 847 848 849 850
Thu Aug 21 15:17:42 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkkeys-x11.c: Change the interpretation
	of consumed_modifiers so that it contains:
	 - Modifiers combinations actually found in
	   state.
	 - Single modifier modifier combinations.
	But not multi-modifier combinations that aren't
	in event->state. Document. (#100439)

851 852 853 854 855 856 857 858 859
Thu Aug 21 20:53:46 2003  Kristian Rietveld  <kris@gtk.org>

	Slightly modified patch from Yann Rouillard to improve selection
	behavior with the mouse. Fixes #120187.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): only
	select/deselect items on the first button press of button 1,
	expand checks for row_activated to include triple clicks.

Kristian Rietveld's avatar
Kristian Rietveld committed
860 861 862 863 864 865 866 867 868 869 870
Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
	approximate digit widths up, to avoid truncation, convert to
	pango pixels when we have the full string width instead of converting
	the approx digit width to pango pixels, take inner border and
	interior focus into account correctly. (Fixes #116368, patch from
	Morten Welinder).

871 872 873 874 875
2003-08-20  Noah Levitt  <nlevitt@columbia.edu>

	* gtk/queryimmodules.c: Don't look at the same directory twice (in
	simple cases). (#120342)

876 877 878
Wed Aug 20 22:04:47 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/gdkwindow.c: Make the layers in the paint stack have their
879
	own pixmap instead of sharing one. (#118317)
880 881 882 883

	* tests/testgtk.c (create_get_image): Fixes to make the window fit
	on an 800x600 screen

Kristian Rietveld's avatar
Kristian Rietveld committed
884 885 886 887 888 889 890
Wed Aug 20 22:03:25 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtkspinbutton.c (start_spinning): change the type of step
	to gdouble, since it gets it's data from a gdouble (Fixes #113547).

891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925
Mon Aug 18 17:19:12 2003  Owen Taylor  <otaylor@redhat.com>

	* modules/input/gtkimcontextxim.[ch]: Substantially
	rework the handling of status windows:
	
	 - Store the current StatusWindow in the 
	   GtkIMContextXIM structure and vice-versa, so we
	   don't have to hunt the window hierarchy on
	   cleanup.
	 - Use the Gtkidget hierarchy instead of/or as well
	   as the GdkWindow hierarchy when finding the toplevel;
	   this helps for things like GtkHandlebox
	 - Watch GtkWidget::hierarchy_changed to catch 
	   changes in the toplevel without changes in the
	   GdkWindow (reparenting)
	 - Never create the GtkWindow for the status window
	   unless we have text to display.
	 - Various cleanups, add lots of comments.

	(#115077, much help from Takuro Ashie and Hidetoshi
	Tajima in tracking this down and figuring out a fix.)

	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_focus_in): 

	* modules/input/gtkimcontextxim.c: Track the current
	screen for each toplevel so that we show the status
	window on the right screen. (#116340, James Su)

	* modules/input/gtkimcontextxim.c: If create a new IC
	when we currently have the focus, call XSetICFocus()
	on it.
	
	* modules/input/gtkimcontextxim.c (get_im): Fix bug
	with multiple open screens.

926 927 928 929 930 931 932 933 934 935
Tue Aug 19 14:37:46 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimmulticontext.[ch] (struct _GtkIMMulticontext): 
	Replace client_window field with 'priv' pointer,
	retaining binary compatibility.

	* gtk/gtkimmulticontext.c (gtk_im_multicontext_set_slave): 
	save use_preedit/cursor_location/focus status and set
	up the new slave appropriately. (#118651, Botond Botyanszki)

936 937 938 939 940 941
Tue Aug 19 13:58:50 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkgeometry-x11.c (gdk_window_scroll): 
	Don't use impl->position_info.clip_rect for toplevels.
	(#107068, reported by Thomas Mirlacher)

942 943 944 945 946 947
Mon Aug 18 11:48:51 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkdrawable-x11.c (convert_to_format): 
	Add a fallback for unaligned source data for
	FORMAT_ARGB_MASK. (#117217)

948 949 950 951 952 953 954 955 956 957
Mon Aug 18 10:51:57 2003  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Rework handling of REBUILD_PNGS,
	so that we also don't try to REBUILD_PNGS when
	cross-compiling and there is no gdk-pixbuf-csource.
	But give an error if gtk/stock-icons/gtkstockpixbufs.h
	is not in the source tree. (Note that REBUILDS_PNG
	was set backwards before, which is why you always
	had to manually recreate gtkstockpixbufs.h!)

958 959 960 961 962
Mon Aug 18 10:19:55 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk+-2.0-uninstalled.pc.in: Add a missing gtk/ in the
	path to libgtk.la. (#120080, Benedikt Spranger)

963 964 965 966 967 968 969 970 971 972 973
Sat Aug 16 10:34:49 2003  Owen Taylor  <otaylor@redhat.com>

	* modules/input/imcedilla.c: Make the list of default
	languages more comprehensive. (Suggestion of
	Fco. Javier F. Serrador)

Sat Aug  9 12:47:11 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c (gdk_arg_context_parse): Fix broken 
	parentheses when skipping args.

974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001
Sat Aug 16 16:22:23 2003  Kristian Rietveld  <kris@gtk.org>

	Fix major bug in row ref handling, so the new combo box
	will actually work right (:. Bug #107748. Patch written
	with help from Tim Janik.

	The basic idea is to update the row refs in a closure,
	before the actual signal is emitted (rather than having
	the model connect signal handlers).

	* gtk/gtktreemodel.c (gtk_tree_model_base_init): change
	g_signal_new calls for row_inserted, row_deleted and
	rows_reordered to use the new marshallers,
	(row_inserted_marshall), (row_deleted_marshall),
	(rows_reordered_marshall): the new marshallers,
	(gtk_tree_row_ref_inserted_callback): renamed to
	gtk_tree_row_ref_inserted since it isn't a callback
	anymore and gets called by the marshaller now,
	(gtk_tree_row_ref_deleted_callback): likewise,
	(gtk_tree_row_ref_reordered_callback): likewise,
	(connect_ref_callbacks), (disconnect_ref_callbacks):
	removed,
	(gtk_tree_row_reference_new_proxy),
	(gtk_tree_row_reference_free),
	(gtk_tree_row_reference_inserted),
	(gtk_tree_row_reference_deleted),
	(gtk_tree_row_reference_reordered): updated.

1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
Fri Aug 15 16:54:39 2003  Owen Taylor  <otaylor@redhat.com>

	Improve Cedilla handling - based on a patch from Gustavo 
	De Nardin, #111334

	* modules/input/imcedilla.c po/POTFILES.in: Input method that 
	produces C_WITH_CEDILLA rather than C_WITH_ACUTE for 
	dead_acute+c combinations. Make this the default for
	fr and pt.

	* gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave): 
	Use LC_CTYPE instead of LC_MESSAGES to pick the default
	input method.

Fri Aug 15 17:00:19 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkimcontextsimple.c: Fix missing compose sequence
	for Multi_key+c+apostrophe.

Kristian Rietveld's avatar
Kristian Rietveld committed
1021 1022 1023 1024 1025 1026 1027
Fri Aug 15 21:57:34 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): stop editing
	on vertical scrolling. (#108035, reported by Tim Janik).

Kristian Rietveld's avatar
Kristian Rietveld committed
1028 1029 1030 1031 1032 1033 1034 1035 1036
Fri Aug 15 20:06:42 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeview.c (gtk_tree_model_sort_row_changed),
	(gtk_tree_model_sort_level_find_insert),
	(gtk_tree_model_sort_insert_value): fix off-by-one error.
	(#109292 continued, patch from Yann Rouillard).

1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
Fri Aug 15 19:43:14 2003  Kristian Rietveld  <kris@gtk.org>

	(Note: This is not exactly the same as the patch which went in
	 gtk-2-2).

	* gtk/gtktreeview.c (gtk_tree_view_class_init),
	(gtk_tree_view_key_press), (gtk_tree_view_search_key_press_event):
	Also support the up, down, left, right, home, end, page up and
	page down keys on the numpad. (#119419, reported by Alex Larsson).

1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060
Fri Aug 15 12:34:04 2003  Owen Taylor  <otaylor@redhat.com>

	Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai):

	* configure.in (GDK_DEP_LIBS_FOR_X): Make sure that
	we link libgtk against X explicitely, since we
	make GTK+ calls for plug/socket.

	* gtk/queryimmodules.c: Use USE_LA_MODULES and 
	G_MODULE_SUFFIX here. 

	* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect
	XShmPutImage with #ifdef USE_SHM.

1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073
Thu Aug 14 18:25:39 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c (gtk_file_selection_populate):
	Don't reposition the cursor when we aren't trying
	to complete. (Fixes problems with selection on
	startup, #108433, reported by Mark Finlay.)

	* gtk/gtkfilesel.c (gtk_file_selection_populate): Remove
	code that tried to position the cursor after the common
	prefix when there was one, it wasn't working, and
	would be hard to fix. Just always put the cursor
	at the end when completing.

1074 1075 1076 1077 1078 1079 1080
Thu Aug 14 17:58:23 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c (get_current_dir_utf8): If getting
	the current directory fails because of encoding
	conversion problems, walk up textually to parent
	directories until we can convert. (#113627)

1081 1082 1083 1084 1085 1086 1087 1088
Wed Aug 13 17:01:49 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenushell.[ch] (gtk_menu_shell_enter_notify):
	Remove usage of menu_shell->ignore leave which was
	to deal with stray events we no longer get because
	we do grabbing differently. Comment it as unused in
	the header. (#115837, Keith Bissett)

1089 1090 1091 1092 1093 1094 1095 1096
Wed Aug 13 16:32:43 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_position, gtk_menu_window_size_request): 
	Fix some places that weren't properly Xinerama-ified.

	* gtk/gtkmenu.c: Fix problem with windows that scroll
	at the top of the screen.

1097 1098 1099 1100 1101 1102 1103
Wed Aug 13 11:34:53 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcombo.c (gtk_combo_init): connect_after() to 
	key-press-event on the entry, so input methods get access to 
	key presses before GtkCombo customization.
	(#115451, Botond Botyanszki)

Anders Carlsson's avatar
Anders Carlsson committed
1104 1105 1106 1107 1108 1109
2003-08-13  Anders Carlsson  <andersca@gnome.org>

	* tests/testtoolbar.c: (set_important_func), (important_toggled),
	(create_items_list):
	Add an important column.
	
1110 1111 1112 1113 1114 1115
Tue Aug 12 15:00:15 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_real_set_focus): Protect
	against reentrancy from ::focus-out handlers. 
	(#118129, Felipe Heidrich)

1116 1117 1118 1119 1120 1121 1122 1123
Tue Aug 12 14:27:42 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkkeyhash.c (_gtk_key_hash_lookup): Remove
	GDK_LOCK_MASK before calling
	gdk_keymap_translate_keyboard_state so bindings 
	and accelerators are independent of the Caps-lock
	key. (#115384, reported by Toni Willberg)

1124 1125 1126 1127 1128
Mon Aug 11 12:07:14 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkevents-x11.c (get_real_window): Add missing
	break statements (#119494, Soeren Sandmann)

1129 1130 1131 1132 1133 1134 1135
Mon Aug 11 11:10:07 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.h: Mark parent public as well; it's
	extensively accessed in existing code, so there is
	no advantage in making people use get_parent().
	(Tweak to #119463 fix)

1136 1137
2003-08-11  Matthias Clasen  <maclas@gmx.de>

1138 1139
	Add support for EWMH "Above" and "Below" window states.  (105100,
	Manuel Clos)
1140
	
1141 1142
	* tests/testgtk.c: Add "Above" and "Below" to the the "Window
	State" demo.
1143

1144 1145
	* gtk/gtkwindow.h: Add gtk_window_set_keep_above and
	gtk_window_set_keep_below.
1146

1147 1148
	* gtk/gtk.def: Add gtk_window_set_keep_above and
	gtk_window_set_keep_below.
1149

1150 1151 1152
	* gtk/gtkwindow.c (gtk_window_set_keep_below):
	(gtk_window_set_keep_above): New functions, call the corresponding
	gdk functions.
1153

1154 1155 1156 1157
	* gdk/x11/gdkwindow-x11.c (gdk_window_set_keep_below): New
	function, sets _NET_WM_STATE_BELOW.
	(gdk_window_set_keep_above): New function, sets
	_NET_WM_STATE_ABOVE.
1158

1159 1160
	* gdk/gdkwindow.h: Add gdk_window_set_keep_above and
	gdk_window_set_keep_below.
1161

1162 1163
	* gdk/gdkevents.h (GdkWindowState): Add GDK_WINDOW_STATE_ABOVE and
	GDK_WINDOW_STATE_BELOW.
1164

1165 1166
	* gdk/gdk.def: Add gdk_window_set_keep_above and
	gdk_window_set_keep_below.
1167

1168 1169 1170
	* acinclude.m4: Copy newer versions of JH_CHECK_XML_CATALOG and
	JH_PATH_XML_CATALOG from gtk-doc to enable configuring without
	xmlcatalog in PATH.  (#119115)
1171

1172 1173
2003-08-10  Matthias Clasen  <maclas@gmx.de>

1174 1175
	* gtk/gtkwidget.h (struct _GtkWidget): Mark some members as
	public.  (#119463)
1176

1177 1178 1179 1180 1181 1182
2003-08-09  Noah Levitt  <nlevitt@columbia.edu>

	* gdk/gdkevents.h:
	* docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
	docs on GdkFilterFunc and GdkFilterReturn.

1183 1184 1185 1186 1187 1188
2003-08-09  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcalendar.c:  Add and hook in gtk_calendar_scroll,
	to let the mouse wheels select the month. Scrolling down
	moves forward in time. (#53134, Abigail Brady) 

1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204
	* gtk/gtkcalendar.c: Complete the RTL flipping support for
	GtkCalendar, make it possible to flip the headings using the
	"magic translated string" technique.  Translators, note the
	comment in gtk_calendar_init() explaining this.  (#102416)

	* gtk/gtkcalendar.c: Get the information about the first day of
	the week from the locale using another instance of the "magic
	translated string" technique.  Ignore the display option
	GTK_CALENDAR_WEEK_START_MONDAY with a warning.  (#87977)

	* gtk/gtkcalendar.c: Add DND support to GtkCalendar. The selected
	date is dragged as text, formatted via strftime %x. Text drops are
	accepted if g_date_set_parse() can make sense of the text. A
	dedicated data format for date DND has not been introduced yet,
	since there didn't seem to be sufficient consensus on such a
	format on xdg-list.  (#117297)
1205
	
1206 1207
2003-08-08  Matthias Clasen  <maclas@gmx.de>

1208 1209
	* gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach):
	Fix a segfault.  (#115284, Jan Kratochvil)
1210

1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223
2003-08-08  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (print_event): Print also the root
	coordinates for events that have such. Print coordinates for enter
	and leave events.

	(gdk_event_translate): Don't use event uninitialixed in the
	return_exposes branch of the WM_PAINT handler.

	* gdk/win32/gdkwindow-win32.c (gdk_window_new,
	_gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer): 
	Must offset top-level window coordinates here, too.

1224 1225
2003-08-08  Matthias Clasen  <maclas@gmx.de>

1226 1227
	* demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip
	when maximized or fullscreen.
1228

1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306
2003-08-07  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkinput-win32.h
	* gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
	_gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
	used.

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
	accordingly, in fact an uninitialised variable was dereferenced.
	

	[Win32] Add support for multiple monitors. 
	
	* gdk/win32/gdkprivate-win32.h
	* gdk/win32/gdkglobals-win32.c: New global variables for
	multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
	_gdk_offset_x and _gdk_offset_y.
	
	* gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
	functions, enumeration functions passed to EnumDisplayMonitors().

	(gdk_display_open): If the EnumDisplayMonitors() and
	GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
	if to find out monitor info.

	Calculate the offset between Win32 coordinates (relative to the
	primary monitor's origin (and thus negative on monitors to the
	left of or above it), and GDK's (visible coordinates should be
	non-negative).
	
	* gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
	gdk_screen_get_monitor_geometry): Use information collected above.

	(gdk_window_move, gdk_window_move_resize_window_get_geometry):
	Subtract _gdk_offset_{x,y} from GDK root window coordinates.

	(gdk_window_get_geometry, gdk_window_get_origin,
	gdk_window_get_frame_extents): For top-level windows, add
	_gdk_offset_{x,y} to GDK root window coordinates

	Still need to handle multiple monitors in
	gdk_window_fullscreen(). Probably should make the window
	fullscreen on the monitor where the cursor is?

	* gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
	root window coordinates in GdkEvents.

	
	[Win32] Fix geometry hint handling. Add support for resize
	increment and base size, and aspect ratio geometry hints. The
	"gridded geometry" test in testgtk now works beautifully.

	* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
	Turns out this function shouldn't actually ever modify the
	window's size, just store the hints. (Old code kept for a while
	inside #if 0.)

	(gdk_window_set_hints): Remove presumably broken code that handles
	the position hints, this function is obsolete anyway.

	* gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
	variables, not used.

	(adjust_drag): New function, used to implement resize increment
	hints.

	(gdk_event_translate): Handle WM_SIZING, implement resize
	increment and base size, and aspect ratio geometry hints here. The
	WM_GETMINMAXINFO handler takes care of the minimum and maximum
	size hints as before. Fix the WM_GETMINMAXINFO handler to take
	into account window decorations. No need to modify the
	ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
	the defaults are fine.
	
	* gdk/win32/gdkprivate-win32.h 
	* gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
	_gdk_win32_get_adjusted_client_rect): New helper functions.

1307 1308
2003-08-07  Matthias Clasen  <maclas@gmx.de>

1309 1310 1311
	* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the
	toplevel->have_* flags before iterating over the _NET_WM_STATE 
	atoms.  (#119217) 
1312

1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
 
 	* gtk/gtkwidget.c (gtk_widget_set_style_internal): 
 	Fix a bug where on theme change, resize/redraw wasn't
 	properly getting queued on toplevel windows. (#116346,
 	Rajkumar Siva)
 
 	* gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows): 
 	Fix bug where wrong coordinates were used for toplevel
 	window.
 
1324 1325 1326 1327 1328
Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
	page_num variable (Archit Baweja)

1329 1330
2003-08-07  Matthias Clasen  <maclas@gmx.de>

1331 1332
	* gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to
	cope with C libraries with crippled locale support.  (#115293)
1333

1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344
2003-08-07  Hans Breuer  <hans@breuer.org>

	* gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
	(only if the new window not known to Gdk) to get proper
	leave notification, and get rid of the wrong placed 
	tooltips, bug #102283
 
	(gdk_event_translate) : small code reordering to not get
	GDK_MOTION_NOTIFY for still mouse and get back tooltips on 
	menus, bug #117367

1345 1346 1347 1348 1349 1350
2003-08-07  Tor Lillqvist  <tml@iki.fi>

	* gdk/gdk.def
	* gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
	missing function, trivially implement.

1351 1352
2003-08-07  Matthias Clasen  <maclas@gmx.de>

1353 1354
	* gtk/gtkctree.c (draw_row): Don't cut descenders when 
	rendering.  (#118646, Charles Kerr) 
1355

Hans Breuer's avatar
Hans Breuer committed
1356 1357
2003-08-06  Hans Breuer  <hans@breuer.org>

1358 1359 1360
	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new) :
	initialize bits to 0 (probably default on NT)

Hans Breuer's avatar
Hans Breuer committed
1361 1362 1363
	* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
	now it works as intended ;-)

1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382
2003-08-04  Hans Breuer  <hans@breuer.org>

	* gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
	set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435

	* gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
	(gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN

	* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
	against all expectations it is basically ony a call with WM_SETICON
	needed (the visual effect is there, though colors or mask are
	still somewhat wrong).
	* gdk/win32/gdkwindow-win32.h : place to store the HICON

	* gdk/win32/gdkdrawabke.win32.c : readded the conditional end
	pixel drawing as it was fixed at 1999-08-23

	gtk/gtk.def : updated

1383 1384 1385 1386 1387
Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmessagedialog.c (gtk_message_dialog_get_property): 
	Add a missing break. (#119156, Callum McKenzie)

1388 1389 1390 1391 1392
Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkmenu.c (gtk_menu_position): New positioning
	algorithm.(#116649)

1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406
Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
	property
	
	* gtk/gtkradiotoolbutton.c
	(gtk_radio_tool_button_new_from_widget): Don't take a stock id

	* gtk/gtkradiotoolbutton.c
	(gtk_radio_tool_button_new_with_stock_from_widget): make this
	function take a stock_id.

	* gtk/toolbar: documentation

1407 1408 1409 1410 1411 1412
Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): 
	Fix problem where use_xshm was getting set wrong if
	MIT_SHM wasn't found. (George Lebel)

1413 1414 1415 1416 1417 1418 1419
2003-08-04  Tor Lillqvist  <tml@iki.fi

	* gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
	actually use the passed-in filter list. The function also needs a
	GdkWindow parameter, as filter functions expect
	GdkEvent::any.window to be valid. (#119034, Hans Breuer)

1420 1421 1422
2003-08-03  Matthias Clasen  <maclas@gmx.de>

	* gdk/x11/gdkscreen-x11.c (gdk_screen_get_n_monitors): 
1423 1424
	(gdk_screen_get_monitor_geometry): Improve wording of the docs, avoid
	the term "virtual screen".  (#119030, Tor Lillquist)
1425

1426 1427 1428 1429 1430 1431 1432 1433
2003-08-02  Matthias Clasen  <maclas@gmx.de>

	* tests/testtext.c (test_init): 
	* tests/testgtk.c (test_init): 
	* tests/testdnd.c (test_init): 
	* demos/pixbuf-init.c (pixbuf_init): 
	* demos/gtk-demo/main.c (main): Use g_setenv().

1434 1435
	* gdk/x11/gdkdisplay-x11.c (_gdk_windowing_set_default_display): Use
	g_unsetenv(). 
1436

1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453
Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Requires glib-2.3.0, pango-1.2.0.

	* configure.in: Require Xft version 2,
	remove code for handling older versions of pango and Xft.
	Many miscellaneous improvements to X checks

	* acinclude.m4: Add GTK_ADD_LIB() macro for adding 
	a library to a variable, avoiding dups.

	* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display): 
	Always load "fixed"

	* gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
	for pangox.

1454 1455
2003-08-02  Matthias Clasen  <maclas@gmx.de>

1456 1457
	* gtk/gtkcolorsel.c (color_sample_drop_handle) 
	(palette_drop_handle): 
1458 1459 1460
	* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept
	drops with the wrong format, since the KDE color chooser incorrectly
	drops application/x-color with format 8.  (#118810)
1461

1462 1463 1464
	* gtk/gtkcolorsel.c (color_sample_drop_handle) (palette_drop_handle): 
	* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  
	Accept drops with the wrong format, since the KDE color chooser 
Matthias Clasen's avatar
Matthias Clasen committed
1465
	incorrectly drops application/x-color with format 8.  (#118810)
1466

1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491
2003-08-02  Tor Lillqvist  <tml@iki.fi>

	Fix gdk/win32 window geometry handling again. The window position
	in a GDK_CONFIGURE event should be that of the client area, not of
	the window decorations. (I was confused by the term "window
	border" in X11. It does *not* mean the window manager
	decorations. There are no X11-style window borders in Win32.)
	Also, this time do take the geometry hints into account
	appropriately when moving windows. Now testgtk's gravity test's
	move buttons work OK. There are stil problems with taking gravity
	into account when showing a hidden window.

	* gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
	instead of separate fields.
	
	* gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
	adjust for decorations.

	* gdk/win32/gdkwindow-win32.c (get_outer_rect,
	adjust_for_gravity_hints): New functions.
	(gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
	above functions, take geometry hints into account.
	(gdk_window_set_geometry_hints): Size hints specicy client area,
	not including decorations.

1492 1493 1494 1495 1496 1497 1498
Fri Aug  1 17:10:22 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c (cmpl_completion_fullname): Always
	return an absolute path (#115590), fix a problem where
	you could crash the file selector with a looong name
	by returning a newly allocated buffer.

1499 1500 1501 1502 1503 1504
Fri Aug  1 16:44:51 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
	bug in rarely or never hit code path (#118071,
	Tor Lillqvist)

1505 1506 1507 1508 1509 1510 1511
Fri Aug  1 16:30:13 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render): 
	If the check for missing depths, try actually creating pixmaps
	of the depths to deal with Xinerama not reporting
	all the depths it should. (#115822)

1512 1513 1514 1515 1516 1517
Fri Aug  1 15:33:59 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtksocket.c: Patch from Denis Mikhalkin to
	forward KeyRelease events as well as KeyPress events.
	(#115597)

1518 1519 1520 1521 1522 1523
Fri Aug  1 15:06:25 2003  Owen Taylor  <otaylor@redhat.com>
 
 	* gdk/gdk.c (gdk_parse_args): g_set_prgname("<unknown>")
 	if argc is 0 as well, instead of leaving it unset.
 	(#116023, Michael Meeks)
 
1524 1525 1526 1527 1528
Thu Jul 31 23:09:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_class_init): make show_arrow
	default to TRUE; ignore the property when api_mode != NEW_API

1529 1530
2003-07-31  Matthias Clasen  <maclas@gmx.de>

1531 1532
	* gtk/gtkwindow.c (gtk_window_set_default_icon): Rename parameter pixbuf
	to icon, to pacify gtk-doc.
1533

1534 1535
	* gtk/gtkwidget.c (gtk_widget_class_init): Fix formatting of drag-motion 
	example. 
1536

1537 1538 1539 1540
Thu Jul 31 15:33:33 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtk*tool*.h: add padding to subclasses of GtkToolItem

1541 1542 1543 1544 1545
Thu Jul 31 15:29:28 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolitem.c (struct _GtkToolItemPrivate): remove unused
	overflow_item field.

1546 1547 1548 1549 1550 1551 1552 1553
Wed Jul 30 21:11:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolitem.h: make _gtk_tool_item_toolbar_reconfigured()
	an internal function

	* gtk/gtktoolitem.h: remove unused declaration of
	_gtk_tool_item_get_drag_window().

1554 1555 1556 1557 1558 1559 1560 1561
Wed Jul 30 17:03:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbutton.[ch]:
	(gtk_tool_button_new): swap icon_widget and label arguments to
	match BonoboUIToolbarButton.

	* gtk/gtktoolbar.h: un-deprecate gtk_toolbar_{set|unset}_style().

1562 1563
2003-07-30  Matthias Clasen  <maclas@gmx.de>

1564 1565
	* gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND
	signal docs. 
1566

1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602
2003-07-29  Tor Lillqvist  <tml@iki.fi>

	Fix for #108007, #112402, #117042: There was confusion in
	gdk/win32 at various places whether a window position refers to
	the decoration position or the client area position. Also whether
	window size includes decorations or not.
	
	The correct interpretation apparently is that in GDK (like in
	X11), a top-level window position means the decoration's position,
	but size means the window's inner size (client area size). In the
	Win32 API, the window size usually includes the decorations,
	though.
	
	* gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
	#ifdef G_ENABLE_DEBUG.
	(handle_configure_event): New function, generates GDK_CONFIGURE
	events from WM_SIZE and WM_MOVE messages. Even if no event is
	generated because of the event mask, still set the private
	position and size fields. Calculate position and size correctly.
	(gdk_event_translate): Call handle_configure_event().

	* gdk/win32/gdkgeometry-win32.c: Cosmetics.

	* gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
	macros. Cosmetic debugging output changes.
	(SafeAdjustWindowRectEx): Remove. If an application wants to
	locate a window outside of the screen, it's not GDK's business to
	prevent it. And anyway, with multiple monitors, negative
	coordinates are perfectly normal.
	(gdk_window_new): Adjust the window size for decorations after
	_gdk_window_init_position() has done its job. (But the big window
	code currently is presumably broken on Win32 anyway.)
	(gdk_window_move): The position passed in is supposed to be that
	of the window border, so don't need to adjust for decorations.
	(gdk_window_resize, gdk_window_move_resize): Simplify somewhat.

1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627
Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_set_style,
	gtk_toolbar_prepend_element, gtk_toolbar_append_element,
	gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
	gtk_toolbar_append_space, gtk_toolbar_insert_item,
	gtk_toolbar_prepend_item, gtk_toolbar_append_item,
	gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
	gtk_toolbar_new, gtk_toolbar_prepend_item):

	Move documentation inline from template files.

	* gtk/gtktoolbar.c (gtk_toolbar_insert_element,
	gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
	gtk_toolbar_append_widget, gtk_toolbar_remove_space,
	gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
	gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
	gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
	gtk_toolbar_get_style, gtk_toolbar_get_orientation)

	Copy documentation from stable that was added after the EggToolbar
	branched.

	* gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()

1628 1629 1630 1631 1632
Mon Jul 28 18:21:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk+/docs/: Commit autogenerated changes, so patches will make
	sense.

1633 1634 1635 1636 1637 1638 1639 1640 1641
2003-07-27  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (build_key_event_state): On Win9x,
	the keyboard state returned by GetKeyboardState() doesn't
	distinguish between the left and right Control and Alt keys. Thus
	we cannot detect AltGr (which is supposed to be left Control +
	right Alt) the same way as on NT-based systems, but have to accept
	either Control + either Alt as AltGr.

1642 1643
2003-07-27  Matthias Clasen  <maclas@gmx.de>

1644 1645
	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
	Fix function name in warning message.  (#118156, Tim-Philipp
Laurent Dhima's avatar
Laurent Dhima committed
1646
	Mller)
1647

1648 1649 1650
	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_property):
	is-expander and is-expanded are boolean properties, not ints.
	(#118359, Josh Parsons)
1651

1652 1653 1654 1655 1656 1657
Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkimagemenuitem.c
	(gtk_image_menu_item_toggle_size_request): don't request
	toggle_space when the image width is 0.

1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824
2003-07-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkprivate-win32.h
	* gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
	and _gdk_keyboard_has_altgr.
	
	* gdk/win32/gdkevents-win32.c: Lots of changes. Most important
	ones detailled here.

	Code that has been ifdeffed out for a long time removed. Remove
	some really old doc comments that were left behind for some public
	functions, the official ones are in the X11 backend anyway. Change
	GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
	multi-line boolean expressions to have the operators at ends of
	lines.

	As mouse capture with SetCapture() indeed seems to work OK, no
	need to have the correspoinding macro USE_SETCAPTURE and ifdefs.

	Ifdef out the gdk-ping-msg stuff. I don't remember why it was
	needed at some time, and things seem to work fine now without
	(knock on wood).

	Ifdef out the search for some Latin locale keyboard layout being
	loaded. Not used currently, but might be needed after all, if we
	decide that we want to be able to generate ASCII control character
	events with a non-Latin keyboard.

	(assign_object): New helper function, handles the g_object_ref()
	and unref() calls when assigning GObject pointers.
		
	(generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
	enter event when the pointer has moved to an ancestor window. Was
	left out by mistake.

	(gdk_window_is_ancestor): Renamed from gdk_window_is_child().

	(gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
	functionality, using ClipCursor().
		
	(find_window_for_mouse_event): Splice part of code into new
	function find_real_window_for_grabbed_mouse_event().

	(fixup_event, append_event, apply_filters): New functions, code
	refactored out from elsewhere.

	(synthesize_enter_or_leave_event, synthesize_leave_event,
	synthesize_enter_event,
	synthesize_leave_events,synthesize_enter_events): Also take a
	GdkCrossingMode parameter, in preparation to generating
	GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.

	(fixup_event, append_event, fill_key_event_string): New functions,
	code refactoring.

	(vk_from_char, build_keypress_event, build_keyrelease_event):
	Removed as part of dropping WM_CHAR handling.

	(build_key_event_state,gdk_event_translate): Call
	GetKeyboardState(), once, for each keyboard message, instead of
	several calls to GetKeyState() here and there.

	(gdk_event_translate): Fix bugs #104516, #104662, #115902. While
	at it, do some major refactoring, and some fixes for potential
	problems noticed while going through the code.

	Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
	WM_KEYUP. Don't need the state variables related to whether to
	wait for WM_CHAR or not, and whether the current key is
	AltGr. Remove lots of complexity. Thus don't need the
	use_ime_composition flag.

	Not handling WM_CHAR means dead key handling will have to be taken
	care of by GTK, but that seems to work fine, so no worry.

	Another side-effect is that Alt+keypad digits don't work any
	longer, but it's better to learn to use GTK's ISO14755 support is
	anyway.

	Be more careful in checking whether AltGr is involved. Only
	attempt to handle it if the keyboard actually has it. And
	explicitly check for *left* Control plus *right* Alt being
	pressed. Still, allow (left) Alt and/or (right) Control with AltGr
	chars.

	Handle keys using similar code as in the X11 backend. As we have
	built a keymap in gdkkeys-win32.c anyway, use it by calling
	gdk_keymap_translate_keyboard_state() to look up the keysym from
	the virtual key code and keyboard state. Build the key event
	string in exactly the same way as the X11 backend.

	If an IME is being used, don't generate GDK events for keys
	between receiving WM_IME_STARTCOMPOSITION and
	WM_IME_ENDCOMPOSITION, as those keys are for the IME.
	
	For WM_IME_COMPOSITION, handle all the Unicode chars returned from
	the IME, not just the first one.

	gdk_event_translate() is still quite complex, could split the
	message handler cases out into separate functions.

	On mouse events, when the mouse is grabbed, use
	find_real_window_for_grabbed_mouse_event() in order to be able to
	generate correct crossing events.
	
	No longer take a pre-allocated GdkEvent as parameter. Instead,
	allocate events as needed and append them to the queue. (This is
	different from how gdk_event_translate() in the X11 backend
	works.) This change made the code much clearer, especially in the
	cases where we have to generate several GDK events for one Windows
	message.  Return FALSE if DefWindowProc() should be called, TRUE
	if not. If DefWindowProc() should not be called, also return the
	value to be returned from the window procedure.

	(Previously, the interaction with gdk_event_translate()'s caller
	was much more complex, when we had to indicate whether the
	already-queued event should be left in the queue or removed, and
	in addition also had to indicate whether to call DefWindowProc()
	or not, and what value to return from the window procedure if
	not.)

	Don't use a separate "private" variable required to be pointing to
	the GdkWindowObject of the "window" variable at all times. Just
	use casts, even if looks a bit uglier.

	Notice destroyed windows as early as possible, and break out of
	the messsage switch.

	Use _gdk_pointer_root as current_window when the pointer is
	outside GDK's top-level windows.
	
	On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
	appropriate, based on ImmIsIME().
	
	(gdk_event_translate, gdk_event_send_client_message_for_display,
	gdk_screen_broadcast_client_message): Implement client messages.
	Use a registered Windows message to pass GDK client messages. Note
	that the amount of user data is restricted to four bytes, as it is
	carried in the LPARAM. (The WPARAM is used for the message type
	"atom".)
	
	(real_window_procedure): Adapt for new gdk_event_translate()
	interface.

	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
	_gdk_input_locale_is_ime initially.

	* gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
	of g_colormap_ref()/unref().

	(gdk_window_new): Made code a bit more like the X11 one, pretend
	to handle screens (although we just have one for now).

	* gdk/x11/gdkevents-x11.c
	(gdk_event_send_client_message_for_display,
	gdk_screen_broadcast_client_message): Document the user data
	limitation on Win32.

	* gdk/win32/gdkevents-win32.c (print_event): More complete enter
	and leave notify detail output.

	* gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
	visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
	for those, so that the GtkIMContextCimple compose tables will
	work. Deduce if the keyboard layout has the AltGr key, and set the
	above flag accordingly.

Matthias Clasen's avatar
Matthias Clasen committed
1825 1826 1827 1828
2003-07-26  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkwidget.c: Document DND signals.

1829 1830
2003-07-24  Matthias Clasen  <maclas@gmx.de>

1831 1832
	* gtk/gtktextview.c (popup_targets_received): Make the "Input Methods"
	insensitive when editing isn't possible.  (#118150)
1833

1834 1835
2003-07-23  Matthias Clasen  <maclas@gmx.de>

1836 1837 1838
	* gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue 
	spinbutton wrap.  (#118097, John Darrington)

1839 1840
	* docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps. 

1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875
2003-07-20  Hans Breuer  <hans@breuer.org>

	* makefile.msc : new file to build it all
	* Makefile.am : ... added to EXTRA_DIST

	* gdk/makefile.msc gtk/stock-icons/makefile.msc 
	  gtk/makefile.msc.in tests/makefile.msc : updated

	* gdk/gdk.def gtk/gtk.def : export a bunch of new 
	functions

	* gtk/gtkbbox.c : use g_return_val_if_fail() if
	there is a value to return

	* gtk/gtkfontsel.c gtk/gtkiconfactory.c :
	static correctness

	* gtk/gtkicontheme.c : ported to use GTimeVal instead of
	struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR

	* gtk/gtkicontheme.c : use HAVE_LC_MESSAGES

	* gtk/gtkimmulticontext.c : use gtkprivate.h

	* gtk/stock-icons/stock_color_picker_25.png
	  gtk/stock-icons/stock_jump_to_rtl_16.png
	  gtk/stock-icons/stock_jump_to_rtl_24.png
	  gtk/stock-icons/stock_redo_rtl_16.png
	  gtk/stock-icons/stock_redo_rtl_24.png
	  gtk/stock-icons/stock_undelete_rtl_16.png
	  gtk/stock-icons/stock_undelete_rtl_24.png
	  gtk/stock-icons/stock_undo_rtl_16.png :
	  gtk/stock-icons/stock_undo_rtl_24.png :
	readded as binary

1876 1877 1878 1879 1880
Sat Jul 19 22:39:24 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolitem.c (gtk_tool_item_size_request): remove
	leftover request of {xy}thickness

1881 1882 1883 1884 1885
Sat Jul 19 16:26:02 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbutton.c (gtk_tool_button_construct_contents): don't
	attempt to add a NULL icon to the box.

1886 1887 1888 1889 1890
Sat Jul 19 12:13:20 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtknotebook.c (gtk_notebook_focus_in|out): only redraw tabs
	on focus in/out.

Matthias Clasen's avatar
Matthias Clasen committed
1891 1892
2003-07-19  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
1893
	* gtk/gtkstock.h (GTK_STOCK_DIALOG_AUTHENTICATION): New stock id. 
1894 1895
	* gtk/gtkiconfactory.c (get_default_icons): Add
	stock_dialog_authentication_48.  (#65765) 
Matthias Clasen's avatar
Matthias Clasen committed
1896 1897 1898
	* gtk/stock-icons/Makefile.am (VARIABLES2, IMAGES): Here too.
	* gtk/stock-icons/stock_dialog_authentication_48.png: New image.

Matthias Clasen's avatar
Matthias Clasen committed
1899
	* gtk/gtkbbox.h: 
1900 1901
	* gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New
	function. (#64562) 
Matthias Clasen's avatar
Matthias Clasen committed
1902

Soeren Sandmann's avatar
Soeren Sandmann committed
1903 1904 1905 1906 1907 1908 1909 1910 1911
Sat Jul 19 00:18:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
	declaration

	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
	(gtk_widget_real_focus_{in|out}_event): queue shallow draws
	instead of full draws.

1912 1913
2003-07-18  Matthias Clasen  <maclas@gmx.de>

1914
	* gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234) 
1915

1916 1917 1918 1919 1920 1921
	* gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding
	signal, move_viewport. 
	(gtk_text_view_move_viewport): New function which implements the
	move_viewport functionality. 
	(gtk_text_view_move_cursor_internal): If the cursor is not visible, move
	the viewport. (#78669) 
1922

1923 1924
	* gtk/gtkenums.h (GtkScrollStep): New enumeration, used for
	move_viewport argument. 
1925

1926 1927
	* gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip
	property.  (#111779) 
1928 1929 1930 1931 1932 1933 1934 1935

	* gtk/gtkwindow.h: 
	* gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)

	* gtk/gtkmessagedialog.h:
	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.  
	(#65501, Sebastian Rittau)

1936 1937 1938 1939 1940
Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktextview.c (changed_handler): use
	gtk_widget_queue_resize_noredraw().

Jody Goldberg's avatar
Jody Goldberg committed
1941 1942 1943 1944
2003-07-16  Jody Goldberg <jody@gnome.org>

	* gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o

Soeren Sandmann's avatar
Soeren Sandmann committed
1945 1946 1947 1948 1949
Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
	API. 

1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967
Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	By popular request give toolbuttons a border.
	
	* gtk/gtktoolitem.c
	(gtk_tool_item_size_allocate):
	(gtk_tool_item_size_request): don't request and allocate a border
	around the child

	* gtk/gtktoolbutton.c 
	(gtk_tool_button_size_allocate):
	(gtk_tool_button_size_request): remove these functions

	* gtk/gtktoolbar.c 
	(gtk_toolbar_size_request):
	(gtk_toolbar_size_allocate): request and allocate a border if we
	have a shadow.

Kristian Rietveld's avatar
Kristian Rietveld committed
1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979
Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	Fixes issues pointed out by Morten Welinder in #115140.

	* gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
	(do_validate_rows): update validated_area with a logic OR instead
	of a bitwise OR,
	(validate_rows_handler): make the if statement match the one in
	validate_rows(), so we don't leak the timeout.

Kristian Rietveld's avatar
Kristian Rietveld committed
1980 1981 1982 1983 1984 1985 1986 1987 1988
Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
	should only grab focus back if the "cell_editable" widget still
	has focus. (Fixes #110104, testcase provided by Marco Pesenti
	Gritti).

Kristian Rietveld's avatar
Kristian Rietveld committed
1989 1990 1991 1992 1993 1994 1995 1996
Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
	Don't set attr.event_mask twice, those things were meant to be
	ORred. (#115139, pointed out by Morten Welinder).

Kristian Rietveld's avatar
Kristian Rietveld committed
1997 1998 1999 2000 2001 2002 2003
Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
	if needed. (Fixes #115869, reported by Michael Natterer).

Matthias Clasen's avatar
Matthias Clasen committed
2004 2005
2003-07-15  Matthias Clasen  <maclas@gmx.de>

2006 2007
	* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
	Fight against gtk-doc stupidity.
Matthias Clasen's avatar
Matthias Clasen committed
2008

2009 2010
2003-07-13  Matthias Clasen  <maclas@gmx.de>

2011 2012
	* gtk/gtkdnd.c (gtk_drag_begin): Rename parameter target_list back to 
	targets, to pacify gtk-doc.
2013

2014 2015 2016 2017 2018 2019
Sun Jul 13 15:57:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbutton.c (gtk_tool_button_finalize): Fix leaks of
	label_text, label_widget and icon_widget. (#117312, 
	Christian Persch)
	
2020 2021 2022 2023 2024 2025 2026 2027 2028 2029
Sun Jul 13 01:37:51 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkmenu.c (gtk_menu_class_init): new properties
	"horizontal-offset" and "vertical-offset" that determines the
	position of the menu when it is a submenu. 

	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): position
	submenus according to new vertical- and horizontal-offset
	properties.

Kristian Rietveld's avatar
Kristian Rietveld committed
2030 2031 2032 2033 2034 2035 2036 2037
Sat Jul 12 16:16:04 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
	case drags to "0", scroll to the top after dropping. (Fixes #94968,
	reported by Alp Toker).

Kristian Rietveld's avatar
Kristian Rietveld committed
2038 2039 2040 2041 2042 2043 2044
Sat Jul 12 16:08:32 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* demos/gtk-demo/editable_cells.c (cell_edited): fixup bad
	code (#115784, Owen Taylor).

Kristian Rietveld's avatar
Kristian Rietveld committed
2045 2046 2047 2048 2049 2050 2051 2052
Sat Jul 12 16:01:03 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_set_property):
	free the old text and extra_attrs *after* we parsed the new
	markup string. (Fixes #114485, reported by Owen Taylor).

Kristian Rietveld's avatar
Kristian Rietveld committed
2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063
Sat Jul 12 15:51:33 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	Fixes #113904, testcase provided by Rene Seindal.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): set
	pressed_button to -1 when a row has been activated,
	(gtk_tree_view_motion_bin_window): only start a drag if there's
	a button being pressed.

Kristian Rietveld's avatar
Kristian Rietveld committed
2064 2065 2066 2067 2068 2069 2070 2071
Sat Jul 12 15:51:18 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): use
	gdk_window_get_pointer instead of gdk_display_get_window_at_pointer
	to avoid a roundtrip (#110272, Owen Taylor).

Kristian Rietveld's avatar
Kristian Rietveld committed
2072 2073 2074 2075 2076 2077 2078 2079
Sat Jul 12 15:28:26 2003  Kristian Rietveld  <kris@gtk.org>

	Merged from stable.

	This patch really really fixes scrolling. Related bugs: #81627,
	testcase provided by Timo Sirainen, #111500, testcase provided by
	manu, #113241, reported by Pedro Gimeno/Michael Natterer.

Kristian Rietveld's avatar
Kristian Rietveld committed
2080
	* gtk/gtktreeview.c (validate_visible_area): scrolling to a dy
Kristian Rietveld's avatar
Kristian Rietveld committed
2081 2082 2083 2084 2085 2086
	which is equal to the lower border of the window means scrolling
	to an invisible row, always update the dy when scrolling to an
	invisible row, corrected area_above/below calculations for
	invisible rows, when walking the tree correct the size
	subtracted for invalidated rows, fix wrong logic in comment.

2087 2088
2003-07-11  Matthias Clasen  <maclas@gmx.de>

2089 2090
	* gtk/gtkicontheme.c (pixbuf_supports_svg): Use g_strfreev() to free
	mime_types.  (#117219, Steve Chaplin)
2091

2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106
Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkevents-x11.c (get_real_window)
	gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
	gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
	gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
	Don't assume that all events start with XEventAny - Xkb events
	don't! (#105745). So, only do that for core events, and for
	non-core events, add a system for registering event types
	that start with XEventAny.

	* gdk/x11/gdkevents-x11.c (gdk_event_translate):
	Check to see if the result of gdk_window_lookup_for_display()
	is actually a window.

2107 2108 2109 2110 2111
Fri Jul 11 20:48:14 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodel.c (gtk_tree_path_free): make the path != NULL
	check a silent assert, so it follows the g_free() behaviour.

2112 2113 2114 2115 2116
2003-07-11  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkstatusbar.c (gtk_statusbar_init): Center statusbar contents 
	vertically.  (#109823, Joe Shaw)

2117 2118 2119 2120 2121
2003-07-11  Morten Welinder  <terra@gnome.org>

	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixbuf): Fix memory
	access error.  (#69436)

2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140
Fri Jul 11 14:32:43 2003  Kristian Rietveld  <kris@gtk.org>

	Landing GtkTreeModelFilter and the completion code. (Test program
	and documentation will follow next week).

	* gtk/gtkcellayout.[ch], gtk/gtkentrycompletion.[ch],
	gtk/gtktreemodelfilter.[ch], gtk/gtkentryprivate.h: new files.

	* gtkentry.[ch]: added gtk_entry_{get,set}_completion, wrote
	necessary code to hook up completion.

	* gtktreeviewcolumn.c: made GtkTreeViewColumn implement the new
	GtkCellLayout interface.

	* gtkmarshalers.list: added BOOLEAN:OBJECT,BOXED.

	* gtk/gtk.h, gtk/Makefile.am, po/POTFILES.in: all updated for the new
	source files.

Kristian Rietveld's avatar
Kristian Rietveld committed
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153
Wed Jul  9 19:48:26 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): don't
	directly return from ->window_at_pointer, but set win_x and win_y
	first if needed. (Fixes #110166, reported by Arno Charlet).

	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): change
	function to accept GdkDrawables and not just GdkWindows. This was
	already done in some other functions a while back, but this patch
	got lost for some reason.

2154 2155
2003-07-09  Matthias Clasen  <maclas@gmx.de>

2156 2157
	* gtk/gtkcontainer.c (gtk_container_focus_sort_tab): Consider the text
	direction when sorting children.  (#116540, Soeren Sandmann)
2158

2159 2160 2161 2162 2163 2164 2165 2166
Tue Jul  8 17:36:21 2003  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkasync.[ch] gdk/gdkdnd-x11.c: 
	Change _gdk_x11_send_xevent_async() to 
	_gdk_x11_send_client_message_async() avoid using Xlib
	internals that are different on Solaris. 
	(#116917, Morten Welinder)

2167 2168
2003-07-08  Matthias Clasen  <maclas@gmx.de>

2169 2170
	* gtk/gtkcontainer.c (gtk_container_remove): Doc addition.
	(#116501, Doug Quale)
2171

2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182
Tue Jul  8 21:35:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoggletoolbutton.h: remove strange #define
	* gtk/gtktoolbutton.h: fix cut'n'paste error
	* gtk/gtktoolbutton.c (gtk_tool_button_init): use instance
	private data
	* gtk/gtktoolitem.c (gtk_tool_item_class_init): use instance
	private data instead of g_new0()
	* gtk/gtktoggletoolbutton.c (gtk_toggle_tool_button_init): use
	instance private data

2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193
Tue Jul  8 21:10:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkbutton.c (gtk_button_realize): remove GDK_EXPOSURE_MASK
	for INPUT_ONLY window
	* gtk/gtkmenuitem.c (gtk_menu_item_realize): same
	* gtk/gtknotebook.c (gtk_notebook_realize): same
	* gtk/gtkexpander.c (gtk_expander_realize): same
	* gtk/gtkrange.c (gtk_range_realize): same

	Fix #116303

2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227
Tue Jul  8 19:57:14 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtkstyle.c (gtk_default_draw_arrow): remove correction on x
	when detail is "menuitem". With the new menu look is isn't needed
	anymore.

	* gtk/gtktoolitem.c (gtk_tool_item_toolbar_reconfigured): queue a
	resize here, so that tool items will get a chance to relayout
	themselves based on the toolbar configuration.

	change DEFAULT_SPACE_SIZE to 4 instead of 5

	* gtk/gtktoolbar.c 
	Get rid of "!GTK_BIN (item)->child means separator". Separators
	are widgets in their own right

	change DEFAULT_SPACE_SIZE to 4 instead of 5
	
	(get_space_size): remove this function
	(toolbar_item_is_homogeneous): new function