ChangeLog 335 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2 3 4 5 6 7 8
Tue Feb 24 19:12:07 2004  Owen Taylor  <otaylor@redhat.com>

	* === Released 2.3.4 ===

	* configure.in: Bump version to 2.3.4, fix broken
	gtk_binary_age value by copying the GLib logic
	to automatically set it to the right values.

9 10 11 12 13 14 15 16 17 18 19 20 21 22
Wed Feb 25 00:13:24 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_menu_row_changed): 
	* gtk/gtkcombobox.c (gtk_combo_box_list_row_changed): 
	Don't resize priv->cell_view if it is NULL.  (#127804, 
	Damon Chaplin)
	
Wed Feb 25 00:06:50 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c: Add a comment about the different 
	modi of this widget. Get rid of priv->hbox, and some other
	cleanups. Make sure that gtk_combo_box_unset_model() is 
	always called before setting up a different mode. 

23 24 25 26 27
Tue Feb 24 17:51:49 2004  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkaccellabel.c (gtk_accel_label_refetch): Convert
	underscores in keyval names to spaces. (#131480)

28 29 30 31 32
Tue Feb 24 17:35:59 2004  Owen Taylor  <otaylor@redhat.com>

	* m4macros/gtk-2.0.m4: Add some quotes around ***. (#130073,
	Uwe Zeisberger)

Owen Taylor's avatar
Owen Taylor committed
33 34 35 36 37 38 39 40
Tue Feb 24 14:45:03 2004  Owen Taylor  <otaylor@redhat.com>

	* === Released 2.3.3 ===

	* configure.in: Version 2.3.3, interface age 0.

	* NEWS: Finish updates for 2.3.3.

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
2004-02-24  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (save_widgets_create): Use a plain
	GtkEntry for the filename, not a GtkFileChooserEntry.
	(update_chooser_entry): Use gtk_entry_set_text() rather than
	_gtk_file_chooser_entry_set_file_part().
	(gtk_file_chooser_default_set_current_name): Likewise.
	(gtk_file_chooser_default_set_current_folder): Don't set the base
	folder of the entry, and don't call update_chooser_entry().
	(gtk_file_chooser_default_get_paths): Use the plain entry.
	(save_widgets_create): Store the "Save in Folder" label in the
	impl structure.
	(expander_activate_cb): Set the sensitivity of the label and
	combo.
	(save_widgets_create): Connect to "notify::expanded" rather than
	"activate" on the expander.
	(expander_changed_cb): Renamed from expander_activate_cb().  Flip
	the conditions again...

60 61 62 63 64
Tue Feb 24 14:43:07 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtktreeview.c (gtk_tree_view_bin_expose): only draw the sort
	column as different if there are 3 or more visible columns.

65 66 67 68 69
2004-02-24  Anders Carlsson  <andersca@gnome.org>

	* gtk/gtkfilechooserdefault.c: (shortcuts_insert_separator):
	Fix compilation (#135278, Padraig O'Briain).
	
Anders Carlsson's avatar
Anders Carlsson committed
70 71 72 73 74 75 76 77 78
2004-02-24  Anders Carlsson  <andersca@gnome.org>

	* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
	Translate the desktop label.
	
	(shortcuts_get_index), (shortcuts_add_bookmarks),
	(shortcuts_insert_separator), (create_shortcuts_model):
	Don't show the bookmark separator if there are no bookmarks.
	
79 80 81 82 83 84
Tue Feb 24 01:41:30 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c (location_popup_handler): Make the
	dialog look like the nautilus dialog.
	(expander_activate_cb): get the order correct.

85 86 87 88 89 90 91 92 93 94 95 96 97
2004-02-23  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (list_selection_changed): Call
	bookmarks_check_add_sensitivity().
	(shortcut_exists): New helper function; moved the testing code
	over from bookmarks_check_add_sensitivity().
	(bookmarks_check_add_sensitivity): Check the contents of the
	selection in the file/folder list.  Use shortcut_exists().
	(shortcuts_add_bookmark_from_path): Don't insert the bookmark if
	the path is already in the shortcuts list.
	(add_bookmark_button_clicked_cb): Add the bookmarks from the list
	selection or from the current folder, as appropriate.

98 99 100 101 102
Mon Feb 23 21:09:06 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c (shortcuts_pane_create): Add
	mnemonics.  Sorry translators.

Matthias Clasen's avatar
Matthias Clasen committed
103 104
Tue Feb 24 02:24:58 2004  Matthias Clasen  <maclas@gmx.de>

Matthias Clasen's avatar
Matthias Clasen committed
105 106
	* NEWS: Additions. This should be complete for the main ChangeLog
	now, still need to sift through gdk-pixbuf, docs, and translations.
Matthias Clasen's avatar
Matthias Clasen committed
107

108 109 110 111 112 113
Mon Feb 23 19:57:45 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkcellrendererseptext.c (gtk_cell_renderer_sep_get_size):
	Add a get_size implementation so that we are no longer the same
	height as text.

114 115 116 117 118 119 120 121 122 123 124
2004-02-24  Anders Carlsson  <andersca@gnome.org>

	* gtk/gtkfilechooserdefault.c: (shortcuts_insert_path),
	(shortcuts_remove_rows), (shortcuts_append_bookmarks),
	(create_shortcuts_model), (shortcuts_tree_create),
	(gtk_file_chooser_default_remove_shortcut_folder):
	Improve bookmark list rendering by controlling the visibility
	of the pixbuf cell so that it will be invisible for the separator
	row, also use a list store instead of a tree store for the model
	so we won't get unnecessary space for an expander.
	
125 126 127 128 129 130 131 132
Tue Feb 24 01:08:27 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c: Add a destroy implementation in order to
	set priv->cell_view to NULL before finalize stumbles over the 
	dangling pointer. This big array of pointers into the widget 
	tree in GtkComboBoxPrivate is really fragile and should be
	cleaned up.

133 134 135 136 137 138
Mon Feb 23 17:52:43 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c (main_paned_create): use a size
	group when allocating space for the buttons at the bottom just in
	case.  Also, move the filter to below the file list.

139 140 141 142 143 144 145
Mon Feb 23 16:52:12 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_class_init): Seth was confused by
	keybindings.  They should be Alt, not Ctl.  Also, A-Home should go
	home, not up.

146 147 148 149 150 151 152
Mon Feb 23 15:23:23 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkpathbar.c (gtk_path_bar_set_path): Display the root a bit
	more cleanly.

	* gtk/gtkpathbar.h (struct _GtkPathBarClass): fix the signal.

153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
2004-02-23  Federico Mena Quintero  <federico@ximian.com>

	Rework the user interface of the file chooser, as per 
	Seth Nickell's design.

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_class_init): Add binding signals and bindings:
		"location-popup" - C-l
		"up-folder"      - C-Up
		"home-folder"    - C-Home
	(up_folder_handler): New function; moved the code from up_button_clicked().
	(up_button_clicked_cb): Call up_folder_handler().
	(home_folder_handler): New function.
	(location_popup_handler): New function.
	(struct _GtkFileChooserDefault): Add an hpaned field.
	(gtk_file_chooser_default_set_current_name): Check that we are in
	Save mode.
	(save_widgets_create): New function, create the widgets specific
	to Save mode.
	(main_paned_create): New function, create the hpaned's widgets here.
	(gtk_file_chooser_default_constructor): Create the open and save
	widgets, and show only one set.
	(gtk_file_chooser_default_set_property): Show/hide the save widgets.
	(gtk_file_chooser_default_get_paths): Only pay attention to the
	entry in Save mode.
	(update_chooser_entry): Update the entry only in Save mode.
	(entry_activate): Removed.

