ChangeLog.pre-2-6 211 KB
Newer Older
1 2 3 4 5
Mon Nov 17 23:36:02 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaction.c (gtk_action_activate): Only activate if 
	the action is sensitive.  (#127187, Christian Persch)

6 7 8 9
Mon Nov 17 23:23:49 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c: Add mouse wheel support.  (#126517)

10
Mon Nov 17 22:56:09 2003  Kristian Rietveld  <kris@gtk.org>
11

12 13 14 15 16 17 18 19 20
	* gtk/gtkentryprivate.h: add _gtk_entry_completion_resize_popup.

	* gtk/gtkentry.c (gtk_entry_completion_timeout): popup when not
	mapped, else resize_popup.

	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup),
	(_gtk_entry_completion_popup): moved all popup resizing code to
	_gtk_entry_completion_resize_popup, and show the window when there
	are more than zero items in the completion list again (sigh).
21

22 23 24 25 26 27 28 29 30 31 32 33 34
2003-11-17  Mark McLoughlin  <mark@skynet.ie>

	Patch from Jaiserca <jaiserca@inf.upv.es> to add a
	"use_markup" property. See bug #124449.

	* gtk/gtkexpander.c:
	(gtk_expander_class_init),
	(gtk_expander_init), (gtk_expander_set_property),
	(gtk_expander_get_property), (gtk_expander_set_label),
	(gtk_expander_set_use_markup),	(gtk_expander_get_use_markup):
	Add a "use_markup" property and use it when creating the
	child label.

35 36 37 38 39 40 41 42 43 44 45
Mon Nov 17 12:58:32 2003  Kristian Rietveld  <kris@gtk.org>

	Temporary size requisition fix. Will fix it for real tonight.

	* gtk/gtkcombobox.c (gtk_combo_box_remeasure): add a resize flag,
	(gtk_combo_box_size_request): use gtk_combo_box_remeasure to determine
	a good width for the child,
	(gtk_combo_box_cell_layout_add_attribute),
	(gtk_combo_box_set_cell_data_func),
	(gtk_combo_box_cell_layout_clear_attributes): update.

46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
Mon Nov 17 00:11:21 2003  Kristian Rietveld  <kris@gtk.org>

	Fixes #124373, Murray Cumming.

	* gtk/gtkcombobox.[ch] (gtk_combo_box_class_init): the model property
	is no longer construct only,
	(gtk_combo_box_unset_model), (gtk_combo_box_set_model_internal),
	(gtk_combo_box_menu_fill): new functions,
	(gtk_combo_box_menu_setup), (gtk_combo_box_menu_destroy),
	(gtk_combo_box_menu_row_*), (gtk_combo_box_list_setup),
	(gtk_combo_box_list_destroy): updated,
	(gtk_combo_box_new), (gtk_combo_box_new_with_model): new/changed
	functions,
	(gtk_combo_box_set_model): is now public, updated,
	(gtk_combo_box_get_model): small update.

	* gtk/gtkcomboboxentry.[ch] (gtk_combo_box_entry_class_init): the
	text_column property is no longer construct only,
	(gtk_combo_box_entry_set_text_column): now public,
	(gtk_combo_box_entry_new), (gtk_combo_box_entry_new_with_model):
	new/changed functions.

	* tests/testcombo.c: updated.

70 71 72 73 74 75 76 77
Sun Nov 16 22:50:58 2003  Matthias Clasen  <maclas@gmx.de>

	Reinstate fixes for (#124212, Marco Pesenti Gritti):
	
	* gtk/gtkuimanager.c (update_smart_separators): Don't spit 
	warnings for popups.
	(_gtk_menu_is_empty): Return FALSE for non-menus.

78 79 80 81 82 83
Sun Nov 16 21:48:40 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcellview.c (gtk_cell_view_finalize): just call
	gtk_cell_view_cell_layout_clear instead of trying to free the
	structure ourselves here. (#125726, Morten Welinder).

84 85 86 87 88 89
Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkfilechooser.[hc]: 
	* gtk/gtkentrycompletion.h: Fix parameter name mismatches which
	confuse gtk-doc.

Hans Breuer's avatar
Hans Breuer committed
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
2003-11-15  Hans Breuer  <hans@breuer.org>

	* gdk/makefile.msc gdk/gdk.def 
            gtk/gtk.def gtk/makefile.msc.in : updated
	* tests/makefile.msc : added all the new tests

	* gtk/gtkfilefilter.c(finalize) : initialize filter
	from object not from itself

	* gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
	modified as less as posible to have aworking implementation
	on win32. There maybe the desire to merge the unchanged pats into
	a common base class.
	Also implemented a simple glib based bookmark handling, which
	is currently missing in gtkfilesystemunix.[hc] but can be copied
	over there.
	* gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h

	* gdk/win32/gdkwindow-win32.c : implement 
	gdk_window_set_keep_above() and gdk_window_set_keep_below()

	* tests/testmerge.c : don't include unistd.h unconditionally,
	#define STDOUT_FILENO if it isn't defined

	* tests/testfilechooser.c : make it compile on win32

116 117 118 119 120
2003-11-15  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
	maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)

121 122 123 124
Thu Nov 13 12:55:29 GMT 2003  Tony Gale <gale@gtk.org>

	* docs/faq/gtk-faq.sgml: Update the rest of Section 2

125 126 127 128 129 130
Thu Nov 13 01:46:32 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkicontheme.c (gtk_icon_theme_init): Use 
	GTK_DATADIR/{icons,pixmaps} instead of 
	GTK_DATA_PREFIX/{icons,pixmaps}.  (#123365, Marco Pesenti Gritti)

131 132
Wed Nov 12 21:40:10 2003  Matthias Clasen  <maclas@gmx.de>

133
	Changes to improve menu positioning on Xinerama (#108328, #126150):
134
	
135 136 137
	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Use the event 
	window of the menuitem to determine the monitor. This fixes some

138 139 140 141 142 143 144 145 146 147 148 149 150 151
	* gtk/gtkmenu.c (struct _GtkMenuPrivate): Add a menu_num field
	to store the monitor on which the menu is to be positioned.

	* gtk/gtkmenu.[hc] (gtk_menu_position): Store the monitor number
	in the GtkMenuPrivate struct and fetch the monitor geometry after
	calling the position_func, in case it has been changed.

	* gtk/gtkmenu.c (gtk_menu_set_monitor): New function 
	to be used in GtkMenuPositionFunc implementations for setting
	the monitor_num field in GtkMenuPrivate.

	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Call 
	gtk_menu_set_monitor.

152 153 154 155 156
Wed Nov 12 21:00:10 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkinputdialog.c (gtk_input_dialog_init): Clarify the
	label for the empty list. String change.  (#95446, Tomas Ögren)

157 158 159 160 161
Wed Nov 12 20:57:50 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkicontheme.h (enum GtkIconLookupFlags): Correct
	the definition of the values.  (#123361, Marco Pesenti Gritti)

162 163 164 165 166
Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkkeyuni.c: Map KP_Separator to ','.
	(#122941, Egmont Koblinger)

167 168 169 170 171
2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>

	*gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
	opacity entry widget. Change tooltip for opacity widgets. (#126426)

172 173 174 175 176
2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>

	* gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
	affect window menu position when popped from keyboard. (#102660)

177 178 179 180 181 182 183
Wed Nov 12 01:29:32 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_internal_insert_element): When we
	are using the old API, make all items "is_important". That way
	BOTH_HORIZ will continue to show both icon and label in old API
	mode.

184 185 186 187 188
Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
	Remember the new value in all cases.  (#126276, Damon Chaplin)

189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>

	* demos/gtk-demo/main.c (row_activated_cb): Call the do_
	functions with the toplevel as argument.

	* demos/gtk-demo/geninclude.pl.in: Change the signature
	of GDoDemoFunc to take a widget argument

	* demos/gtk-demo/ui_manager.c (do_ui_manager): 
	* demos/gtk-demo/tree_store.c (do_tree_store): 
	* demos/gtk-demo/textview.c (do_textview): 
	* demos/gtk-demo/stock_browser.c (do_stock_browser): 
	* demos/gtk-demo/sizegroup.c (do_sizegroup): 
	* demos/gtk-demo/pixbufs.c (do_pixbufs): 
	* demos/gtk-demo/panes.c (do_panes): 
	* demos/gtk-demo/menus.c (do_menus): 
	* demos/gtk-demo/list_store.c (do_list_store): 
	* demos/gtk-demo/images.c (do_images): 
	* demos/gtk-demo/hypertext.c (do_hypertext): 
	* demos/gtk-demo/editable_cells.c (do_editable_cells): 
	* demos/gtk-demo/drawingarea.c (do_drawingarea): 
	* demos/gtk-demo/dialog.c (do_dialog): 
	* demos/gtk-demo/colorsel.c (do_colorsel): 
	* demos/gtk-demo/changedisplay.c (do_changedisplay): 
	* demos/gtk-demo/button_box.c (do_button_box): 
	* demos/gtk-demo/appwindow.c (do_appwindow): Take a widget
	as argument, and make new windows or dialogs appear on the
	same screen.  (#80388)

218 219 220 221 222 223
Sat Nov  8 21:59:30 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkeventbox.c (gtk_event_box_class_init): Let 
	visible-window default to TRUE, as documented and 
	implemented. (#126270 Damon Chaplin)

Matthias Clasen's avatar
Matthias Clasen committed
224 225 226 227 228 229 230 231
Sat Nov  8 01:50:17 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkicontheme.c: 
	* gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): 
	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): 
	* gtk/gtkfilechooser.c (gtk_file_chooser_[un]select_all): Mark as
	2.4 additions.

232 233 234 235 236 237 238 239 240 241 242
2003-11-07  Federico Mena Quintero  <federico@ximian.com>

	Changing GtkFileChooserEntry to use GtkEntryCompletion.

	* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): Create
	a GtkListStore for the completion list.  Create a
	GtkEntryCompletion and attach it to the chooser entry.
	(gtk_file_chooser_entry_finalize): Unref the completion store.
	(completion_match_func): New callback for the GtkEntryCompletion.
	(completion_idle_callback): Fill the completion store with filenames.

243 244 245 246 247 248 249 250 251
Fri Nov  7 22:55:49 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkwindow.c (gtk_window_set_role): 
	* gtk/gtkwindow.c (gtk_window_set_title): 
	* gtk/gtkwidget.c (gtk_widget_set_name): 
	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_title): 
	* gtk/gtkbutton.c (gtk_button_set_label): Make string setters
	safe for self-assignment.  (#122745, Soeren Sandmann)

252 253 254 255 256
Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
	(#126369, Olexiy Avramchenko)

257 258 259 260 261 262
Thu Nov  6 00:21:41 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcolorbutton.c (gtk_color_button_init): 
	* gtk/gtkfontbutton.c (gtk_font_button_init): Improve the 
	consistency of titles.  (#126193, Damon Chaplin)

263 264 265 266 267 268 269
Wed Nov  5 22:49:36 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Set torn off 
	menus to be transient for the toplevel they were torn off from.
	(gtk_menu_get_toplevel): Auxiliary function to find the
	toplevel of a menu.  (#54775, Jon-Kare Hellan)

270 271 272 273 274
Wed Nov  5 21:07:58 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkpaned.c (gtk_paned_class_init): Add readonly properties
	min-position and max-position.  (#58431, Padraig O'Briain)

275 276 277 278 279 280 281 282
Wed Nov  5 21:02:26 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcolorsel.c (update_color): 
	(make_label_spinbutton): 
	(adjustment_changed): Change the ranges for Saturation and
	Value to be 0-100 instead of 0-255, since these axes of HSV
	are usually expressed in percent.  (#121519, Gregory Merchan)

GMT 2003  Tony Gale's avatar
GMT 2003 Tony Gale committed
283 284 285 286
Wed Nov  5 08:51:48 GMT 2003  Tony Gale <gale@gtk.org>

	* docs/faq/gtk-faq.sgml: More 2.x updates

287 288 289 290 291
Tue Nov  4 15:00:33 GMT 2003  Tony Gale <gale@gtk.org>

	* docs/faq/gtk-faq.sgml: More 2.x updates, fix
	pkg-config command error, update copyright.

292 293 294 295 296 297 298 299 300 301 302 303 304 305
2003-11-03  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (error_dialog): Take in a path as
	well.  Use a helper function.
	(shortcuts_append_home): Display an error box if necessary.
	(shortcuts_append_desktop): Likewise.
	(add_bookmark_button_clicked_cb): Likewise.
	(gtk_file_chooser_default_select_path): Likewise.
	(entry_activate): Likewise.
	(shortcuts_append_paths): New helper function.
	(shortcuts_append_file_system_roots): Use
	shortcuts_append_paths().
	(shortcuts_append_bookmarks): Likewise.

Matthias Clasen's avatar
Matthias Clasen committed
306 307 308 309 310 311
Mon Nov  3 23:12:41 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.c (_gtk_menu_is_empty): Return TRUE if 
	menu is NULL.
	(update_smart_separators): Remove some unneeded ifs.

312 313 314 315 316
Mon Nov  3 22:45:58 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkwindow-decorate.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
	these usable in C++. Forgot this file in my Oct 11 commit.

317 318 319 320 321 322 323 324 325 326
2003-11-03  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
	icon to the "Add bookmark" button.

	* gtk/gtkfilesystemunix.c: Mark missing strings for translation.
	* gtk/gtkfilesystemmodel.c: Likewise.
	* gtk/gtkfilechooser.c: Likewise.
	* gtk/gtkfilechooserdefault.c: Likewise.

327 328 329 330 331 332 333 334
Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdk.c: 
	* gdk/gdkinternals.h: 
	* gdk/x11/gdkscreen-x11.c (init_xinerama_support): Introduce a
	GDK_DEBUG_XINERAMA debug flag, and make it trigger a fake 2x2
	Xinerama mode when no actual Xinerama setup is found. 

335 336 337 338 339 340 341 342 343 344 345 346 347
2003-11-03  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (shortcuts_select_folder): Removed.
	(create_shortcuts_tree): Don't call the above.
	(bookmarks_changed_cb): Likewise.
	(tree_selection_changed): Unselect everything from the shortcuts
	list.  This is the behavior that Mac OS has.
	(toolbar_add_item): Return the item.
	(toolbar_create): Store the up_button in the impl structure.
	(toolbar_check_sensitivity): New function to set the sensitivity
	of the "Up" button in the toolbar.
	(tree_selection_changed): Call toolbar_check_sensitivity().

348 349 350 351 352 353 354 355 356 357 358 359 360 361
2003-11-02  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): Do
	not set a border width for the toplevel container.
	(toolbar_create): New function; create a simple toolbar for the
	file chooser.
	(gtk_file_chooser_default_constructor): Use a spacing of 12 for
	the table, as per the HIG.
	(gtk_file_chooser_default_init): Likewise, for the default
	implementation's vbox.

	* gtk/gtkfilesystem.c (gtk_file_system_get_parent): Added docs to
	note that NULL is a valid return value for the parent path.

362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
Sat Nov  1 14:59:27 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilechooserdefault.c (shortcuts_row_activated): 
	Change on activation, not selection change (temporary
	workaround for #125955, needed for keynav, likely
	the right UI anyways.)

	* gtk/gtkfilechooserdefault.c (shortcuts_select_func): 
	Don't allow the separator node to be selected.

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_constructor):
	Set the focus chain so that the entry gets focused first.
	(Not really right after initial focusing, maybe we
	should just have a gtk_file_chooser_focus_entry() that
	we call from gtk_file_chooser_dialog on creation.)

Sat Nov  1 12:41:04 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_unfullscreen): Fix a
	residual call to gtk_window_get_private().

Sat Nov  1 09:10:13 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.[ch]: Move above_initially, below_initially
	into GtkWindowPrivate structure, fixing ABI breakage
	on Win32. (Hans Breuer). Switch GtkWindowPrivate over
	to instance-private-data.

390 391 392 393 394 395 396
Fri Oct 31 02:43:34 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (get_item_requisition): delete this function
	(toolbar_item_is_homogeneous): cache max_homogeneous_pixels
	instead of re-calculating for each item.
	(gtk_toolbar_size_allocate): Update comments

397 398 399 400 401
Thu Oct 30 22:04:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_forall): Only include
	placeholders when include_internals is TRUE.

402 403 404 405 406 407 408
Thu Oct 30 17:57:53 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (logical_to_physical): Make it work even when
	item 0 is a placeholder. (#125826)
	* tests/testtoolbar.c: add an assertion that 
	gtk_toolbar_get_nth_item (0) != NULL

409 410 411
Thu Oct 30 17:40:26 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (logical_to_physical): Make it work for
412
	logical == 0.(#125826)
413

414 415 416 417 418 419 420
Thu Oct 30 16:20:58 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (logical_to_physical): Make sure we actually
	return the index of a real item.
	(get_nth_item) assert that the returned items is not a
	placeholder.  (#125826, Marco Pesenti Gritti).
	
421 422 423 424 425 426
2003-10-29  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkcellrendererseptext.c
	(gtk_cell_renderer_sep_text_render): Only paint a separator if the
	text is NULL, rather than also doing it if it is an empty string.

427 428 429 430 431 432 433 434 435 436 437 438 439
Wed Oct 29 15:40:26 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmessagedialog.c (gtk_message_dialog_new/
	gtk_message_dialog_new_with_format): Allow NULL
	for message_format, as described in the docs and
	as worked previously. (#125759, Richard Hult)

	* gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
	Use g_markup_vprintf_escaped() to escape argumetns.

	* gtk/gtkmessagedialog.[ch]: Add gtk_message_dialog_set_markup()
	so there is some way to set literal markup.

440 441 442 443 444 445 446
Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>
 
 	* gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
 	the call to gdk_error_trap_pop() to the right place,
 	fixing a problem where we'd pop() too many times 
 	when bailing out. (#123302, Thomas Leonard)
	
447 448 449 450 451
Wed Oct 29 12:50:02 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilechooserutils.c (delegate_set_current_folder): 
	Fix infinite recursion. (#125679, Christian Persch)

452 453 454 455 456
Wed Oct 29 13:29:15 GMT 2003  Tony Gale <gale@gtk.org>

	* docs/faq/gtk-faq.sgml: further 2.x updates:
	mirrors,compiling,g_main_context_iteration

457 458 459 460 461 462 463 464
Wed Oct 29 02:54:35 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.[ch] (gtk_toolbar_set_drop_highlight_item): Add this
	function; remove gtk_toolbar_highlight_drop_location() and
	gtk_toolbar_unhighlight_drop_location().

	Also fix bug where the number of overflowed items were miscounted.

465 466 467 468 469
Tue Oct 28 12:20:16 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_has_toplevel_focus): Remove
	some accidentally committed duplicate code.

470
Tue Oct 28 17:06:17 GMT 2003  Tony Gale <gale@gtk.org>
471

472 473
        * docs/faq/gtk-faq.sgml: Update info on compiling GTK+

474 475 476 477 478 479 480 481 482 483 484
Tue Oct 28 10:34:24 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.[ch] (gtk_window_is_active, 
	gtk_has_toplevel_focus): Add getters corresponding to
	the is_active and has_toplevel_focus properties.
	(#122531)

Tue Oct 28 10:18:55 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_is_active): 

485 486 487 488 489 490 491 492 493 494 495 496
2003-10-28  Mark McLoughlin  <mark@skynet.ie>

	* gtk/gtkexpander.c:
	(gtk_expander_class_init): hook up the destroy handler.
	(gtk_expander_destroy), (gtk_expander_unrealize):
	remove the expand/collapse timeout on destroy instead
	of unrealize to avoid leaving the expander in a inconsistent
	state when unrealizing during animation.
	(gtk_expander_start_animation): remove realized check.
	(gtk_expander_set_expanded): if the widget isn't realized,
	expand immediately.

497 498 499 500 501 502
Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
	do nothing when recipient is NULL, as described in the
	doc comment. (#123107, Thomas Leonard)

503 504 505 506 507 508
Tue Oct 28 09:21:29 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_check_version): Move docs inline,
	rewrite docs, mention memory management for the return
	value. (Partly addresses #125549, Michael Natterer)

509 510 511 512 513 514 515
2003-10-28  Padraig O'Briain  <padraig.obriain@sun.com>

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_remove_filter):
	Changew index to filter_index to fix compilation error.

	* gtk/gtkfilesystem.h: Correct definition of gtk_file_path_get_string.

516 517 518 519 520 521 522 523 524 525 526 527
Mon Oct 27 15:47:58 2003  Manish Singh  <yosh@gimp.org>

	* gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
	we have RandR support, for XRRUpdateConfiguration declaration.

	* gtk/gtkfilefilter.c: #include "gtkprivate.h" for _gtk_fnmatch
	declaration.

	* gtk/gtkuimanager.c (gtk_ui_manager_add_ui_from_file): Make
	length a gsize variable, since that's what g_file_get_contents()
	expects.

528 529 530 531
Mon Oct 27 12:18:49 2003  Owen Taylor  <otaylor@redhat.com>

	* NEWS: Fix attribution for above/below EWMH work.

532 533 534 535 536
Sat Oct 25 23:30:13 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkactiongroup.c (gtk_action_group_class_init): Add "name" 
	as a construct-only property.  (#125475, Murray Cumming)

537 538
Thu Oct 23 21:55:10 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

Soeren Sandmann's avatar
Soeren Sandmann committed
539 540
	Fix bug 116297 and 125472
	
541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
	* gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make
	this function take an index and a GtkToolItem.

	* tests/testtoolbar.c (main): Make "Show Arrow" default to
	true. Make one of the separators !draw and expand.
	Update for new highlight_drop_location() API.

	* gtk/gtktoolitem.[ch]: Remove "pack_end" property

	* gtk/gtktoolbar.h: Formatting fixes.

	* gtk/gtktoolbar.c: Remove "pack_end" child property. Allow
	separator tool items to expand.
	(logical_to_physical, physical_to_logical): Fix off-by-one errors
	(Fix #125472, Marco Pesenti Gritti)

	* gtk/gtkseparatortoolitem.[ch]: Add new "draw" property.
	(gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also
	return FALSE, not TRUE.
	(gtk_separator_too_item_{set|get}_property,
	(gtk_separator_tool_item_{set|get}_draw): new functions

Owen Taylor's avatar
Owen Taylor committed
563 564 565 566 567 568 569 570 571 572 573 574
Fri Oct 24 16:54:04 2003  Owen Taylor  <otaylor@redhat.com>

	* === Released 2.3.0 ===

	* configure.in: Remove a stray comma.

	* README.in: Fix a few notes about Xft 1 and pango-1.0.

	* NEWS: Finish updates for 2.3.0.

	* po/Makefile.in.in: Update to latest GLib version.

575 576 577 578 579 580 581 582
Fri Oct 24 20:31:35 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
	gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch],
	gtk/gtktreemodelfilter.[ch]: Fix licensing (I managed to put it
	under GPL licensing instead of LGPL...). (Fixes #125381, Soeren
	Sandmann).

583 584 585 586
Fri Oct 24 20:22:40 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodelfilter.h: add padding to the class structure.

587 588 589 590 591 592 593 594 595 596 597
2003-10-23  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooser.c (gtk_file_chooser_get_preview_uri): Fixed docs.
	(gtk_file_chooser_remove_filter): Likewise.
	(gtk_file_chooser_select_all): Added docs.
	(gtk_file_chooser_unselect_all): Likewise.

	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_new): Added docs.

	* gtk/gtkfilechooserwidget.c (gtk_file_chooser_widget_new): Added docs.

598 599 600 601 602
Thu Oct 23 23:22:15 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkfilefilter.c: 
	* gtk/gtkfilechooser.c: Add "Since: 2.4" to all API doc comments.

603 604 605 606
Thu Oct 23 22:33:47 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkfilefilter.c (gtk_file_filter_new): Fix doc markup.

Matthias Clasen's avatar
Matthias Clasen committed
607 608 609 610
Thu Oct 23 21:49:05 2003  Matthias Clasen  <maclas@gmx.de>

	* NEWS: Remove a few duplicates, group the menu changes.

611 612 613 614 615
Thu Oct 23 21:12:50 2003  Kristian Rietveld  <kris@gtk.org>

	* NEWS: Updates for 2.3.0; changed header to match the style we used
	for 2.1.0.

616 617 618 619 620
Thu Oct 23 20:47:44 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Actually
	assign the new leader.  (#125168, Mariano Suarez-Alvarez)

Kristian Rietveld's avatar
Kristian Rietveld committed
621 622 623 624 625 626
Thu Oct 23 20:21:16 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcelllayout.c, gtk/gtkcellview.c gtk/gtkcellviewmenuitem.c,
	gtk/gtkcombobox.c, gtk/gtkcomboboxentry.c, gtk/gtkentrycompletion.c,
	gtk/gtktreemodelfilter.c, gtk/gtkcellrenderertoggle.c: Fix includes.

Soeren Sandmann's avatar
Soeren Sandmann committed
627 628 629 630
Thu Oct 23 15:13:56 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* NEWS: Partial update for 2.3.0.

631 632 633 634 635
Thu Oct 23 01:09:04 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilechooserdefault.c: Convert GtkOptionMenu to
	GtkComboBox.

636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656
Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch] 
	gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
	gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
	Basic framework for the new file selector widget.

	* gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch] 
	gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
	Initial implementation of the GtkFileChooser user interface.

	* gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
	for Unix files.

	* configure.in gtk/Makefile.am gtk/xdgmime: Build code
	for freedesktop.org MIME system on Unix.

	* tests/testfilechooser.c: Test program for GtkFileChooser

	* tests/prop-editor.c: Add support for properties on interfaces.

Owen Taylor's avatar
Owen Taylor committed
657 658 659 660 661 662 663 664
Tue Oct 21 16:12:51 2003  Owen Taylor  <otaylor@redhat.com>

	* demos/gtk-demo/menus.c (do_menus): Fix some unused
	variables.

	* gtk/gtkmain.c (_gtk_get_lc_ctype): Fix an unused
	variable warning.

Matthias Clasen's avatar
Matthias Clasen committed
665 666 667 668
Thu Oct 23 00:04:50 2003  Matthias Clasen  <maclas@gmx.de>

	* NEWS: Partial update for 2.3.0.

669 670 671 672 673 674
Tue Oct 21 22:07:12 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
	ctrl_pressed and shift_pressed according to the current event
	state (if there is one). (Fixes #125063, reported by Sebastien Bacher).

675 676 677 678 679 680 681
Mon Oct 20 23:24:27 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkentry.c (gtk_entry_key_press): remove the completion
	timeout when the user pressed on Enter/ESC. Fixes the bug where the
	completion popup popped up after the user pressed on Enter (which is
	just weird). Reported by the Epiphany people (all of them).

682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707
Mon Oct 20 20:27:22 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	Add support for OS X like sliding of toolbar items during drag and
	drop, (#110919, Dave Bordoley)

	Make dnd highlighting the responsibility of the
	application. (Fixes #116298, Owen Taylor)

	* gtk/gtktoolbar.h: Add prototypes for new API.
	
	* gtk/gtktoolbar.c
	(physical_to_logical, logical_to_physical): new functions
	converting between "position including placeholders" and "position
	excluding placeholders".
	(gtk_toolbar_class_init): remove drag_leave and drag_motion
	handlers
	(struct _ToolbarContent): new struct containing information
	related to toolbar items.
	(gtk_toolbar_highlight_drop_location): new public function
	(gtk_toolbar_unhighlight_drop_location): new public function
	
	* tests/testtoolbar.c
	(toolbar_drag_motion, toolbar_drag_leave): new functions
	(main): connect to dnd signals.  Make the "New" item expand to
	make drag and drop more exciting.

708 709 710 711 712
Wed Oct 15 22:39:23 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): it's
	_set_active, not _set_active_item.

713 714 715 716 717 718
Wed Oct 15 22:31:09 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.h: add padding to the class structure.
	* gtk/gtkcomboboxentry.h: ditto.
	* gtk/gtkentrycompletion.h: ditto.

719 720 721 722 723 724 725 726 727 728 729
Wed Oct 15 22:04:59 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.c (gtk_combo_box_get_active),
	(gtk_combo_box_set_active): mention in the docs that -1 is a valid
	value and what it means.

	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): set the active
	item to -1 (default),
	(gtk_combo_box_entry_active_changed): do nothing when the index is
	< 0.

730 731 732 733 734 735 736 737
Tue Oct 14 16:10:21 2003  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): New function
	to set the active row by iter.

	* gtk/gtkcombobox.c (gtk_combo_box_get_active_iter): New function
	to get the active row by iter.

738 739 740 741 742 743 744
2003-10-13  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
	operations on windows if the tree view is not mapped.
	(gtk_tree_view_button_press): Compare equal types of pointers, not
	GtkWidget* vs. GtkTreeView*.

745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760
Mon Oct 13 21:01:43 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_popup): remove
	the reset of first_sel_changed, as after the first popup the treeview
	will always have a row selected and will thus not focus_to_cursor.

	* gtk/gtkentry.c (keyval_is_cursor_move): new function to determine
	whether the keyval should move the completion selection cursor (used
	to avoid ending up with extreme cluttered code), also added
	all KP_ equivalents of the keys here,
	(gtk_entry_completion_key_press): Keynav tweaks based on comments
	from Dave Bordoley and Marco Pesenti Gritti; add the -1 state
	as possible current selection, implement Home/End keys, modified
	the down key to stop cycling. Maybe page up/down should be implemented
	at some later time.

761 762 763 764 765
Mon Oct 13 20:58:07 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk/x11/gdkwindow-x11.c (gdk_window_set_icon): Make it work 
	as documented when pixmap or mask is NULL.  (#124081) 

766 767
Mon Oct 13 20:21:38 2003  Kristian Rietveld  <kris@gtk.org>

Kristian Rietveld's avatar
Kristian Rietveld committed
768
	* gtk/gtkentry.c (gtk_entry_set_text): I overlooked a return when
769 770 771
	I was adding the signal block/unblock code. Oops. (Noticed by
	Marco Pesenti Gritti).

772 773 774 775 776
Mon Oct 13 20:21:55 2003  Kristian Rietveld  <kris@gtk.org>

	* demos/testpixbuf-scale.c: enable GTK_DISABLE_DEPRECATED again,
	(set_interp_type), (main): port over from option menu to GtkComboBox.

777 778 779 780 781
Mon Oct 13 19:41:55 2003  Kristian Rietveld  <kris@gtk.org>

	* tests/testmenus.c: Still uses option menus, so turn off
	GTK_DISABLE_DEPRECATED.

782 783 784 785 786 787 788 789
Sun Oct 12 01:10:29 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkalignment.[hc]: 
	* gtk/gtkcombobox.[hc]: 
	* gtk/gtkcomboboxentry.[hc]: 
	* gtk/gtktreemodelfilter.[hc]: Move GET_PRIVATE macros
	from header to implementation.

790 791 792 793 794 795 796
Sun Oct 12 00:18:02 2003  Matthias Clasen  <maclas@gmx.de>

	* tests/testtreeview.c: 
	* demos/testpixbuf-scale.c: 
	* tests/prop-editor.c: These files still use option menus,
	so turn off GTK_DISABLE_DEPRECATED to fix the build. 

797 798 799 800 801 802 803 804 805 806 807 808
Sat Oct 11 23:14:36 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkactiongroup.h: 
	* gtk/gtkaction.h: 
	* gtk/gtkradioaction.h: 
	* gtk/gtkradiotoolbutton.h: 
	* gtk/gtkseparatortoolitem.h: 
	* gtk/gtktoggleaction.h: 
	* gtk/gtktoolitem.h: 
	* gtk/gtkuimanager.h: Add G_BEGIN_DECLS/G_END_DECLS to make 
	these usable in C++.  (#124351, Murray Cumming)

809 810 811 812 813
Sat Oct 11 19:09:05 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkentry.c (gtk_entry_set_text): Check if completion is
	non-NULL before accessing it. Oops.

814 815 816 817 818 819 820 821
Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
	(gtk_entry_completion_insert_action_text),
	(gtk_entry_completion_insert_action_markup): the gchar* parameters
	should be const (pointed out by both Marco Pesenti Gritti and
	Murray Cumming (#124356).

822 823 824 825 826 827 828
Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
	child list mode, allocate the height allocation->height to the
	button instead of the height requested by the button. (Tiny
	size allocation screwup noticed by Macro Pesenti Gritti).

829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850
Sat Oct 11 15:23:27 2003  Kristian Rietveld  <kris@gtk.org>

	Fixes based on comments from Marco Pesenti Gritti.

	* gtk/gtkentry.c (gtk_entry_set_text): block the completion changed
	signal handler, avoids the completion popup to popup when text is
	set programmatically in most cases (we actually have to handle this
	in the _editable functions as well, but that will break popping up
	when the user actually typed something :),
	(gtk_entry_completion_key_press): when handling enter, bail out
	when nothing has been selected,
	(gtk_entry_completion_changed): don't popdown when the entry content
	changed.

	* gtk/gtkentrycompletion.c (gtk_entry_completion_init),
	(gtk_entry_completion_selected_changed): unselect_all on the
	first selected changed signal. Avoids having a default row selected,
	(_gtk_entry_completion_popup): don't select the first row by default.

	* gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a
	first_sel_changed field.

851 852 853 854 855
Fri Oct 10 23:02:58 2003  Matthias Clasen  <maclas@gmx.de>

	* demos/gtk-demo/menus.c: Replace GtkItemFactory by GtkUIManager 
	in the intro (again).

856 857 858 859 860 861 862 863
Fri Oct 10 22:50:05 2003  Matthias Clasen  <maclas@gmx.de>

	Fixes for (#124212, Marco Pesenti Gritti):
	
	* gtk/gtkuimanager.c (update_smart_separators): Don't spit 
	warnings for popups.
	(_gtk_menu_is_empty): Return FALSE for non-menus.

Kristian Rietveld's avatar
Kristian Rietveld committed
864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885
Fri Oct 10 19:10:12 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombo.h: Deprecate.
	* gtk/gtkoptionmenu.h: Ditto.

	* gtk/gtkcombobox.c (gtk_combo_box_size_request),
	(gtk_combo_box_size_allocate): Rework, things behave better now. Still
	needs some work on requesting enough size when taking the items in
	the list into account.

	* gtk/gtkfilesel.c: put gtkoptionmenu.h include inside "enable
	deprecated" guards.
	* gtk/gtkinputdialog.c: ditto.
	* gtk/gtkitemfactory.c: ditto.
	* gtk/gtkoptionmenu.c: ditto.

	* demos/gtk-demo/menus.c: remove the option menu.
	* demos/gtk-demo/sizegroup.c: replace the option menus with
	GtkComboBox.
	* demos/gtk-demo/textview.c: ditto.
	(A general GtkComboBox demo will be added later on).

886 887 888 889 890 891 892
Wed Oct  8 00:06:17 2003  Matthias Clasen  <maclas@gmx.de>

	* demos/gtk-demo/ui_manager.c (activate_radio_action): New
	callback to propertly report radio actions.

	* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.

893 894 895 896 897 898
Tue Oct  7 23:23:05 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
	version in in the right field of the _XEMBED_INFO property.  
	(#123885, Denis Mikhalkin)

899 900 901 902 903 904 905 906
Mon Oct  6 14:18:47 2003  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkexpander.c (gtk_expander_animation_timeout): only show
	the child if we have one.

	(gtk_expander_button_release): use
	gtk_widget_activate instead.

907 908 909 910 911
Mon Oct  6 21:05:46 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktable.c (gtk_table_class_init): Start the blurb for 
	"right_attach" with a capital.  (#123945, Christian Rose)

912 913 914 915 916
Sun Oct  5 23:59:03 2003  Matthias Clasen  <maclas@gmx.de>

	* tests/testsocket.c (child_read_watch): Remove an
        extraneous unref.  (#122336, Frederic Crozat)

917 918
Sun Oct  5 22:38:22 2003  Matthias Clasen  <maclas@gmx.de>

919 920
	* gtk/gtkeventbox.c (gtk_event_box_class_init): Trim 
	whitespace in "visible-window" blurb.  (#123910, Christian Rose)
921

922 923 924 925 926
Sun Oct  5 00:53:15 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_list_children_in_focus_order):
	focus arrow before pack_end items (#123851, Matthias Clasen)

927 928 929 930 931 932 933 934 935 936 937 938 939
Fri Oct  3 20:50:48 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.c (gtk_combo_box_set_model): only set the model
	on ->priv->cell_view if ->priv->cell_view is non-NULL.

	* gtk/gtkcomboboxentry.c: include gtkintl.h, add text_renderer
	field to GtkComboBoxEntryPrivate,
	(gtk_combo_box_entry_class_init), (gtk_combo_box_entry_init),
	(gtk_combo_box_entry_set_property), (gtk_combo_box_entry_get_property),
	(gtk_combo_box_entry_set_text_column), (gtk_combo_box_entry_new): add
	a construct-only "text_column" property and reorder code to use it
	and support inheriting this widget.

Kristian Rietveld's avatar
Kristian Rietveld committed
940 941 942 943 944 945
Thu Oct  2 23:28:02 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.c: Added API doc comments.

	* gtk/gtkcomboboxentry.c: Ditto.

Matthias Clasen's avatar
Matthias Clasen committed
946 947 948 949
2003-10-02  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktoggleaction.c: Documentation tweaks.

950 951 952 953 954 955 956 957 958 959 960 961 962 963 964
Wed Oct  1 22:43:40 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcellview.[ch]: implement the GtkCellLayout interface, drop
	packing/attribute/cell data functions from the header,
	(gtk_cell_view_set_cell_data): added support for cell data funcs.

	* gtk/gtkcombobox.[ch]: implement the GtkCellLayout interface, drop
	packing/attribute/cell data functions from the header, implemented
	cell data func support.

	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new): updated
	for the move to GtkCellLayout.

	* tests/testcombo.c (create_combo_box_grid_demo), (main): ditto.

Matthias Clasen's avatar
Matthias Clasen committed
965 966
2003-10-01  Matthias Clasen  <maclas@gmx.de>

967 968 969 970 971 972 973
	* gtk/gtkaction.c (gtk_action_class_init): 
	(gtk_action_[gs]et_property): Introduce a separate
	"hide_if_empty" property for empty menu handling.
	(_gtk_action_sync_menu_visible): ...and use it here.

	* tests/testmerge.c (main): ...and here.

974 975 976
	* gtk/gtktoolitem.c (gtk_tool_item_class_init): Fix signal doc 
	comments to pacify gtk-doc.

Matthias Clasen's avatar
Matthias Clasen committed
977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995
	* gtk/gtkmain.c: Doc formatting tweaks.

	* gtk/gtktoolitem.c (gtk_tool_item_set_is_important): Fix a typo.

	* gtk/gtkcheckmenuitem.h (gtk_check_menu_item_set_draw_as_radio): 
	Use the same parameter names as in .c file, to pacify gtk-doc.

	* gtk/gtktoggletoolbutton.[hc]: 
	* gtk/gtktoolbutton.[hc]: 
	* gtk/gtktoolitem.[hc]:
	* gtk/gtktoolbar.[hc]: 
	* gtk/gtkcolorbutton.[hc]: 
	* gtk/gtkfontbutton.[hc]: 
	* gtk/gtkalignment.[hc]: Define GET_PRIVATE macros in the 
	source, not in the header.

	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_[sg]et_draw_as_radio): 
	Document these as 2.4 API additions.

Kristian Rietveld's avatar
Kristian Rietveld committed
996 997 998 999 1000 1001 1002
Tue Sep 30 23:42:56 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkentry.c (gtk_entry_set_completion),
	(gtk_entry_get_completion): Add API doc comments.

	* gtk/gtkentrycompletion.c: Fix #includes and add API doc comments.

1003 1004 1005 1006
Tue Sep 30 23:12:34 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodelfilter.c: Add "Since: 2.4" to all API doc comments.

1007 1008 1009 1010 1011 1012
Tue Sep 30 22:59:58 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeviewcolumn.c: Some API doc comment fixes.

	* gtk/gtkcellayout.c: Fix #include and oooooh API doc comments!

1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030
2003-09-30  Matthias Clasen  <maclas@gmx.de>

	* tests/merge-*.ui: 
	* tests/testmerge.c: Test handling of empty menus.

	* gtk/gtkuimanager.c (_gtk_menu_is_empty): New function to determine
	whether a menu is empty. Used in gtkaction.c.
	(update_smart_separators): Also update the visibility of empty menus.
	(update_node): When creating a new menu proxy, insert an "Empty" menu 
	item which only gets shown if the menu is empty. 

	* gtk/gtkaction.c (gtk_action_class_init): Document the meaning of
	"is_important" for menu proxies.
	(_gtk_action_sync_menu_visible): New function to sync the visibility
	of menu proxies. Used in gtkuimanager.c.
	(gtk_action_sync_visible): New function to sync the visibility of 
	proxies.

1031 1032 1033 1034 1035 1036 1037 1038
Tue Sep 30 21:43:34 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_button_press): set
	popup_in_progress to TRUE,
	(gtk_combo_box_menu_show): and back to FALSE here; the menu now
	won't disappear on the first button release. (Reported by Matthias
	Clasen).

Kristian Rietveld's avatar
Kristian Rietveld committed
1039 1040 1041 1042 1043 1044 1045
Tue Sep 30 21:08:43 2003  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtkcombobox.c (gtk_combo_box_init): actually show the child.

	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_init): ditto. (#123543,
	Marco Pesenti Gritti).

1046 1047 1048 1049 1050 1051 1052 1053 1054 1055
2003-09-30  Murray Cumming  <murrayc@usa.net>
 
 	* gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable*
 	instead of a GdkWindow*, because that what it is given. The 
 	documentation was already correct. This should cause no API/ABI
 	breakage with C compilers.
 	* gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, 
 	gtkcellrenderertogger.c: Updated the declarations of the render vfunc
 	implementation accordingly.

1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069
2003-09-30  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkkeys.c (gdk_keymap_class_init): Document the
	"direction-changed" and "keys-changed" signals.

	* gdk/gdkscreen.c (gdk_screen_class_init): Document the 
	"size-changed" signal.

	* gdk/gdkdisplaymanager.c (gdk_display_manager_class_init): 
	Document the "display-opened" signal.

	* gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
	(gdk_display_class_init): Document the "closed" signal.

1070 1071 1072 1073 1074
Sat Sep 27 16:02:40 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktextview.[ch]: rename property tab_moves_focus to
	accepts_tab. (#122709 again).

1075 1076
2003-09-27  Matthias Clasen  <maclas@gmx.de>

1077 1078 1079 1080 1081
	* gtk/gtkwindow.c (gtk_window_new):
	* gtk/gtkitemfactory.c (gtk_item_factory_new): Document 
	the fact that the newly created object does not come with 
	a floating reference.  (#103068, patch by Frederic Lespez)
	
1082 1083 1084 1085
	* gtk/gtkitemfactory.h: Deprecate GtkItemFactory in favor 
	of GtkUIManager. Just leave GtkTranslateFunc undeprecated, 
	since GtkActionGroup uses it.

1086 1087 1088 1089 1090 1091 1092 1093 1094
	* tests/testtext.c: Turn off GTK_DISABLE_DEPRECATED, since
	this test uses the soon-to-be-deprecated GtkItemFactory.

	* demos/gtk-demo/Makefile.am (demos): Add ui_manager.c,
	remove item_factory.c

	* demos/gtk-demo/ui_manager.c: Duplicate of item_factory.c 
	using GtkUIManager instead of GtkItemFactory.

1095 1096 1097 1098 1099 1100 1101 1102 1103 1104
	* tests/testmerge.c: Demonstrate the use of the 
	connect-proxy signal.

	* gtk/gtkaction.c (connect_proxy): Add connect-proxy and 
	disconnect-proxy signals to do small customizations 
	like displaying tooltips in the statusbar without 
	custom actions.  (#122894, Philip Langdale)

	* gtk/gtkuimanager.c (update_node): Don't leak tooltip.

1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118
Fri Sep 26 23:49:44 2003  Kristian Rietveld  <kris@gtk.org>

	Landing the new ComboBox. Note that only gtkcombobox.h and
	gtkcomboboxentry.h are public.

	* gtk/gtkcellview.[ch], gtk/gtkcellviewmenuitem.[ch],
	gtk/gtkcombobox.[ch], gtk/gtkcomboboxentry.[ch]: new files.

	* gtk/Makefile.am, gtk/gtk.h: adding the new files.

	* tests/testcombo.c: and a new test.

	* tests/Makefile.am: adding the new test.

1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137
2003-09-25  Tor Lillqvist  <tml@iki.fi>

	* demos/gtk-demo/main.c: Don't use hardcoded DEMOCODEDIR on Windows.

2003-09-21  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (handle_wm_paint): New
	function. Code split out from gdk_event_translate(). Needed
	because gdk_event_get_graphics_expose() couldn't do anything
	sensible otherwise. (Not that I think graphics exposes work anyway
	in gdk/win32, but at least now the code could work.)

	(gdk_event_get_graphics_expose): Call handle_wm_paint() instead of
	gdk_event_translate(), which couldn't have worked as it doesn't
	take any pre-allocated GdkEvent parameter any longer.
	
	(gdk_event_translate): Handle WM_MOUSEACTIVATE: Don't let
	GDK_WINDOW_TEMP windows be activated. (#122578, John Ehresman)

Matthias Clasen's avatar
Matthias Clasen committed
1138 1139
2003-09-24  Matthias Clasen  <maclas@gmx.de>

1140 1141 1142
	* demos/gtk-demo/appwindow.c (do_appwindow): Demonstrate tooltips
	on toolitems.

Matthias Clasen's avatar
Matthias Clasen committed
1143 1144 1145 1146 1147 1148
	* gtk/gtkaction.c (connect_proxy): Sync tooltips on toolitems.

	* gtk/gtkuimanager.c (update_node): Don't complain about missing
	actions on popups. Re-set "tooltip" property on toolitems after
	adding them to parent to trigger proxy update.

1149 1150 1151 1152 1153 1154 1155 1156 1157 1158
2003-09-22  Matthias Clasen  <maclas@gmx.de>

	* tests/testmerge.c (main): Initially activate the JUSTIFY_RIGHT
	group member to test the fix for #122904.

	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
	Add the action to the group before activating it, otherwise we
	may end up with multiple active group members.  (#122904, Marco
	Pesenti Gritti)

1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190
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.

1191 1192 1193 1194
Sun Sep 21 23:13:37 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

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

1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
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().

1212 1213 1214 1215 1216
Fri Sep 19 18:15:31 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

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

1217 1218 1219 1220 1221
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)

1222 1223 1224 1225 1226 1227 1228 1229 1230
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
1231 1232
2003-09-18  Matthias Clasen  <maclas@gmx.de>

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

1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248
	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,
1249 1250 1251 1252
	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.
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276
	(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
1277 1278
	* gtk/gtkuimanager.c (update_node): Robustness improvements.

1279 1280 1281 1282 1283 1284 1285
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.

1286 1287 1288 1289 1290
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.

1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301
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).

1302 1303 1304 1305
2003-09-16  Matthias Clasen  <maclas@gmx.de>

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

1306 1307
2003-09-15  Matthias Clasen  <maclas@gmx.de>

1308 1309
	* gtk/gtkuimanager.c: Doc tweaks.

1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327
	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:
	
1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341
	* 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.

1342 1343 1344 1345 1346
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
1347 1348 1349 1350
Sun Sep 14 16:07:49 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

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

1351 1352 1353 1354 1355
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).

1356 1357 1358 1359 1360 1361 1362
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
1363 1364 1365 1366 1367 1368 1369 1370 1371
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).

1372 1373 1374 1375 1376
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
1377 1378
2003-09-11  Matthias Clasen  <maclas@gmx.de>

1379 1380
	* gdk/gdkpango.c: Doc tweaks.

Matthias Clasen's avatar
Matthias Clasen committed
1381 1382 1383 1384 1385 1386 1387 1388
	* 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)

1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414
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.

1415 1416 1417 1418 1419 1420 1421
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.

1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455
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.

1456 1457 1458 1459 1460 1461 1462 1463
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

1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475
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.

1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494
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
1495 1496 1497 1498 1499
2003-09-07  Pablo Saratxaga  <pablo@mandrakesoft.com>

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

1500 1501 1502 1503 1504
2003-09-07  Matthias Clasen  <maclas@gmx.de>

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

1505 1506 1507 1508 1509
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)

1510 1511
Fri Sep  5 14:15:10 2003  Owen Taylor  <otaylor@redhat.com>
 
1512
	* Back out locale-dependent interpretation of
1513 1514 1515 1516 1517 1518
 	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)
 
1519 1520
2003-09-04  Matthias Clasen  <maclas@gmx.de>

1521 1522 1523 1524 1525 1526 1527 1528 1529
	* 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.

1530 1531 1532 1533 1534 1535 1536 1537
	* 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
1538 1539 1540 1541 1542 1543
Thu Sep  4 19:11:23 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from stable.

	* docs/RELEASE-HOWTO: updates.

1544 1545 1546 1547 1548 1549 1550 1551
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
1552 1553
2003-09-04  Matthias Clasen  <maclas@gmx.de>

1554 1555 1556
	* 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.
1557

Matthias Clasen's avatar
Matthias Clasen committed
1558
	* gtk/gtkactiongroup.c:
1559
	* gtk/gtkuimanager.c: Various doc tweaks.	
Matthias Clasen's avatar
Matthias Clasen committed
1560 1561 1562 1563

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

Kristian Rietveld's avatar
Kristian Rietveld committed
1564 1565 1566 1567 1568 1569 1570 1571 1572
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
1573 1574 1575 1576 1577 1578 1579
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).

1580 1581 1582 1583 1584 1585 1586 1587 1588 1589
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.

1590 1591 1592 1593
Wed Sep  3 17:38:01 BST 2003  Tony Gale <gale@gtk.org>

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

1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604
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
1605 1606 1607 1608 1609 1610 1611 1612
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.

1613 1614
2003-09-02  Matthias Clasen  <maclas@gmx.de>

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

1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630
	* 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.

1631 1632 1633 1634 1635 1636
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().

1637 1638 1639 1640 1641 1642 1643 1644 1645
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)

1646 1647 1648 1649 1650
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

1651 1652 1653 1654 1655 1656 1657 1658 1659
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
1660 1661
2003-08-31  Matthias Clasen  <maclas@gmx.de>

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

Matthias Clasen's avatar
Matthias Clasen committed
1664 1665 1666 1667 1668 1669
	* 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
1670 1671
	* gtk/gtkaction.c: 
	* gtk/gtkactiongroup.c: Some doc tweaks.
Matthias Clasen's avatar
Matthias Clasen committed
1672 1673

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

1676 1677
2003-08-30  Matthias Clasen  <maclas@gmx.de>

1678 1679 1680 1681 1682 1683 1684 1685
	* 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().

Matthias Clasen's avatar
Matthias Clasen committed
1686 1687
	* tests/testmerge.c (add_widget): Put toolbars in handleboxes.

1688 1689
	* gtk/gtkuimanager.[hc]: Add a boolean property, "add_tearoffs" with 
	setter and getter. If it is set, add tearoff menu items to regular 
Matthias Clasen's avatar
Matthias Clasen committed
1690
	menus, but not to popups. Add a signal "changed", which gets emitted
Matthias Clasen's avatar
Matthias Clasen committed
1691
	when the merged ui has changed.  (#120649, #120656)
1692 1693 1694 1695

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

1696 1697
2003-08-29  Matthias Clasen  <maclas@gmx.de>

1698 1699 1700
	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
	Actually group the actions together rather than putting each in its 
	own group.
1701

1702 1703
	* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on 
	proxy menu items for radio actions.
1704

1705 1706
	* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.

1707 1708 1709 1710 1711 1712 1713 1714 1715
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

1716 1717
2003-08-29  Matthias Clasen  <maclas@gmx.de>

1718 1719 1720
	* gtk/gtkcheckmenuitem.c (gtk_check_menu_item_class_init): Install 
	"draw_as_radio" as a separate property, not as an alias of 
	"inconsistent".
1721 1722
	(gtk_check_menu_item_get_property): 
	(gtk_check_menu_item_set_property): Also support "draw_as_radio".
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
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
1750 1751 1752 1753
2003-08-29  Laurent Dhima  <laurenti@alblinux.net>

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

1756 1757 1758
	* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
	fix in the docs.

1759 1760 1761 1762 1763 1764 1765 1766 1767
	* 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. 

1768 1769 1770 1771 1772 1773 1774 1775
	* 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
1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792
	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.

1793 1794 1795 1796 1797
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.

1798 1799 1800 1801 1802
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)

1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818
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.

1819 1820 1821 1822 1823 1824
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
1825
	loop (#120325, Frederic Crozat)
1826 1827 1828 1829 1830

	* 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.

1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841
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: 
1842 1843
	* demos/gtk-demo/appwindow.c: Replace all uses of GtkMenuMerge by 
	GtkUIManager.
1844

1845 1846 1847
	* 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.
1848

1849 1850 1851 1852 1853 1854
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.