181 182 183 184 185 186
Mon Feb 23 11:20:34 2004  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Remove the configure.in check for fontconfig 
	entirely; it's not needed, since PangoXft implies that sufficiently
	new fontconfig is present.

187 188 189 190 191 192
Mon Feb 23 02:26:53 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkpathbar.c (gtk_path_bar_finalize):
	for (i = 0; i < 10; i++)
	  g_print ("I will compile before committing.\n");

193 194 195 196 197 198 199 200 201 202 203 204
Mon Feb 23 02:08:42 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c (file_pane_create): Use the
	GtkPathBar by default now.

	* gtk/gtkpathbar.c (gtk_path_bar_set_path): Correctly set the
	current path from the path.
	(gtk_path_bar_class_init): new signal
	(button_clicked_cb): emit the signal when we're selected.
	(gtk_path_bar_clear_buttons): Fix a crasher when we weren't
	clearing thr first_scrolled_button.

205 206 207 208 209
Mon Feb 23 02:26:15 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_size_allocate): Fix the 
	allocation for the toggle button so that it actually shows up 
	in LTR list mode.
210 211 212 213 214 215

	* gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
	* gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
	* gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
	notification, and avoid excessive relayouting. 

216 217 218 219 220 221 222 223 224 225 226 227
Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>

	Fix bug 134982, reported by Morten Welinder:
	
	* gtk/gtkpathbar.c (gtk_path_bar_destroy): 
	* gtk/gtktooltips.c (gtk_tooltips_destroy): 
	* gtk/gtkinvisible.c (gtk_invisible_destroy): Chain up to the 
	parent's ::destroy handler.
	
	* gdk/gdkdisplay.c (gdk_display_dispose): Chain up to the 
	parent's ::dispose handler.

228 229 230 231 232
Sat Feb 21 19:09:55 2004  Manish Singh  <yosh@gimp.org>

	* gtk/gtksettings.c (gtk_default_substitute): Guard the FC_HINT_STYLE
	stuff with an #ifdef, so we still build with most fontconfig versions.

233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
Sun Feb 22 03:03:29 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaction.c: (gtk_action_finalize):
	* gtk/gtkclipboard.c: (gtk_clipboard_finalize):
	* gtk/gtkentrycompletion.c: (gtk_entry_completion_class_init),
	(gtk_entry_completion_finalize):
	* gtk/gtkfilechooserwidget.c: (gtk_file_chooser_widget_finalize):
	* gtk/gtkfilesystemmodel.c: (gtk_file_system_model_class_init),
	(gtk_file_system_model_finalize):
	* gtk/gtkicontheme.c: (gtk_icon_theme_class_init),
	(gtk_icon_theme_finalize):
	* gtk/gtktextchild.c: (gtk_text_child_anchor_finalize):
	* gtk/gtkuimanager.c: (gtk_ui_manager_class_init),
	(gtk_ui_manager_finalize):
	* modules/input/gtkimcontextxim.c: (gtk_im_context_xim_finalize):
	Add chains to the parent's ::finalize() handler  (#134901, Morten Welinder,
	patch by Jan Arne Petersen)

251 252 253 254 255
Sun Feb 22 02:10:34 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): 
	Don't crash if item is NULL.  (#131542, Dan Damian)

256 257 258 259 260
Sun Feb 22 02:04:03 2004  Matthias Clasen  <maclas@gmx.de>

	* configure.in: Add a check for a new enough fontconfig, since
	we picked up a direct dependency on it with the Xft settings.

261 262 263 264 265 266 267 268 269 270
Sun Feb 22 00:23:40 2004  Matthias Clasen  <maclas@gmx.de>

	Bug 112647 (Bill Haneman, patch by Narayana Pattipati):
	
	* gtk/gtkcheckmenuitem.c: Introduce a new style property 
	indicator_size and use it instead of the hardcoded value.
	
	* gtk/gtkmenu.c (gtk_menu_size_request): Make sure each menu 
	item gets enough vertical space for the label and the indicator.

271 272 273 274 275
Sat Feb 21 20:20:11 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtksettings.c (gtk_settings_class_init): Use P_ instead of
	_ for the new Xft settings.

276 277 278 279 280 281 282 283 284
Sat Feb 21 20:09:53 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	Bug 130790 (Federico Mena Quintero, Owen Taylor)
	
	* gdk/x11/gdkevents-x11.c: Add Xft XSETTINGS

	* gtk/gtksettings.c: Add new GtkSettings corresponding to the Xft
	XSETTINGS
	
Soeren Sandmann's avatar
Soeren Sandmann committed
285 286 287 288 289 290 291 292 293 294
Sat Feb 21 19:18:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	Bug 132502
	
	* gtk/gtkmenu.c (gtk_menu_motion_notify): Make sure we pop down
	if we enter a non-selectable menu item.

	* gtk/gtkmenu.c (gtk_menu_leave_notify): Don't pop a submenu
	when the user has left the item.

295 296 297 298
Sat Feb 21 17:57:35 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/docs: Commit auto-generated changes

299 300 301 302 303 304 305 306 307
Fri Feb 20 18:20:22 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c: conditional compile for GtkPathBar

	* gtk/gtkpathbar.c (gtk_path_bar_size_allocate): Clean up
	allocation code.  Works fully in RTL languages, I think.
	(gtk_path_bar_scroll_up): Scroll up.
	(gtk_path_bar_scroll_down): Scroll down.

308 309 310 311
2004-02-20  Christian Rose  <menthos@menthos.com>

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

312 313
2004-02-20  Michael Meeks  <michael@ximian.com>

314 315 316 317 318 319 320
	* gtk/gtktoolitem.c (gtk_tool_item_property_notify): impl.
	(gtk_tool_item_class_init): hook it up.
	(gtk_tool_item_set_proxy_menu_item): synchronize sensitivity.

	* gtk/gtktoolbutton.c (gtk_tool_button_property_notify):
	chain to parent, fix strcmp bug.

321 322 323
	* tests/testtoolbar.c (main): re-arrange widgets to allow
	more overflowing toolbar goodness.

324 325 326 327 328 329 330 331 332 333
2004-02-20  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkfilechooserdefault.c: (shortcuts_append_desktop):
	Desktop directory is not translated.
	(set_tree_model):
	There might not be volumes for all paths.
	* gtk/gtkfilechooserwidget.c:
	(gtk_file_chooser_widget_constructor):
	Use gtk_file_chooser_set_current_folder to set cwd.

334 335 336 337 338 339 340
Thu Feb 19 19:58:53 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkpathbar.[ch]: New widget to handle the path in the
	fileselector implementation.  Not hooked up to anything yet.

	* gtk/Makefile.am: support the path bar.

341 342 343 344 345 346
Fri Feb 20 00:21:38 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkstyle.c (gtk_default_draw_handle): 
	(gtk_default_draw_box): Make the paned handles gray when the the 
	widget is_focus() but not HAS_FOCUS().  (#122751, Soeren Sandmann)

Matthias Clasen's avatar
Matthias Clasen committed
347 348 349 350 351 352 353 354
Thu Feb 19 23:41:06 2004  Matthias Clasen  <maclas@gmx.de>

	Fixes for #82099:
	
	* gdk/x11/gdkevents-x11.c: Introduce new XSettings "Gtk/ButtonImages"
	and "Gtk/MenuImages" and map them to "gtk-button-images" and 
	"gtk-menu-images".

355 356
	* gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and 
	use it to set the visibility of the embedded image.
Matthias Clasen's avatar
Matthias Clasen committed
357 358 359 360

	* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
	it to set the visibility of an embedded image.

361 362 363 364 365
Thu Feb 19 21:26:10 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkactiongroup.c (gtk_action_group_add_radio_actions_full): 
	Give each radio action its own value.  (#134889, Paolo Borelli)

366 367 368 369 370 371
2004-02-19  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_finalize):
	Chain to the parent's ::finalize() handler.  Fixes #134885; caught
	by Jan Arne Petersen.

372 373 374 375 376 377 378 379 380 381 382
2004-02-19  Mark McLoughlin  <mark@skynet.ie>

	Make the entire expander widget width prelight as suggested
	by Seth in bug #134263.

	* gtk/gtkexpander.c:
	(gtk_expander_paint_prelight): impl.
	(gtk_expander_paint): use it.
	(gtk_expander_redraw_expander): don't only redraw the
	arrow when prelit.

383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404
2004-02-19  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkfilechooser.c: (gtk_file_chooser_class_init):
	* gtk/gtkfilechooserutils.c:
	* gtk/gtkfilechooserutils.h:
	* gtk/gtkfilechooserwidget.c:
	Remove old file-system property.
	Add new file-system-backend string property
	
	* gtk/gtkfilechooserdefault.[ch]:
	Handle the file-system-backend property
	
	* gtk/gtkfilechooserdialog.[ch]:
	(gtk_file_chooser_dialog_new_with_backend):
	Remove old file-system property.
	Add new file-system-backend string property
	Add new function gtk_file_chooser_dialog_new_with_backend
	
	* gtk/gtkfilesystem.c: 
	* gtk/gtkfilesystem.h:
	Add filesystem module support.	

405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
2004-02-18  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (shortcuts_tree_create): Renamed
	from create_shortcuts_tree().
	(shortcuts_pane_create): New function.
	(button_new): Renamed from toolbar_button_new().
	(shortcuts_pane_create): New function, create the whole shortcuts
	pane here.
	(current_folder_create): Renamed from toolbar_create().  Don't
	create the bookmarks buttons here.
	(file_pane_create): New function.
	(gtk_file_chooser_default_constructor): Use the new helper
	functions, and don't use an extra vbox as GtkFileChooserDefault is
	already a vbox.

420 421 422 423 424 425 426 427
Thu Feb 19 01:39:30 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkuimanager.h: 
	* gtk/gtkuimanager.c (gtk_ui_manager_class_init): Add
	default handlers for all signals; for consistency and for the
	benefit of language bindings which still rely on header parsing
	to find the signals.  (#134269, Jeroen Zwartepoorte)
	
428 429 430 431
Thu Feb 19 00:45:02 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): 
	Improve the efficiency here by prepending on the list and reverting
432
	it after the loop.  (#134435, Christian Biere)
433

434 435 436 437 438
Thu Feb 19 00:32:21 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkplug.c (_gtk_plug_remove_from_socket): Avoid errors when
	removing the plug from the socket.  (#128546, Christopher Blizzard)

439 440 441 442 443 444 445 446 447
Thu Feb 19 00:09:35 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkradiomenuitem.h:
	* gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_from_widget): 
	(gtk_radio_menu_item_new_with_label_from_widget): 
	(gtk_radio_menu_item_new_with_mnemonic_from_widget): New
	convenience functions analogous to similar API on GtkRadioButton.
	(#51700, Vitaly Tishkov, patch by Soeren Sandmann)

448 449 450 451 452 453 454 455 456 457 458 459
Wed Feb 18 17:53:27 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/gdkwindow.c (gdk_window_get_bg_gc): Use a scratch GC in the
	case where the background is a solid color.
	(gdk_window_clear_backing_rect): Reset the clip region after use.

	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): Go
	back to using a scratch GC. Pointed out by Owen Taylor
	
	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Only use a
	scratch GC if the passed-in one is NULL

460 461 462 463 464
Wed Feb 18 14:27:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): Reset clip
	region back to NULL on cached GC (rest of #134728)

465 466
Wed Feb 18 13:28:57 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

467
	Fix bug reported by Nam SungHyun (#134728)
468 469 470 471 472 473 474 475
	
	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha):
	Don't use a cached GC here since the function needs to modify the
	foreground color.

	* gdk/gdkwindow.c (gdk_window_end_paint): Reset clip region back
	to NULL on the cached GC.

476 477 478 479 480 481
2004-02-17  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdialog.c
	(gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
	This sucks a lot.

482 483 484 485 486
Wed Feb 18 02:03:47 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
	peculiarities of the ::delete_range signal.  (#132135, Grant Gayed)

487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507
Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	GC caching, bug #125645 (based on patch by Brian Cameron)
	
	* gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
	* gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
	cached GC's here.
	* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
	get a scratch gc.
	* gdk/gdkinternals.h: Declare the function here

	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
	_gdk_drawable_get_scratch_gc() instead of creating a new GC.
	* gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
	* gdk/x11/gdkdrawable-x11.c (draw_with_images): same
	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
	* gdk/gdkwindow.c (gdk_window_end_paint): same
	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same

508 509 510 511 512
Tue Feb 17 23:28:33 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmenu.c (gtk_menu_init): ...and don't forget to initalize
	priv->columns to 1.

513 514 515 516 517 518
Tue Feb 17 23:11:21 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmenu.c (gtk_menu_do_remove): Make sure that we keep
	priv->columns >= 1 even for empty menus, since we divide by it
	somewhere else.  (#133428, Vincent Noel)

519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540
Tue Feb 17 23:02:58 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	Fix for #119722, reported by Olexiy Avramchenko, patch by Owen
	Taylor.

	* gdk/x11/gdkprivate-x11.h (struct _GdkGCX11): Add a depth field

	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_new): Keep track of the GC's
	depth.

	* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_fg_xft_color): First query
	the colormap, if no colormap, special case depth 1, 

	* gdk/x11/gdkgc-x11.c (_gdk_x11_gc_get_fg_picture): Use
	_gdk_gc_x11_get_fg_xft_color() to get the foreground color.

	* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_xft_draw):
	Special-case bitmaps without a colormap.

	* gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf): Use inherited
	draw_pixbuf() implementation in the bitmap case.

541 542 543 544 545 546
2004-02-17  Mark McLoughlin  <mark@skynet.ie>

	* modules/input/Makefile.am: only reference input method
	modules we've actually built. Fixes re-build failure with
	stale hangul module lying aroung. Bug #134518.

547 548 549 550 551
Mon Feb 16 19:13:21 2004  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkdraw.c: Revert last commit, please don't commit patches
	without approval, this isn't the right way to do it.

552 553 554 555 556 557 558
2004-02-16  DindinX  <david@dindinx.org>

	* gdk/gdkdraw.c (gdk_draw_segments): don't try to draw more than 32767
	segments at a time, since XDrawSegments cannot handle more than this.

	fixes bug #122026.
	
559 560 561 562
Mon Feb 16 18:26:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_set_child_property): Call
	gtk_tool_item_set_expand(), not gtk_tool_item_set_homogeneous()
Søren Sandmann Pedersen's avatar
Søren Sandmann Pedersen committed
563
	in the CHILD_PROP_EXPAND branch. (#134543, Damon Chaplin)
564

565 566 567 568 569 570 571 572
Mon Feb 16 00:04:46 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_cell_layout_*): 
	Split declaration and assignment of combo_box.
	
	* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Remove a 
	pointless cast

573 574 575 576 577
Sun Feb 15 22:08:53 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkoptionmenu.c (gtk_option_menu_get_history): Add 
	deprecation note pointing people to GtkComboBox.

Matthias Clasen's avatar
Matthias Clasen committed
578 579 580 581 582 583 584 585
Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreednd.c: 
	* gtk/gtktreeview.c: Document the tree DND API.

	* gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source): 
	Call gtk_drag_source_unset().  
	
586 587 588 589 590 591
Sun Feb 15 00:49:59 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_class_init): 
	Make stock_size an uint property, to allow custom icon 
	sizes. Also clarify the blurb.  (#130047, Erik Grinaker)

592 593 594 595 596
Sat Feb 14 11:05:26 2004  Manish Singh  <yosh@gimp.org>

        * configure.in: Remove unnecessary STRIP_* definitions, and GNU
        make check.

597 598 599 600 601 602
2004-02-13  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_add_bookmark):
	Duh, duh, duh!  Don't bail out if the bookmarks file doesn't exist
	the very first time you try to save one.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617
2004-02-13  Federico Mena Quintero  <federico@ximian.com>

	Fix #129020.

	* gtk/gtkfilechooserdialog.c
	(set_default_size): New function, sets a reasonable default size
	for the window.
	(gtk_file_chooser_dialog_realize): New function, call
	set_default_size().
	(gtk_file_chooser_dialog_style_set): Likewise.
	(gtk_file_chooser_dialog_screen_changed): Likewise.

	* tests/testfilechooser.c (main): Don't set a default size for the
	dialog.

618 619 620 621 622
Sat Feb 14 00:05:18 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreemodelfilter.c (bsearch_elt_with_offset): 
	Use do instead of while.  (#134031, Morten Welinder);

623 624 625 626 627
Sat Feb 14 00:00:52 2004  Matthias Clasen  <maclas@gmx.de>

	* configure.in: Suppress xsltproc and xmlcatalog checks
	if enable_man=no.  (#134162, Julio M. Merino Vidal)

628 629 630 631 632 633
Fri Feb 13 23:54:48 2004  Matthias Clasen  <maclas@gmx.de>

	* configure.in: Remove checks for sgml2html. It was once
	used for building the linuxdoc version of the tutorial.
	Nowadays, we use db2html.  (#134164, Julio M. Merino Vidal)

634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651
Fri Feb 13 08:17:43 2004  Owen Taylor  <otaylor@redhat.com>

	Fix various compilation problems (#134312, David
	Hawthorne)

	* gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use 
	g_return_if_fail(), not g_return_val_if_fail().

	* gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): 
	* gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use 
	g_return_if_reached(), not g_return_val_if_reached().
	
	* gtk/gtkvscale.c (gtk_vscale_expose): Fix the types
	of some parameters.

	* gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove
	extra 'scale' parameter.

652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667
Thu Feb 12 21:58:20 2004  Owen Taylor  <otaylor@redhat.com>

        Various reentrancy fixes for widgets being destroyed
	out of focus-out-event. (#128821, Grant Gayed)

	* gtk/gtkwindow.c (_gtk_window_unset_focus_and_default): 
	Ref window and widget over callbacks.

	* gtk/gtkwidget.c (gtk_widget_hide)
	  gtk/gtkwidget.c (gtk_widget_set_child_visible):
	Ref the widget before calling _gtk_window_unset_focus_and_default(),
	since that can call user callbacks.

	* gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
	Do nothing if the widget isn't realized.

668 669 670 671 672 673 674
Fri Feb 13 01:31:44 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkbutton.c (_gtk_button_paint): Don't draw bevels around
	active, RELIEF_NONE buttons that aren't depressed. This improves
	the appearance of buttons in notebook tabs.  (#109213, reported
	by Benjamin Otte, patch by Rodney Dawes)

675 676 677 678 679
Fri Feb 13 01:06:08 2004  Matthias Clasen  <maclas@gmx.de>

	* demos/gtk-demo/main.c (read_line): Protect getc_unlocked() by 
	HAVE_FLOCKFILE in all cases.  (#134205, Julio M. Merino Vidal)

680 681 682 683 684 685 686 687 688 689 690 691 692
Fri Feb 13 00:54:59 2004  Matthias Clasen  <maclas@gmx.de>

	Fix for #104811, Padraig O'Briain:

	* gtk/gtkscale.h:
	* gtk/gtkscale.c (_gtk_scale_clear_layout): 
	* gtk/gtkscale.c (gtk_scale_get_layout_offsets): 
	* gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the
	text and its position from a GtkScale, to make it more accessible. 
	* gtk/gtkhscale.c (gtk_hscale_get_layout_offsets):
	* gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the 
	new GtkScale vfunc.

693 694 695 696 697
Thu Feb 12 17:59:52 2004  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkicontheme.c (gtk_icon_theme_get_search_path): 
	Remove an extraneous + 1 (#134015, Torsten Schoenfeld)

698 699 700 701 702 703 704 705 706 707 708 709 710
Thu Feb 12 23:55:08 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktooltips.h:
	* gtk/gtktooltips.c (gtk_tooltips_get_info_from_tip_window): New 
	function to improve the accessibility of tooltips.  (#114851, 
	Padraig O'Briain)

Thu Feb 12 23:16:04 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_popup): 
	* gtk/gtkcombobox.c (gtk_combo_box_popdown): Make these public and
	add docs.  (#132847)

711 712 713 714 715 716 717 718 719 720 721
Thu Feb 12 11:05:16 2004  Manish Singh  <yosh@gimp.org>

	* gdk/x11/gdkproperty-x11.c (gdk_property_get): Assign xtype using
	gdk_x11_atom_to_xatom_for_display () when type != GDK_NONE.

	* gtk/gtkselection.c (_gtk_selection_request): Use GDK_NONE in
	gdk_property_get call instead of 0.

	* docs/reference/gdk/tmpl/properties.sgml: Document the above
	as GDK_NONE instead of simply 0.

722 723 724 725 726
Thu Feb 12 15:46:26 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Fix up item_area
	correctly in RTL mode. (#133984, patch from Semion Chichelnitsky).

Matthias Clasen's avatar
Matthias Clasen committed
727 728 729 730 731
Thu Feb 12 02:22:02 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_set_modify_func): 
	Correct the docs.

732 733 734 735 736 737
Thu Feb 12 01:17:01 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call
	gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work
	for automatic DND.  (#133485, Tommi Komulainen)

Matthias Clasen's avatar
Matthias Clasen committed
738 739 740 741 742
Thu Feb 12 00:37:00 2004  Matthias Clasen  <maclas@gmx.de>

	* gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading
	debug output.

743 744 745 746 747 748 749
2004-02-11  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkmessagedialog.c (gtk_message_dialog_map): New ::map()
	handler.  If no widget has the focus, try to give it to the
	default widget.  If there is no default widget, give it to the
	first button.  Fixes the cause for which #59707 was reopened.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
750 751 752 753 754 755 756
2004-02-11  Federico Mena Quintero  <federico@ximian.com>

	Fixes #134051.

	* gtk/gtkicontheme.c (struct _GtkIconInfo): Remove the ref_count field.
	(icon_info_new): Don't initialize the ref_count field.

757 758 759 760 761 762
2004-02-11  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkicontheme.c (gtk_icon_theme_prepend_search_path): Shift
	the array correctly.  Fixes #134055, patch by Tosten Schoenfeld
	<kaffeetisch@gmx.de>.

763 764 765 766 767 768
Wed Feb 11 02:23:39 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcontainer.c (gtk_container_real_set_focus_child): Handle
	focus [hv]adjustment correctly when the focus is located deeper
	down in the hierarchy.  (#133489)

769 770 771 772 773 774 775 776 777 778 779 780
Wed Feb 11 02:06:38 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Remove 
	arbitrary low upper limits on the xpad, ypad, width and height
	properties.  (#129696, John Ellis)

Wed Feb 11 01:24:20 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
	Ugh. Don't try to free ints, even if they're stored in pointers.
	(#133997, Morten Welinder)

781 782 783 784 785 786
2004-02-10  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
	Free the filters.  Fixes #133547, patch by Morten Welinder
	<mortenw@gnome.org>.

787 788 789 790 791 792 793 794 795 796 797 798 799 800
Tue Feb 10 12:02:14 2004  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/xsettings-client.c (read_settings): Avoid
	triggering an X error when the client->manager_window
	is None...makes logs look cleaner.

	* gdk/x11/gdkproperty-x11.c (gdk_property_get): Handle
	GDK_NONE to mean AnyPropertyType as documented. (Reported 
	by Yu Shao)

	* gdk/x11/gdkevents-x11.c (fetch_net_wm_check_window,
	gdk_x11_screen_get_window_manager_name): Fix error trap
	we've been leaking since 2002... (#129538)

801 802 803 804 805 806 807
2004-02-10  Federico Mena Quintero  <federico@ximian.com>

	Fixes the entry-related part of #133852.

	* gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
	the file part of the entry if the selected item is a folder.

808 809 810 811 812 813 814
2004-02-10  Federico Mena Quintero  <federico@ximian.com>

	Fixes #133995, patch by Morten Welinder <mortenw@gnome.org>.

	* tests/prop-editor.c (create_prop_editor): Free the title.
	(object_changed): Free the children list.

Matthias Clasen's avatar
Matthias Clasen committed
815 816 817 818 819 820
Tue Feb 10 01:58:55 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): 
	* gtk/gtkcontainer.c (gtk_container_set_focus_vadjustment): Document 
	these functions.

821 822 823 824 825 826 827
2004-02-09  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (set_list_model): Request
	GTK_FILE_INFO_ALL from the file system model, so that arbitrary
	filtering will work.  Perhaps we should have a way of aggregating
	info types to the model as filters get installed.

828 829 830 831 832
Mon Feb  9 22:22:19 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
	Ugh. Don't try to free ints, even if they're stored in pointers.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
833 834 835 836 837 838 839 840 841 842 843 844
2004-02-09  Federico Mena Quintero  <federico@ximian.com>

	Fix #132256.

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_get_paths): Read the contents of the
	filename entry in both OPEN and SAVE mode.  In multiple-selection
	mode, add this to the selection from the file/folder list.
	(struct get_paths_closure): Add a path_from_entry field.
	(get_paths_foreach): Only add the iterated path if it is not the
	same as the path from the entry.

845 846 847 848 849
2004-02-09  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): If
	the folder is already open, add the requested info types to it.

850 851 852 853 854
Sun Feb  8 01:28:02 2004  Manish Singh  <yosh@gimp.org>

	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Add appropriate
	type casts for the gtk_window_set_screen() call.

855 856 857 858 859 860
Sun Feb  8 01:44:06 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Make popups 
	come up on the same screen as the combo box.  (#133544, 
	Morten Welinder)

861 862 863 864 865
Fri Feb  6 23:40:24 2004  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtkfilechooserdefault.c (create_file_list): clean up the
	packing of the file selector.

866 867 868 869 870 871
Sat Feb  7 01:21:09 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreemodel.c (gtk_tree_model_base_init): Don't use function 
	calls in array initializers, as some compilers seem to hate this.
	(#133216, Jonas Jonsson)

872 873 874 875 876 877 878 879 880
Sat Feb  7 00:06:44 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkaccelmap.[hc]: Add change notification for GtkAccelMap,
	by on-demand instantiating a singleton object with a "changed" 
	signal. 

	* gtk/gtkmarshalers.list (VOID:STRING,UINT,FLAGS): Add marshaller
	for GtkAccelMap::changed.

881
Fri Feb  6 23:08:29 2004  Matthias Clasen  <maclas@gmx.de>
Matthias Clasen's avatar
Matthias Clasen committed
882

883
	* gtk/gtktextbtree.c (_gtk_text_btree_check): 
Matthias Clasen's avatar
Matthias Clasen committed
884 885 886 887
	* gtk/gtkcombobox.c (gtk_combo_box_cell_layout_clear_attributes): 
	* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): 
	Actually free the lists. Pointed out by Morten Welinder.
	
888 889 890 891 892 893
Fri Feb  6 22:38:54 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombo.c (gtk_combo_entry_key_press): Handle character 
	positions in UTF-8 strings correctly.  (#133315, Theppitak 
	Karoonboonyanan)

894 895 896 897 898
2004-02-06  Morten Welinder  <terra@gnome.org>

	* gtk/gtktoolbar.c (show_menu): Cleanup using
	gtk_menu_attach_to_widget.  Also fixes leak, see #133411.

899 900 901 902 903
2004-02-06  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilechooserdefault.c (shortcuts_add_volumes): Free the
	list.  Fixes #133546.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
2004-02-06  Federico Mena Quintero  <federico@ximian.com>

	Fix #132327.

	* gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add a
	folder_hash field to keep a list of live folder objects.
	(gtk_file_system_unix_init): Create the folder_hash.
	(gtk_file_system_unix_finalize): Destroy the folder_hash.
	(gtk_file_system_unix_get_folder): Ref and return an existing
	folder if we have it around, otherwise return a new folder object.
	(struct _GtkFileFolderUnix): Add a field for the parent file system.
	(gtk_file_folder_unix_finalize): Remove the folder from the file
	system's hash table.
	(gtk_file_system_unix_create_folder):  Emit "files-added" on the
	newly-created folder's parent.  Fixes #132327.

920 921 922 923 924 925 926
Fri Feb  6 00:51:57 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkstock.c (builtin_items): Change the labels of the 
	ZOOM_100 and ZOOM_FIT stock items to "_Normal Size" and
	"Best _Fit", to be HIG compliant.  (#124080, Mariano 
	Suárez-Alvarez)

927 928 929 930 931
Fri Feb  6 00:45:16 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_finalize): Add a finalize 
	function to plug a few memory leaks.  (#133544, Morten Welinder)

932 933 934 935 936 937 938 939
Fri Feb  6 00:15:38 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcomboboxentry.c (gtk_combo_box_entry_mnemonic_activate): 
	Support mnemonic_activate here as well.
	
	* gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Focus
	the button, not the tree_view.

940 941 942 943 944 945
Thu Feb  5 23:48:19 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_mnemonic_activate): Add this
	function, to make mnemonic_activate work for combo boxes.
	(#133443, Paolo Borelli)

946 947 948 949 950
Thu Feb  5 22:05:52 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkfilesystemunix.c (bookmark_list_read): Initialize result
	to FALSE.  (#133539, Morten Welinder)

951 952 953 954 955
Thu Feb  5 21:36:43 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombobox.c (gtk_combo_box_set_active_iter): Fix the logic
	of the depth one check.  (#133488, Christian Persch)

956 957 958 959 960 961
Thu Feb  5 01:50:19 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktearoffmenuitem.c (gtk_tearoff_menu_item_paint): Fix
	the drawing of tearoff menu items which don't come first in their
	menu.  (#33311)

962 963 964 965 966
Thu Feb  5 00:59:08 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombo.c (gtk_combo_entry_key_press): Use 
	g_completion_complete_utf8(). (#133313, Theppitak Karoonboonyanan)

Federico Mena Quintero's avatar
Federico Mena Quintero committed
967 968 969 970 971 972 973 974 975 976 977 978 979
2004-02-04  Federico Mena Quintero  <federico@ximian.com>

	Fix #59707.

	* gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
	the focus chain.
	(gtk_label_button_press): Fix prototype.
	(gtk_label_button_release): Likewise.
	(gtk_label_motion): Likewise.

	* tests/testgtk.c (create_message_dialog): For the dialog with
	only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.

980 981 982 983 984
2004-02-04  Morten Welinder  <terra@gnome.org>

	* gtk/gtktoolbar.c (show_menu): Show on the right screen.  (Fixes
	bug 133411, apart from the leak.)

985 986 987 988 989
Tue Feb  3 13:39:27 2004  Manish Singh  <yosh@gimp.org>

	* gtk/gtkadjustment.c (gtk_adjustment_new): pass value in last
	in g_object_new, since it depends on lower and upper being set.

990 991 992 993 994
2004-02-03  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkmessagedialog.c (gtk_message_dialog_init): Make the
	window not resizable.  Fixes #114032.

995 996 997 998 999
2004-02-03  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add
	documentation for the use_separator style property.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017
2004-02-03  Federico Mena Quintero  <federico@ximian.com>

	Fix #68938.

	* gtk/gtkdialog.c (GtkDialogPrivate): New private structure for
	GtkDialog; right now it only contains an ignore_separator field.
	(gtk_dialog_class_init): Register the private structure.
	(gtk_dialog_init): Initialize the priv->ignore_separator field.
	(_gtk_dialog_set_ignore_separator): New private function.
	(gtk_dialog_set_has_separator): Ignore the setting if appropriate.

	* gtk/gtkmessagedialog.c (gtk_message_dialog_class_init): Add a
	use_separator style property.
	(gtk_message_dialog_style_set): Change the dialog's separator
	based on the style property.
	(gtk_message_dialog_init): Set the dialog box to ignore the
	separator setting.

1018
Tue Feb  3 02:35:09 2004  Matthias Clasen  <maclas@gmx.de>
1019

1020 1021
	* gtk/Makefile.am: Build filesystemwin32.c if OS_WIN32 and
	also dist gtkfilesystemwin32.[hc].
1022

1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033
Tue Feb  3 02:04:44 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtklabel.c (gtk_label_ensure_layout): Right-justify labels
	in rtl mode.  (#129071, chinen@jp.ibm.com)

Tue Feb  3 02:01:25 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): Exchange the
	meaning GTK_MENU_DIR_PARENT/CHILD and GTK_MENU_DIR_PREV/NEXT in rtl
	mode.  (#107528)

1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052
Tue Feb  3 01:38:06 2004  Matthias Clasen  <maclas@gmx.de>

	Clip narrow columns in rtl-oriented tree views (#128089,  
	chinen@jp.ibm.com):
	
	* gtk/gtkstyle.c (gtk_default_draw_option): 
	* gtk/gtkstyle.c (gtk_default_draw_check): Clip to the 
	given area.

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): 
	Use the right clip area when calling gtk_cell_renderer_render().
	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): 
	Use the right clip area when calling gtk_paint_focus().
	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): 
	Use the right clip area when calling gtk_paint_toggle() or
	gtk_paint_check().
	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): 
	Clip to the expose_area when drawing the background rectangle.
	
1053 1054 1055 1056 1057 1058 1059 1060
Tue Feb  3 00:14:36 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/x11/gdkgeometry-x11.c (queue_item_free, gdk_window_queue):
	Use a weak reference instead of ref()/unref(). (#60857, reported
	by Joshua N Pritikin)

	* gdk/gdkimage.c (scratch_image_info_for_depth): Formatting fix.

1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071
Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add 
	init_hadjust_value and prev_width.
	* gtk/gtktreeview.c (gtk_tree_view_init): Initialize 
	them here.
	* gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
	here to properly handle the initial position of rtl-oriented
	tree views.  (#127581, chinen@jp.ibm.com)

1072 1073 1074 1075 1076 1077 1078 1079
2004-01-20  Federico Mena Quintero  <federico@ximian.com>

	Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
	we handle an event in the colums, and FALSE at the end if the
	event is not handled at all.

1080 1081 1082 1083 1084 1085
Mon Feb  2 23:41:48 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed): 
	Don't access the level after removing the node, since that may
	kill the level.  (#132615, Crispin Flowerday)

1086 1087 1088 1089 1090 1091 1092
2004-02-02  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): Set the cursor
	in all cases. If no grab cursor specified, use the grabbing
	window's cursor. If the grabbing window has no cursor, use the
	default arrow cursor. (#118025)

1093 1094 1095 1096 1097
Mon Feb  2 22:05:36 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The
	latest in menu separation technology.

1098 1099 1100 1101 1102 1103 1104
Mon Feb  2 19:04:17 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gdk/x11/gdkwindow-x11.c: Assume gravity works. (Anything else
	we have to take our chances with).
	
	(Bug 97510)

1105 1106
Mon Feb  2 18:45:28 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

1107 1108
	Fix bug 110224.

1109 1110 1111 1112 1113
	* gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
	Remove unused variable 'result'

	* gdk/x11/xsettings-client.[ch]: Add new set_grab/ungrab_func() functions.

1114 1115
	* gdk/x11/gdkevents-x11.c (_gdk_x11_events_init_screen): Use them
	here.
1116

1117 1118 1119 1120 1121
Mon Feb  2 14:32:32 2004  Pablo Saratxaga  <pablo@mandrakesoft.com>

	* configure.in po/uz*.po: changed default for Uzbek; now just "uz"
	is in cyrillic and "uz@Latn" for latin; "uz@Cyrl" has been removed

1122 1123 1124 1125 1126
Sun Feb  1 16:34:07 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Only start
	sliding when using the new API.

1127 1128 1129 1130 1131 1132
Sun Feb  1 16:03:39 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
	item_area is positioned correctly. Fix #133070, reported by Jeroen
	Zwartepoorte.

1133 1134 1135 1136 1137 1138
Sat Jan 31 23:13:43 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextchild.c (gtk_text_child_anchor_finalize): Don't
	crash when finalizing an unused GtkTextChildAnchor.  (#132260,
	muppet)

1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149
Sat Jan 31 22:41:57 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreemodel.c (gtk_tree_model_rows_reordered): Correct
	the documentation for new_order.  (#124790, Tim-Philipp Müller)

Sat Jan 31 22:38:07 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): 
	Reset use_resized_width when setting fixed_width.  (#108612, 
	Felipe Heidrich) 

1150 1151 1152 1153 1154
Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
	GtkKeySnooperData.  (#132038, R. McFarland)

Federico Mena Quintero's avatar
Federico Mena Quintero committed
1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181
2004-01-30  Federico Mena Quintero  <federico@ximian.com>

	Fixes #132975.

	* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
	not FALSE.
	(gtk_file_system_volume_render_icon): Likewise.

	* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
	Likewise.

	* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
	not FALSE.

	* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
	FALSE.

	* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
	not FALSE.
	(gtk_text_iter_get_bytes_in_line): Likewise.

	* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
	Likewise.

	* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
	0.

Not Zed's avatar
Not Zed committed
1182 1183 1184 1185 1186 1187 1188
2004-01-30  Not Zed  <NotZed@Ximian.com>

	Fixes #132929.

	* gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
	handler when we clear the timeout id.

1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212
2004-01-30  Federico Mena Quintero  <federico@ximian.com>

	Fix #129872, based on a patch by Jan Arne Petersen
	<jpetersen@uni-bonn.de>

	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_list_bookmarks):
	Implement.
	(gtk_file_system_unix_add_bookmark): Implement.
	(gtk_file_system_unix_remove_bookmark): Implement.

2004-01-29  Federico Mena Quintero  <federico@ximian.com>

	Fixes #132693.

	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_parent): Don't
	use filename_from_path().  Also, check that the filename is
	absolute.
	(gtk_file_system_unix_get_folder): Likewise.
	(gtk_file_system_unix_create_folder): Likewise.
	(gtk_file_system_unix_make_path): Likewise.
	(gtk_file_system_unix_parse): Likewise.
	(gtk_file_folder_unix_get_info): Likewise.
	(filename_from_path): Removed.

1213 1214 1215 1216 1217
2004-01-30  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkcalendar.c (arrow_action): Remove C++ comment; reported
	by Damien Carbery <damien.carbery@sun.com>.  Fixes #132956.

1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240
Fri Jan 30 11:37:37 2004  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkdrawable-x11.c: Revert changes from
	#113476 and go back to using XftDrawSetClip, because
	XftDrawSetClipRectangles is buggy in XFree86-4.3.

Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktextlayout.c (line_display_iter_to_index)
	* gtk/gtktextlayout.c (line_display_index_to_iter): Only
	adjust the preedit position for lines that include the
	preedit string. (#132353, Yao Zhang). How the heck
	did this work as well as it did?!?!

	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic): 
	Reverse change to change of XNFilterEvents event mask from
	#110493 -- it's documented and in the Xlib code an
	unsigned long. 
	
	* modules/input/gtkimcontextxim.c (preedit_start_callback): 
	Return -1 rather than void to indicate no length limit.
	(#129548)

1241 1242 1243 1244 1245
Fri Jan 30 00:45:46 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkadjustment.c: Add properties to GtkAdjustment.
	(#64601, Murray Cumming)

1246 1247 1248 1249 1250
Fri Jan 30 00:13:46 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkcombo.c (gtk_combo_set_popdown_strings): Allow NULL
	for strings to clear the list.  (#105386, Marco Pesenti Gritti)
	
Richard Hult's avatar
Richard Hult committed
1251 1252 1253 1254 1255
2004-01-28  Richard Hult  <richard@imendio.com>

	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size):
	Free font_desc.  Fixes #132805.

1256 1257 1258 1259
2004-01-29  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkiconfactory.c (render_icon_name_pixbuf): Free the GError.
	Patch provided by Christian Persch <chpe@stud.uni-saarland.de>
Richard Hult's avatar
Richard Hult committed
1260
	Fixes #132574.
1261

1262 1263 1264 1265 1266
Thu Jan 29 11:00:18 2004  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkselection.c (gtk_selection_default_handler): 
	nul-terminate the target atoms. (#132656, Christian Persch)

1267 1268
Thu Jan 29 00:59:03 2004  Matthias Clasen  <maclas@gmx.de>

1269 1270
	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
	Don't leak path if we bail out early.  (#132505, Christian Persch)
1271

1272 1273
Thu Jan 29 00:48:47 2004  Matthias Clasen  <maclas@gmx.de>

1274 1275 1276 1277 1278
	* gtk/gtkactiongroup.c (gtk_action_group_add_toggle_actions_full):
	* gtk/gtkactiongroup.c (gtk_action_group_add_actions_full): Do
	reference counting on the user_data that is shared between
	multiple signal handlers, to avoid calling the destroy notify
	multiple times.  (#132447, Adam Hooper)
1279

1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295
2004-01-28  Hans Breuer  <hans@breuer.org>

	* gtk/stock-icons/stock_network_(16|24).png : new GTK_STOCK_NETWORK ...
	  gtk/gtkstock.[hc] : ... define ...
	  gtk/gtkiconfactory.c : ... register ...
	  gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc : ... compile ...
	* gtk/gtkfilesystemwin32.c : ... and use. Also adapt to recent 
	IFace changes.

	* gtk/gtk.def : added a bunch of new exported symbols

	* tests/testfilechooser.c (no_backup_files_filter) : don't crash
	on filter_info->display_name being NULL

	* tests/testgtk.c : make testgtk --bench=all work again

1296 1297 1298 1299 1300
Wed Jan 28 21:40:47 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_action_data_func):
	Don't leak string.  (#132482, Christian Persch)

1301 1302 1303 1304 1305
Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>

        * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
        1.8 won't whine at us.

1306 1307 1308 1309 1310 1311 1312 1313 1314
2004-01-28  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (synthesize_leave_event,
	synthesize_enter_event): Don' generate enter or leave events if
	the pointer is grabbed with owner_events off, and the grab event
	mask doesn't ask for them. (#129242)

	(gdk_event_translate): Ditto for focus change events.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328
2004-01-27  Federico Mena Quintero  <federico@ximian.com>

	Fix #132314.

	* gtk/gtkfilesystem.h: Removed the #ifdef-ed out, old icon API.

	* gtk/gtkfilesystem.c: Likewise.

	* gtk/gtkfilesystemunix.c (filename_get_info): Removed the old
	icon-type code.
	(gtk_file_system_unix_render_icon): Moved the icon-rendering code
	from GtkFileInfo to here.
	(gtk_file_system_unix_volume_render_icon): Implement.

1329 1330 1331 1332 1333 1334
2004-01-28  Changwoo Ryu  <cwryu@debian.org>

	* modules/input/imhangul-defs.h: 
	* modules/input/imhangul.c:
	* modules/input/Makefile.am: Remove broken hangul input module.
	
Soeren Sandmann's avatar
Soeren Sandmann committed
1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351
Tue Jan 27 01:56:46 2004  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtktoolbar.c: Remove obsolete comment.

	* gtk/gtktoolbar.c (DEFAULT_SPACE_SIZE, SPACE_LINE_START, 
	SPACE_LINE_END): Make separators wider and taller, so they are
	easier to pick up when editing the toolbar.

	* gtk/gtktoolbar.c (slide_idle_handler): Add a comment, simplify
	a bit, 

	* gtk/gtktoolbar.c (rect_within): Formatting fix

	* gtk/gtktoolbar.c (gtk_toolbar_set_drop_highlight_item): Make
	sliding feel more responsive by only restarting sliding when the
	placeholder actually changes its goal allocation.

1352 1353 1354 1355 1356
Tue Jan 27 02:00:37 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): Avoid a 
	compiler warning.  (#122725, Kjartan Maraas)
	
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366
Tue Jan 27 01:46:54 2004  Matthias Clasen  <maclas@gmx.de>

	Make menus work better on Xinerama (#126150):
	
	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Calculate the 
	monitor_num on the screen of the menu, not of the attach widget.

	* gtk/gtkmenu.c (menu_change_screen): Forget the stored monitor_num. 
	(gtk_menu_window_size_request): Remember the monitor_num.

1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 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 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424
2004-01-26  Federico Mena Quintero  <federico@ximian.com>

	Fix #105497; constify uses of GdkColor.

	* gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
	(gdk_gc_set_rgb_bg_color): Constify.
	(gdk_gc_set_foreground): Constify.

	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
	* gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.

	* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
	* gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.

	* gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
	* gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.

	* gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
	(gdk_draw_layout_with_colors): Constify.

	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
	(gdk_pixmap_colormap_create_from_xpm): Constify.
	(gdk_pixmap_create_from_xpm): Constify.
	(gdk_pixmap_colormap_create_from_xpm_d): Constify.
	(gdk_pixmap_create_from_xpm_d): Constify.

	* gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.

	* gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
	(gtk_clist_set_background): Constify.

	* gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
	(gtk_color_button_set_color): Constify.

	* gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
	Constify and add a check for color != NULL.
	(gtk_color_selection_get_current_color): Add a check for color != NULL.
	(gtk_color_selection_set_previous_color): Constify and add a check
	for color != NULL.
	(gtk_color_selection_get_previous_color): Add a check for color != NULL.

	* gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
	(gtk_ctree_node_set_background): Constify.

	* gtk/gtktext.c (gtk_text_insert): Constify.
	(insert_text_property): Constify.
	(text_properties_equal): Constify.
	(new_text_property): Constify.

	* gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
	(gtk_widget_modify_fg): Constify.
	(gtk_widget_modify_bg): Constify.
	(gtk_widget_modify_text): Constify.
	(gtk_widget_modify_base): Constify.

1425 1426 1427 1428
2004-01-26  Christian Rose  <menthos@menthos.com>

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

1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441
2004-01-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
	WM_TRANSIENT_FOR property is being deleted, set the owner of the
	window to the root window (i.e., effectively unset it). (#132411)

	* gdk/win32/gdkprivate-win32.h
	* gdk/win32/gdkglobals-win32.c
	* gdk/win32/gdkmain-win32.c: Declare, define and initialize
	_wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.

	* acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.

1442 1443 1444 1445 1446