ChangeLog 139 KB
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2 3 4 5
2005-06-27  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks): 
	Fix indentation.

6 7 8 9 10 11
2005-06-27  Kjartan Maraas  <kmaraas@gnome.org>

	* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
	* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
	Closes bug #308953.

Matthias Clasen's avatar
Matthias Clasen committed
12 13 14 15 16 17 18
2005-06-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
	GMappedFile.

	* configure.in: Require GLib 2.7.1

19 20
2005-06-26  Matthias Clasen  <mclasen@redhat.com>

21 22 23 24 25
	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): 
	Unregister XIM callbacks here.  (#309054)

	* modules/input/gtkimcontextxim.h: Small cleanup.

26 27 28 29
	* gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
	scroll offset when drawing the box.  (#308834, Tom von 
	Schwerdtner)

30 31 32 33 34 35 36 37
2005-06-26  Tor Lillqvist  <tml@novell.com>

	* gdk/Makefile.am
	* gtk/Makefile.am: Current GNU tools do understand the PRIVATE
	keyword, so no need to remove those entries from the import
	library. libtool installs the .dll.a import library itself, so no
	need to do it here. Install the .def file.

38 39 40 41 42 43 44 45 46 47
Sun Jun 26 00:04:36 2005  Manish Singh  <yosh@gimp.org>

	* gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add
	GDK_GRAB_BROKEN to the switch cases.

	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused
	variables.

	* gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.

48 49
2005-06-26  Matthias Clasen  <mclasen@redhat.com>

50 51 52
	* gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column
	header drag operations if the grab is broken.

53 54 55
	* gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if
	the grab is broken.

56 57 58 59 60
	* gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do 
	explicitly ungrab pointer and keyboard. We're unmapping
	the grab window anyway. 
	(gtk_combo_box_popup): Handle grab failures.

61 62 63 64 65 66
2005-06-25  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab):
	Don't emit grab-broken for overgrabbing, until we figure
	out how to do that without breaking the menu code.

67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
2005-06-25  Matthias Clasen  <mclasen@redhat.com>

	Add a GrabBroken event to GDK, and a grab-broken-event
	signal to GtkWidget.  (#107320, Simon Cooke, initial patch 
	by John Ehresman)

	* gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
	define a GdkEventGrabBroken event struct.

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): 
	Generate GrabBroken events in response to WM_KILLFOCUS.

	* gdk/x11/gdkmain-x11.c: Generate GrabBroken events
	when a grab is broken by the window becoming unviewable,
	or by another grab from the same client.
	
	* gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.

	* gtk/gtkwidget.c (gtk_widget_event_internal): Translate
	GrabBroken events into grab_broken_event signals.

	* gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
	events.

	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
	the menu when the grab is broken.

	* gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop 
	the color picker if the grab is broken.

	* gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
	the grab is broken.

100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
2005-06-25  Matthias Clasen  <mclasen@redhat.com>

	Add some new stock items.  (#166480, Kristof Vansant)
	
	* gtk/stock-icons/stock_fullscreen_16.png: 
	* gtk/stock-icons/stock_fullscreen_24.png: 
	* gtk/stock-icons/stock_leave_fullscreen_16.png: 
	* gtk/stock-icons/stock_leave_fullscreen_24.png: 
	* gtk/stock-icons/stock_info_16.png: 
	* gtk/stock-icons/stock_info_24.png: New icons.

	* gtk/stock-icons/Makefile.am: Add new icons.

	* gtk/gtkstock.h: Define names for the new icons.

	* gtk/gtkstock.c (builtin_items): Register new stock items.
	
	* gtk/gtkiconfactory.c (get_default_icons): Register new 
	stock icons.

120 121 122 123 124 125 126
2005-06-24  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
	conversion functions for MSB machines: convert_0888[_br]
	now work on bytes so are endian independent. 
	(Reported by David Zeuthen)

127 128 129 130
2005-06-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
	jump to the next line if we are at the end of the line.  
131 132
	(gtk_text_view_move_cursor_internal): Make movement by
	paragraphs up/down symmetric.  (#307055, Behnam Esfahbod)
133

134 135 136 137
2005-06-23  Tor Lillqvist  <tml@novell.com>

	Improve and simplify line segment rendering on Win32, especially
	the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
Tor Lillqvist's avatar
Tor Lillqvist committed
138
	bugs #306396 and #308413.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 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

	* gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
	line_style, cap_style and join_style as such in the
	GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
	check the line_style.

	* gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
	up the GDI pen type, style, end cap and join attributes to use
	based on the pen width, GDK line style, end cap style, and join
	style.

	For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
	cap style, which typically are used for XOR drawing where it is
	essential that the last pixel is not drawn, use a GDI cosmetic
	pen. Only for a cosmetic pen does GDI not draw the last pixel. I
	deduced this by experimetation, the documentation is rather vague.

	For other GDK pens use a geometric GDI pen. If the width is 0 or 1
	and the GDK end cap style is GDK_CAP_BUTT, and the line style is
	GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
	single-pixel length lines are drawn. (For sngle-pixel width lines
	roundness as such is of course irrelevant.) For dashed lines, use
	PS_ENDCAP_FLAT.

	For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
	respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.

	For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
	work better than PS_USERSTYLE. For other dashed lines, use
	PS_USERSTYLE and the dashes as set by the user (or the default
	four-pixel on-off style).

	(gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
	Call fixup_pen() to do the pen settings after modifying some of
	the GDK GC attributes that affect pens.

	* gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
	render_line_vertical, draw_segments): Check GdkGCWin32::line_style
	instead of the the removed pen_double_dash member. Don't use
Tor Lillqvist's avatar
Tor Lillqvist committed
178
	PATCOPY unconditionally in the PatBlt() call, use a raster op
179 180 181 182 183 184 185 186 187
	code that depends on the GC function in use.

	(draw_rectangle, draw_segments, draw_lines): Be more careful in
	deciding when to do the manual dash rendering.

	(draw_segments): Don't do any manual "last point" drawing at
	all. The above changes takes care of narrow line segments being
	drawn correctly in most cases, at least on NT-based Windows.

188 189
2005-06-23  Matthias Clasen  <mclasen@redhat.com>

190 191 192 193
	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): 
	Fix an error in the cache timeout logic.  (#166601, Morten
	Welinder)

194 195 196 197 198
	* gtk/gtktreeview.c (gtk_tree_view_key_press): Change the
	keynav for header reordering and resizing to Alt-arrows and
	Shift-Alt-arrows, following a proposal by the keynav 
	authority. (#308666, Calum Benson)

199 200 201
	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove
	a leftover debugging envvar.  

202 203 204 205 206 207
2005-06-23  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the
	big endian case for 3-channel source. (Reported by
	David Zeuthen)

208 209
2005-06-23  Matthias Clasen  <mclasen@redhat.com>

210 211 212 213
	* gtk/gtkbutton.c (gtk_button_construct_child): Don't
	trigger warnings if there are extra references to the
	hbox.  (#308677, Dan Winship)

214 215 216
	* gtk/gtkfilesystemunix.c (bookmark_list_write): Use
	g_file_set_contents().  (#308722, Morten Welinder)

217 218
2005-06-22  Matthias Clasen  <mclasen@redhat.com>

219 220 221
	* gdk/x11/gdkdnd-x11.c (xdnd_finished_filter): Set the
	time field in the event.  (#308573, Morten Welinder)

222 223 224 225
	* gtk/gtkfilesystemunix.c: Remove gratitious differences
	between the stable branch and HEAD, which sneaked in with
	the bookmark renaming.  

226 227 228 229 230
2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>

	* gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
	Closes bug #308581.

231 232 233 234 235 236 237 238 239
2005-06-21  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkarrow.c:
	* gtk/gtkimage.c:
	* gtk/gtklabel.c:
	* gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down
	on centering calculations to match the behaviour of other parts
	of GTK+. (#307419, Ryan Lortie)

240 241
2005-06-21  Matthias Clasen  <mclasen@redhat.com>

242 243 244 245
	* gtk/gtkdnd.c (gtk_drag_source_set): Connect to 
	button-release-event as well, to handle touchscreen 
	scenarios better.  (#171490, Markku Vire)

246 247
	* gtk/*.h: Trivial cleanups. (#169647, #303455, 
	Fabricio Barros Cabral, Benoit Carpentier)
248

249 250 251 252 253 254
	* gdk/gdk.symbols: 
	* gdk/gdkwindow.h: 
	* gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New
	function which can be used to implement scrolling in 
	non-window widgets.  (#135165, Søren Sandmann)

255 256 257 258 259
2005-06-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconcache.c: Handle MAP_FAILED.  (#308449, Georg
	Schwarz)

Matthias Clasen's avatar
2.7.0  
Matthias Clasen committed
260 261
2005-06-20  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
262 263
	* configure.in: Bump version number.

Matthias Clasen's avatar
2.7.0  
Matthias Clasen committed
264 265
	* === Released 2.7.0 ===

266 267 268 269 270 271 272
2005-06-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtkwindow.h:
	* gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
	gtk_window_present which takes a timestamp.  (#166379, Elijah Newren)

Matthias Clasen's avatar
Updates  
Matthias Clasen committed
273
2005-06-19  Matthias Clasen  <mclasen@redhat.com>
Matthias Clasen's avatar
Matthias Clasen committed
274 275
	
	* gtk/gtk.symbols: Add a forgotten symbol
Matthias Clasen's avatar
Updates  
Matthias Clasen committed
276 277 278

	* NEWS: Updates

279 280 281 282 283 284
2005-06-19  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_clamp_node_visible): added a
	check which avoids processing updates on bin_window and scrolling
	if the node is already visible. (#170600, Billy Biggs).

285 286 287 288 289 290
2005-06-19  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (validate_visible_area): only keep the
	row at the same position if the full row is visible. (#304623,
	Jorn Baayen).

291 292 293 294 295 296
2005-06-19  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
	if treeview's height is smaller than the current page_size (just
	like we do elsewhere).

297 298 299 300 301 302 303 304 305
2005-06-19  Kristian Rietveld  <kris@gtk.org>

	Make mousewheel scrolling possible in typeahead mode, suggestion
	from Reinout van Schouwen (#307898).

	* gtk/gtktreeview.c (gtk_tree_view_ensure_interactive_directory):
	connect treeview search window to scroll_event signal,
	(gtk_tree_view_search_scroll_event): implement.

306 307 308 309 310 311
2005-06-19  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_search_button_press_event): pass
	the event on to treeview, so it has a change of selecting a row, etc.
	(#169677, Kirk Bridger).

312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
2005-06-19  Kristian Rietveld  <kris@gtk.org>

	This commit includes a fix for #169463, Stefan Kost.

	* gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size):
	when cell_area is set, return cell_area width/height as width/height,
	so the focus rectangle will be drawn correctly.

	* gtk/gtktreeview.c (gtk_tree_view_bin_expose): drop unneeded get
	of focus-line-width property,
	(validate_row): take focus_line_width into account.

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
	also take focus_line_width into account when calculating the cell_area
	y and height (before, we only took it into account when calculating
	x and width).

329 330 331 332 333 334
2005-06-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtksizegroup.[hc]: Add an ignore-hidden property
	with getter and setter.  (#171612, Christian Neumair)

335 336
2005-06-18  Matthias Clasen  <mclasen@redhat.com>

337 338 339 340 341 342 343
	* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Make this 
	work for inserting before/after an existing menuitem or
	toolitem.  (#155946, Christian Persch)

	* tests/testmerge.c (delayed_toggle_dynamic): Test the 
	"insert after" functionality of gtk_ui_manager_add_ui.

344
	* gtk/gtkuimanager.c: Allow to construct menu tool buttons.
Matthias Clasen's avatar
Matthias Clasen committed
345 346
	(#300678, Sven Neumann)
	
347 348 349
	* demos/gtk-demo/appwindow.c: Demonstrate menu tool buttons
	constructed with GtkUIManager.

350 351 352 353 354
	* gtk/gtk.symbols: 
	* gtk/gtkimage.h: 
	* gtk/gtkimage.c (gtk_image_clear): Make this function
	public.  (#64792, Havoc Pennington)

355 356 357 358 359 360 361
2005-06-18  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_bin_expose): undo merging
	of the separate loop setting cell data with cell drawing loop
	(introduced in revision 1.280), since this breaks focus handling
	wrt special cells.

362 363 364 365 366 367 368 369 370
Sat Jun 18 04:22:51 2005  Manish Singh  <yosh@gimp.org>

	* gdk/gdkcursor.h: remove GDK_CURSOR and GDK_IS_CURSOR, instance
	checks don't work on boxed types.

	* gdk/x11/gdkcursor-x11.c: 
	* gdk/gdkcursor.c: make return_if_fail checks != NULL instead of
	GDK_IS_CURSOR.
	
371 372 373 374 375
Sat Jun 18 04:21:58 2005  Manish Singh  <yosh@gimp.org>

	* gtk/gtktreeview.c (do_presize_handler): remove unused variable
	height_old.

Matthias Clasen's avatar
Matthias Clasen committed
376 377
2005-06-18  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
378 379 380 381
	* gtk/gtkcellrenderertoggle.c:
	* gtk/gtktextview.c:
	* gtk/gtktreeview.c: Typo fixes in comments.

Matthias Clasen's avatar
Matthias Clasen committed
382 383 384
	* gtk/gtkpaned.c (gtk_paned_add): Barf if more than
	2 children are added.  (#308111, Morten Welinder)

Matthias Clasen's avatar
Matthias Clasen committed
385 386 387
	* gtk/gtkcalendar.c (gtk_calendar_init): _NL_FIRST_WEEKDAY is
	1-based.  (#163842, Pierre Ossman)

388 389 390 391 392 393 394 395 396
2005-06-17  Kristian Rietveld  <kris@gtk.org>

	Fix #160281, testcase from Peter Bloomfield.

	* gtk/gtktreeview.c (do_presize_handler): always size request
	and update adjustments in fixed height mode,
	(gtk_tree_view_build_tree): if a fixed height is set, set this
	height on newly added nodes.

397 398 399 400 401 402 403
2005-06-17  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Set the actions
	and suggested_action fields in the GdkDragContext to
	GDK_ACTION_COPY. Otherwise apps that check the suggested_action
	field, like eog, won't accept dropped files.

404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
2005-06-17  Matthias Clasen  <mclasen@redhat.com>

	Support the ICCCM urgency hint.  (#61858, Havoc Pennington)
	
	* gtk/gtk.symbols: 
	* gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property
	with getter and setter.

	* gdk/gdk.symbols: 
	* gdk/gdkwindow.h: 
	* gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint): 
	Add a setter for the urgency hint.

	* gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store
	urgency hint here.

	* gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency
	hint in the WM_HINTS property when appropriate.

423 424
2005-06-17  Matthias Clasen  <mclasen@redhat.com>

425 426
	* gdk/gdkcursor.h: Define GDK_IS_CURSOR() and GDK_CURSOR().

427 428 429 430 431 432
	* gdk/x11/gdkcursor-x11.c: 
	* gdk/gdkcursor.c: Improve some return_if_fail checks,
	and add the missing non-Xcursor fallback for 
	_gdk_x11_cursor_update_theme(), noticed by Jeroen 
	Zwartepoorte.

433 434 435
	* gtk/gtkbutton.c (gtk_button_class_init): Document
	several button signals as not useful.

436 437 438
	* gtk/gtkentrycompletion.c (gtk_entry_completion_complete): 
	Resize the popup if necessary.  (#308076, Vincent Noel)

439 440 441 442
	* gtk/gtkwindow.c (gtk_window_real_set_focus): Queue a
	draw on the old and new focus widgets, if their defaultness
	changes.  (#305607, Billy Biggs)

443 444 445 446 447 448
2005-06-17  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (validate_visible_area): make sure the row
	above 'above_path' is always in a validated state, so it does
	not mess up scrolling. (#303319, testcase from Billy Biggs).

449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
2005-06-17  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkprivate-x11.h: 
	* gdk/x11/gdkcursor-x11.c: Handle cursor theme changes
	for cached cursors which are not associated with a window
	at the time of the theme change, by storing a serial
	number in each cursor, and updating the theme_serial 
	counter whenever the cursor theme changes.
	
	* gdk/x11/gdkcursor-x11.c (_gdk_x11_cursor_update_theme): 
	Private function to update a cursor to the current
	cursor theme if necessary.

	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab): 
	* gdk/x11/gdkwindow-x11.c (gdk_window_set_cursor): Call
	_gdk_x11_cursor_update_theme() here.

466 467 468 469 470
2005-06-17  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix
	#if G_BYTE_ORDER == GDK_LSB_FIRST.

471 472 473 474 475 476 477 478 479
2005-06-17  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (validate_visible_area): don't try to update
	the top_row rowref ourselves here, but just have _dy_to_top_row()
	do it,
	(gtk_tree_view_scroll_to_cell): handle scrolling via
	validate_visible_area() if the treeview is not visible or needs
	reallocation. (#165246, Nickolay V. Shmyrev).

480 481 482 483 484 485 486 487 488
2005-06-17  Kristian Rietveld  <kris@gtk.org>

	Fixes #307914 (Alexander Larsson), fixing some breakage caused
	by my previous commit.

	* gtk/gtktreeview.c (validate_visible_area): force dy to be zero
	when it fits on a single page,
	(scroll_sync_handler): same here.

Manish Singh's avatar
Manish Singh committed
489 490 491 492 493 494 495 496 497 498 499 500 501
Thu Jun 16 15:33:42 2005  Manish Singh  <yosh@gimp.org>

	* gdk/x11/gdkcursor-x11.c (update_cursor): remove unused variable.

	* gdk/x11/gdkwindow-x11.c (_gdk_x11_window_get_cursor): use
	g_return_val_if_fail.

	* gtk/gtkdnd.c (gtk_drag_get_cursor): initialize hot_x and hot_y
	for all cases.

	* gtk/gtkfilechooserdefault.c (button_new): gtk_button_set_image
	takes a GtkWidget, not a GtkImage.

502 503
2005-06-16  Matthias Clasen  <mclasen@redhat.com>

504 505 506 507
	* gtk/gtkfilechooserdefault.c (button_new): Simplify
	the code and respect the show-button-images setting.
	(#307941, Vincent Noel)

508 509 510 511
	* gtk/gtkdnd.c: Update the RGBA cursor if an
	icon is set after the cursor has been constructed.
	Also handle repeated setting of icons correctly.

512 513 514 515 516
2005-06-16  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkbutton.c (gtk_button_set_image): Add some more
	docs.  (#307818, Christian Persch)

Matthias Clasen's avatar
Matthias Clasen committed
517 518 519 520 521 522
2005-06-15  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkwindow.c (gdk_window_process_updates_internal):
	Initialize all fields of the expose event.  (#151693,
	Jim Evins)

523 524
2005-06-15  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
525 526 527
	* gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image): Get
	red and blue in place.

528 529 530
	* gtk/gtkwindow.c (gtk_window_parse_geometry): Fox doc
	formatting, pointed out by Kjartan Maraas.

531 532 533 534 535 536 537 538 539 540 541
	* gtk/gtksettings.c: Add two new settings, 
	gtk-cursor-theme-name and gtk-cursor-theme-size to
	control the cursor theme.

	* gdk/x11/gdkevents-x11.c: Add two new X settings,
	Gtk/CursorThemeName and Gtk/CursorThemeSize, and map
	these to the gtk settings.

	* tests/testgtk.c (create_cursors): Add a cursor theme
	testcase.

542 543 544 545 546 547 548 549 550
	* gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the 
	GdkCursor and add a private getter for it, so that we can 
	update the cursor when the cursor theme changes.
	
	* gdk/gdk.symbols: 
	* gdk/x11/gdkx.h: 
	* gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme): 
	New function to change the cursor theme.

551 552 553
	* gdk/x11/gdkwindow-x11.c: Remove a lot of pointless
	g_return_if_fail() non-NULL checks.

Matthias Clasen's avatar
Matthias Clasen committed
554 555 556 557 558
2005-06-15  Matthias Clasen  <mclasen@redhat.com>

	* gdk/abicheck.sh: Use uniq to filter out duplicates.
	* gdk/gdk.symbols: Fix a define.

Matthias Clasen's avatar
Matthias Clasen committed
559 560 561 562 563
2005-06-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_parse_geometry):
	Fix up the example.  (#307699, Michal Suchanek)

Matthias Clasen's avatar
Matthias Clasen committed
564 565 566 567 568
2005-06-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcalendar.c: Update num_marked_dates as we
	used to do.  (#307689, Thorsten Schoenfeld)
 
Federico Mena Quintero's avatar
Federico Mena Quintero committed
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
2005-06-14  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	Fix #302087:

	* gtk/gtkfilechooserdefault.c (list_selection_changed): Emit
	"selection-changed" and do the normal housekeeping even if we are
	in SAVE mode and there is nothing selected.  We didn't emit that
	signal if we were in SAVE mode and unselect_all() got called.
	(gtk_file_chooser_default_unselect_all): Call
	pending_select_paths_free() so that we cancel any asynchronous
	selections.
	(gtk_file_chooser_default_set_current_name): Likewise.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
2005-06-14  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	Fixes #307640:

	* gtk/gtkfilechooserdefault.c
	(gtk_file_chooser_default_should_respond): Oops, I broke SAVE
	mode.  If the parent path is a folder, only create a subfolder if
	we are in CREATE_FOLDER mode; if we are in SAVE mode, just return
	and respond.  Also, pick up the case where the user types
	"dirname/" instead of "dirname".
	(check_save_entry): Make the return type void.  Add some return
	parameters so that we can do more thorough checking.
	(gtk_file_chooser_default_get_paths): If the file part is empty
	and we are in SAVE mode, return an empty selection.

601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621
2005-06-15  Kristian Rietveld  <kris@gtk.org>

	Patch for #163214 (reported by Tommi Komulainen) and fixes some
	other scrolling/validation related bugs along the why.

	* gtk/gtktreeview.c (gtk_tree_view_size_request): run
	do_validate_rows once and don't queue a size request there,
	(gtk_tree_view_size_allocate): don't update vadj value without
	reason, sync top_row/dy after the window sizes and adjustments
	are in sync again,
	(validate_visible_area): always update dy when scrolling,
	manually set top_row here after changing the vadj (don't depend
	on _adjustment_changed and top_row/dy sync to do this), since we
	now always set top_row here correctly, we can always free
	scroll_to_path at the end which avoids infinite expose loops,
	(do_validate_rows): add queue_resize boolean, remove top_row/dy
	sync here, we cannot do it safely at this place since the
	window sizes and adjustments are out of sync,
	(validate_rows), (validate_rows_handler): update call to
	do_validate_rows().

622 623
2005-06-14  Matthias Clasen  <mclasen@redhat.com>

624 625 626
	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_name): Add a 
	stub for the no-Xcursor case. (noticed by Luis Villa)

627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662
	Use named cursors for the DND cursors, the names are "dnd-none",
	"dnd-copy", "dnd-link", "dnd-move" and "dnd-ask". Also use an RGBA 
	cursor instead of cursor+window when possible. This saves 
	roundtrips during the drag operation, and makes translucent icons 
	possible.
	
	* gtk/gtkdndcursors.h: New file, containing inlined pixbufs
	for the default dnd cursors.

	* gtk/gtkdnd.c (struct _GtkDragSourceInfo): Store the cursors
	used during the drag here, also store the icon pixbuf here. 

	* gtk/gtkdnd.c (drag_cursors): Store the cursor names here. Also
	switch the default cursors from xbm to inlined pixbufs. 

	* gtk/gtkdnd.c (gtk_drag_get_cursor): This function now takes the
	GtkDragSourceInfo as well, since it has to composite the 
	drag-specific cursors. The cursors combined from the image of
	the themed cursor and the icon_pixbuf stored in the info.

	* gtk/gtkdnd.c (gtk_drag_begin_internal): Don't set the default
	icon if there is an icon_pixbuf, which will be composited into
	the cursor later.

	* gtk/gtkdnd.c (set_icon_stock_pixbuf): If appropriate, store
	the pixbuf in the info struct for later compositing into the
	cursor instead of creating an icon window.
	
	* gtk/gtkdnd.c (gtk_drag_drop_finished): If we used an
	RGBA cursor for the drag, and need to display the cancel
	animation, construct the icon window here.

	* gtk/gtkdnd.c (gtk_drag_source_info_destroy): Unref the 
	drag-specific cursors and the icon_pixbuf when done with
	the drag.

663 664
2005-06-14  Matthias Clasen  <mclasen@redhat.com>

665 666 667
	* gtk/gtkcolorsel.c (make_picker_cursor): Use a named cursor
	with the name "color-picker", when available.

668 669 670 671 672 673
	* gdk/gdk.symbols: 
	* gdk/gdkcursor.h: 
	* gdk/x11/gdkcursor-x11.c (gdk_cursor_get_image) 
	(gdk_cursor_new_from_name): New functions to construct named
	cursors and to get the image used for a cursor.  

674 675
2005-06-13  Matthias Clasen  <mclasen@redhat.com>

676 677 678 679 680 681 682 683 684 685 686 687 688 689
	* gtk/gtkpathbar.[hc]: Rework the way in which rerooting of the
	path bar is done, implementing the following principles:
	(#137289, patch by Benjamin Otte)
	
	1. Re-root only if $HOME is an ancestor of the current path.

	2. When re-rooting, make sure the Left arrow appears in the path 
	bar, so that you can navigate up from $HOME to /.  In that case, 
	make sure the Right arrow doesn't appear if the sub-hierarchy from 
	$HOME to the cwd fits in the window.

	3. Make sure that hitting Alt-Up takes you always one folder up, 
	even when the path bar is re-rooted.

690 691 692
	* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
	Try harder not to modify readonly strings. (#307541, Torsten Schoenfeld)

693 694 695 696
	* gtk/gtkfilechooserbutton.c (model_update_current_folder): 
	Free the data of the row before overwriting it.  (#307490,
	Kjartan Maraas)

697 698 699 700 701
2005-06-13  Kjartan Maraas  <kmaraas@gnome.org>

	* gtk/gtkcalendar.c: (calendar_paint_arrow): Don't
	leak the cairo context. Closes bug #307426.

702 703 704 705 706 707 708 709 710 711 712 713 714 715 716
2005-06-13  Matthias Clasen  <mclasen@redhat.com>

	Make invisible text work a bit better (#66194, patch by
	Jeroen Zwartepoorte)
	
	* gtk/gtk.symbols:
	* gtk/gtktextiter.[hc]: Add function to move by
	visible lines.

	* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): 
	Skip invisible text when moving by paragraphs.

	* gtk/gtktextlayout.c (gtk_text_layout_move_iter_visually): 
	Skip invisible lines here too.

717 718 719 720 721
2005-06-12  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkselection.c (gtk_target_list_add_image_targets): 
	Don't leak the format names.  (#307190, Morten Welinder)

722 723 724 725 726
2005-06-12  Kjartan Maraas  <kmaraas@gnome.org>

	* gdk/x11/gdkasync.c: (send_event_handler): Plug
	a leak. Closes bug #307281.

727 728
2005-06-12  Matthias Clasen  <mclasen@redhat.com>

729 730 731 732 733
	* gtk/gtkcalendar.c (calendar_paint_header): 
	(gtk_calendar_size_request): Allow localization of the
	format in which the year is displayed.  (#135451, Paisa 
	Seeluangsawat)

734 735
	* gdk/*.h: Cleanup.  (#169648, Fabricio Barros Cabral)

Matthias Clasen's avatar
Matthias Clasen committed
736 737
	* gdk/gdkcairo.c: Small doc additions.

738 739 740 741
	* gtk/gtktreeview.c (gtk_tree_view_maybe_begin_dragging_row): 
	Check start_button_mask before starting a drag.  (#149058, 
	Andreas Volz)

742 743 744
	* gtk/gtkfilesystemunix.c: Support .hidden files.  (#129170,
	Sayamindu Dasgupta, patch by Jan Arne Petersen)

745 746
2005-06-11  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
747 748
	* NEWS: Updates.

749 750 751
	* gtk/gtkwidget.c (gtk_widget_set_app_paintable): More docs
	provided by Owen Taylor.

752 753 754 755 756 757
	* gtk/gtk.symbols: 
	* gtk/gtkiconview.h: 
	* gtk/gtkiconview.c (gtk_icon_view_get_visible_range): 
	Add a function to determine what parts of the model are
	visible.  (#306726, Jonathan Blandford)

758 759 760 761
	* gtk/gtkfilesystemunix.c (create_file_info): Treat backup
	files the same way as hidden files, to be closer to what
	Nautilus does.  (#136196, Sean Middleditch)

762 763 764 765 766
2005-06-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): 
	Don't modify strings returned from gettext().

767 768 769 770 771
Fri Jun 10 19:06:03 2005  Manish Singh  <yosh@gimp.org>

	* gtk/gtktextdisplay.c (render_para): don't use deprecated
	gdk_gc_unref function.

772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796
2005-06-10  Matthias Clasen  <mclasen@redhat.com>

	Allow setting paragraph background.  (#81045, Gustavo
	Carneiro, patch by Jeroen Zwartepoorte)
	
	* gtk/gtktextlayout.c (set_para_values): Propagate 
	pg_bg_color to the display struct.
	(gtk_text_layout_free_line_display): Free it here.

	* gtk/gtktextdisplay.c (render_para): If pg_bg_color
	is set, draw a rectangle in that color behind
	the paragraph.

	* gtk/gtktexttag.c (gtk_text_tag_class_init): Add 
	paragraph-background, paragraph-background-gdk and
	paragraph-background-set properties.
	(set_pg_bg_color): A setter for paragraph-background.

	* gtk/gtktextlayout.h (struct _GtkTextLineDisplay): Add
	pg_bg_color.

	* gtk/gtktexttag.h (struct _GtkTextAttributes): Add
	pg_bg_color.
	(struct _GtkTextTag): Add pg_bg_color_set.

797 798 799 800 801 802 803 804 805
2005-06-10  Kjartan Maraas  <kmaraas@gnome.org>

	* gdk/gdkcairo.c: (gdk_cairo_set_source_pixbuf): Destroy the
	cairo surface when done with it. Plugs a fairly large leak in
	some cases.
	==6014== 1999824 (115640 direct, 1884184 indirect) bytes in
	826 blocks are definitely lost in loss record 25239 of 25250
	Like this from nautilus.

806 807 808 809 810 811
2005-06-10  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.symbols
	* gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
	to get an action's accel_closure (Fixes #141750 and #148106).

812 813 814 815 816 817 818 819 820 821 822 823 824 825 826
2005-06-10  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gen-keyname-table.pl: Generate N_() calls for
	translatable key names.

	* gdk/keynames.txt: Mark some key names as translatable.
	
	* gdk/keyname-table.h: Regenerated.

	* gtk/gtkaccellabel.c (gtk_accel_label_class_init): Add
	some context to the msg ids for keyboard modifiers and
	key names.
	(_gtk_accel_label_class_get_accelerator_label): Try to
	translate key names.  (#300224, Christian Rose)

Federico Mena Quintero's avatar
Federico Mena Quintero committed
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860
2005-06-10  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	Fixes #162358:

	* gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't return
	immediately if we are in CREATE_FOLDER mode, so that we can fill
	the entry with the newly-selected folder.
	(gtk_file_chooser_default_set_property): Warn against turning on
	multiple selection for CREATE_FOLDER mode, or about setting that
	action while multiple selection is on.
	(update_chooser_entry): Change the entry's contents as well if we
	are in CREATE_FOLDER mode.  If nothing is selected, clear the
	chooser entry.
	(trap_activate_cb): Don't trap enter/space if modifiers are
	pressed.  This lets one use Ctrl-space to toggle rows in multiple
	selection mode.
	(gtk_file_chooser_default_should_respond): Clean up the if-chain
	mess of special cases by using an array to determine what to do.
	Also, for the save-entry case in CREATE_FOLDER mode, actually fix
	the bug where the file chooser would switch to an existing folder
	rather than confirming with it, and create the folder ourselves.
	(error_creating_folder_over_existing_file_dialog): New function.

	* gtk/gtkfilechooserentry.c (check_completion_callback): Only
	insert the common prefix if we are in an "open" mode.  Use a
	helper function.
	(append_common_prefix): New helper function; code moved over from
	check_completion_callback().
	(find_common_prefix): New helper function.
	(gtk_file_chooser_entry_focus): Append the common prefix if the
	user requests it explicitly.

Matthias Clasen's avatar
Matthias Clasen committed
861 862
2005-06-10  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
 
Matthias Clasen committed
863 864 865 866 867 868 869 870
	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): 
	* gtk/gtktoolbar.c (gtk_toolbar_get_show_arrow): 
	* gtk/gtktextview.c (gtk_text_view_get_iter_at_position): 
	* gtk/gtkstock.c (gtk_stock_set_translate_func): 
	* gtk/gtkspinbutton.c (gtk_spin_button_get_adjustment): 
	* gtk/gtkscrolledwindow.h: 
	* gtk/gtkmenushell.c (gtk_menu_shell_get_take_focus): 

Matthias Clasen's avatar
Matthias Clasen committed
871 872 873 874
	* gtk/gtkiconview.c (gtk_icon_view_set_margin): 
	* gtk/gtkicontheme.c (gtk_icon_info_load_icon): 
	* gtk/gtkcalendar.c (gtk_calendar_thaw): Doc fixes.

875 876
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
877 878
	* gdk/x11/gdkwindow-x11.c: Small markup fixes.

879 880 881
	* gtk/gtkwidget.c (gtk_widget_set_app_paintable): Add docs.
	(#306212, Steve Chaplin, docs provided by Billy Biggs)

882 883 884
	* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible): Small 
	cleanup.  (#305539, Paolo Borelli)

885 886 887 888
2005-06-09  Rodrigo Moya <rodrigo@novell.com>

	* configure.in: added cairo to list of $GTK_PACKAGES.

889 890
2005-06-09  Matthias Clasen  <mclasen@redhat.com>

891 892 893 894
	* gdk/x11/gdkdnd-x11.c (motif_drop_start, xdnd_drop_filter): Update
	the user time on the window when a drop happens.  (#169364, Alexander
	Hunziker, patch by Elijah Newren)

Matthias Clasen's avatar
Matthias Clasen committed
895 896
	* gdk/x11/gdkwindow-x11.c: Small markup fixes.

897 898 899 900 901
	* gtk/gtk.symbols: 
	* gtk/gtkiconview.h: 
	* gtk/gtkiconview.c (gtk_icon_view_scroll_to_path): New function
	to scroll to a path.  (#306838, Jonathan Blandford)

902 903
2005-06-08  Matthias Clasen  <mclasen@redhat.com>

904 905 906
	* gtk/gtkiconview.c (gtk_icon_view_set_cursor): Scroll to the
	item.  (#306839, Jonathan Blandford)

907 908 909 910
	* gtk/gtktreemodel.c (gtk_tree_path_new_from_string): Check for
	negative before appending the index, to avoid double error
	message.  (#306393, Morten Welinder)

911 912 913 914
	* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
	Don't crash if search_window is NULL.  (#304914, Victor Osadci,
	testcase by Olaf Vitters)

915 916 917
	* gtk/gtkimage.c: Make the file property readable.  
	(#170674, Lorenzo Gil Sanchez)

Matthias Clasen's avatar
Matthias Clasen committed
918
	
919 920 921 922 923
2005-06-08  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilesystem.c (gtk_file_info_get_display_key): Use
	g_utf8_collate_key_for_filename().

924 925 926 927 928
2005-06-07  Kjartan Maraas  <kmaraas@gnome.org>

	* gtk/gtkfilechooserbutton.c: (update_label_and_image):
	Merge leak fix from stable. Bug 306754.

929 930
2005-06-05  Tor Lillqvist  <tml@novell.com>

931 932 933 934 935 936
	* gdk/win32/gdkscreen-win32.c
	(_gdk_windowing_substitute_screen_number): Return NULL unless
	screen number is zero. We have only one screen on Win32.
	(gdk_screen_make_display_name): Call gdk_display_get_name() and
	return that.
	
937 938 939 940 941 942 943 944
	* modules/engines/Makefile.am
	* modules/input/Makefile.am: Decide whether to build the
	ms-windows theme engine based on the GDK backend, not based on
	platform. (I.e., if building for Cygwin with the X11 backend, we
	shouldn't build the ms-windows engine, but if building for Cygwin
	but with the Win32 backend, we should.) Ditto for the IME
	(Windows) input module. (#305832)

945 946
2005-06-04  Tor Lillqvist  <tml@novell.com>

947 948 949 950 951 952 953
	* gdk/win32/gdkcursor-win32.c
	* gdk/win32/gdkwindow-win32.c
	* gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
	Support cursors with alpha on XP. Use code in common with the
	support for alpha icons that already was present. (#306101, Tim
	Evans)

954 955 956 957 958 959
	* modules/engines/ms-windows/msw_style.c: Render insensitive icons
	in a way that more closely matches Windows. (#305986, Tim Evans).

	* modules/engines/ms-windows/Makefile.am (LDADDS): Link with
	gdk-pixbuf.

960 961 962 963 964 965
2005-06-03  Dom Lachowicz <cinamod@hotmail.com>

	* modules/engines/ms-windows/msw_style.c: Re-sync with gtk-wimp
	* modules/engines/ms-windows/xp_theme.c: Ditto
	* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: Ditto

966 967 968 969 970
Thu May 26 16:43:27 2005 Manish Singh  <yosh@gimp.org>

	* gtk/gtkentrycompletion.h: Add declarations for
	gtk_entry_completion_{get,set}_popup_single_match.

971 972
2005-05-26  Matthias Clasen  <mclasen@redhat.com>

973 974 975 976 977 978 979 980 981
	* gtk/gtk.symbols: 
	* gtk/gtkentrycompletion.c: Add a property to suppress the
	popup for single matches.  (#154711)

	* gtk/gtkentry.c (gtk_entry_completion_timeout): Respect it here.

	* gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_action): 
	Use it here.

982 983 984
	* gtk/gtktextbtree.c (_gtk_text_btree_tag): Queue the 
	redisplay after modifying the tag in the btree, otherwise 
	we end up showing the old tags until the next redraw comes 
Matthias Clasen's avatar
Matthias Clasen committed
985
	around.   (#143537, Gary Kramlich, Peter Wainwright)
986

987 988 989
	* gtk/gtkcombobox.c (gtk_combo_box_list_auto_scroll): Make 
	autoscrolling work at the bottom of the screen.

990 991 992 993 994
2005-05-26  Maciej Katafiasz  <email@mathrick.org>

	* docs/reference/gtk/tmpl/gtkentry.sgml:
	Point to GtkTextView instead of GtkText. Fixes bug #305535

995 996 997 998 999
2005-05-26  Sven Neumann  <sven@gimp.org>

	* gtk/gtkselection.c (gtk_selection_data_set_pixbuf): use a less
	aggressive PNG compression level (bug #305340).

1000 1001 1002 1003 1004 1005
2005-05-26  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkdrawable-win32.c (_gdk_win32_blit): If blitting
	from the root window, take the multi-monitor offset into
	account. (#305511)

1006 1007
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
1008 1009 1010
	* demos/gtk-demo/appwindow.c (do_appwindow): Set the window
	icon by name.

Matthias Clasen's avatar
Matthias Clasen committed
1011 1012 1013
	* gtk/gtkfilesystem.c (gtk_file_folder_is_finished_loading): 
	Remove another C99ism.

1014 1015 1016 1017
	* gtk/gtktreeview.c (gtk_tree_view_bin_expose): Draw the 
	background of rows insensitive when the treeview is insensitive.
	(pointed out by Billy Biggs)

1018 1019 1020
	* demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
	and DND, and clipboard persistency.

1021 1022 1023 1024
	* gtk/gtkselection.c (gtk_target_list_add_image_targets): 
	Make sure png comes first, otherwise dnd may use bmp by
	default, loosing transparency.

1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037
2005-05-25  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextview.c (blink_cb): block the text_layout's "changed"
	handler when changing cursor visibility because it would expose
	the whole paragraph where the cursor is. Instead, expose the
	cursors' areas manually. (#173047).

	(text_window_invalidate_cursors): new function which exposes the
	cursors.

	* gtk/gtkstyle.c (draw_insertion_cursor): added comment that the
	same cursor size calculation is in text_window_invalidate_cursors().

1038 1039
2005-05-25  Matthias Clasen  <mclasen@redhat.com>

1040 1041 1042
	* demos/gtk-demo/editable_cells.c (create_items_model): Also
	demonstrate GtkCellRendererProgress.

1043 1044 1045 1046
	* demos/gtk-demo/Makefile.am (demos): 
	* demos/gtk-demo/combobox.c: Add a demo showing combo box 
	variations.

1047 1048 1049
	* demos/gtk-demo/Makefile.am (demos): 
	* demos/gtk-demo/pickers.c: Add a demo showing all picker widgets.

Matthias Clasen's avatar
Matthias Clasen committed
1050 1051 1052 1053
2005-05-24  Matthias Clasen  <mclasen@redhat.com>

	* demos/gtk-demo/iconview.c (do_iconview): Fix a typo.

1054 1055 1056 1057 1058
2005-05-24  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Handle
	gtk-alternative-button-order (setting it to TRUE).

1059 1060
2005-05-23  Matthias Clasen  <mclasen@redhat.com>

1061 1062 1063
	* gtk/gtktreeview.c (gtk_tree_view_search_init): Remove
	an unused variable.  (#305130, Jaap A. Haitsma)

1064 1065 1066 1067
	* gtk/gtkfilechooserdefault.c (filter_create): Don't grab
	the focus away from the file list when operating the filter
	combo with the pointer.  (#304844, Sven Neumann)

1068 1069
2005-05-23  Tor Lillqvist  <tml@novell.com>

1070 1071 1072
	* gdk/win32/gdkkeys-win32.c (handle_special): Map VK_APPS to
	GDK_Menu. (#172383, Ivan Wong)

1073
	* gdk/win32/gdkkeys-win32.c (handle_dead): If the keysym isn't one
Tor Lillqvist's avatar
Typo.  
Tor Lillqvist committed
1074
	of the special cases this function takes care of, use it as
1075 1076 1077
	such. This takes care of for instance the Bengali Virama, see bug
	#165723.

1078 1079
2005-05-20  Matthias Clasen  <mclasen@redhat.com>

1080 1081 1082
	* gtk/gtkimcontextsimple.c (check_table): Avoid a possible
	buffer overrun.  (#142444, Leonard Michlmayr)

1083 1084 1085
	* gtk/gtkfilesystem.c: Remove C99-isms (#304879, 
	Kazuki IWAMOTO)

1086 1087
2005-05-18  Matthias Clasen  <mclasen@redhat.com>

1088 1089 1090 1091
	* gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri): 
	Use the correct function to conver the uri to a path.  (#304565,
	Ismael Juma)

1092 1093 1094
	* gtk/gtkfilechooserbutton.c (dialog_response_cb): Handle the
	Cancel button properly.  (#304234, Sven Neumann)

1095 1096 1097 1098 1099 1100 1101 1102
2005-05-18  Anders Carlsson  <andersca@imendio.com>

	* gtk/gtktextview.c: (gtk_text_view_flush_scroll),
	(gtk_text_view_update_adjustments), (gtk_text_view_value_changed):
	* gtk/gtktextview.h:
	If the horizontal adjustment changes because of a change in the
	layout width, then do a complete redraw. This is because there
	might be right-aligned or centered text that needs to be redrawn.
Matthias Clasen's avatar
Matthias Clasen committed
1103

1104 1105
2005-05-18  Matthias Clasen  <mclasen@redhat.com>
	
1106 1107 1108
	* gtk/gtkwidget.c (gtk_widget_add_events): Try harder to set
	the event masks of descendent windows.  (#169821, Tommi Komulainen)

1109 1110 1111 1112
	* gtk/gtktreeview.c (gtk_tree_view_get_drop_column) 
	(gtk_tree_view_set_column_drag_info): Fix some errors in the
	handling of drop columns.  (#143355, John Finlay)

1113 1114 1115 1116 1117 1118
	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
	Remove the no longer needed workaround.

	* gtk/gtkwidget.c (widget_add_child_draw_rectangle): Only collect
	allocations of mapped children.

Matthias Clasen's avatar
Matthias Clasen committed
1119 1120 1121
	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_init): 
	Add a bug reference.

1122 1123 1124 1125 1126 1127 1128 1129 1130 1131
2005-05-18  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkevents-win32.c
	* gdk/win32/gdkkeys-win32.c
	* gdk/win32/gdkprivate-win32.h: Check the KF_EXTENDED bit in
	lParam of WM_KEY* messages to distinguish between left and right
	Control and Alt keys. Unfortunately, the right Shift key doesnt
	set KF_EXTENDED, so to distinguish between left and right Shift
	keys, check the scan code. (#304584)

1132 1133
2005-05-18  Matthias Clasen  <mclasen@redhat.com>

1134 1135 1136
	* gdk/x11/gdkproperty-x11.c (gdk_property_get): Warn if
	length overflows.  (#161520, Ian Wienand)

1137 1138 1139
	* gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name): Fix
	parameter names to make gtk-doc happy.

1140 1141 1142 1143
	* gtk/gtkscale.c (gtk_scale_class_init): Fix the default
	values of draw-value and value-pos to be the values we
	actually use in _init. (#304547, Mikael Hallendal)

1144 1145 1146 1147
	* gtk/gtkcellrendererpixbuf.c: Support named icons in
	cells by adding a icon-name property. (#165777, Anders
	Carlsson)

1148 1149 1150 1151
	* gtk/gtk.symbols:
	* gtk/gtktoolbutton.h: 
	* gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) 
	(gtk_tool_button_get_icon_name): Support named icons in 
1152 1153
	tool buttons by adding a icon-name property. (#116577, 
	Christian Neumair)
1154

1155 1156 1157 1158 1159 1160
	* gtk/gtk.symbols: 
	* gtk/gtkdnd.h: 
	* gtk/gtkdnd.c (gtk_drag_source_set_icon_name) 
	(gtk_drag_set_icon_name): New functions to support themed 
	drag icons.  (#116577, Christian Neumair)

1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173
2005-05-17  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkdrawable-x11.c (gdk_x11_ref_cairo_surface): 
	Update to changed cairo interface.

	* gdk/x11/gdkdrawable-x11.[ch]:
	Add _gdk_x11_drawable_update_size()
	
	* gdk/x11/gdkwindow-x11.c (gdk_window_resize) 
	(gdk_window_move_resize)
	* gdk/x11/gdkevents-x11.c (gdk_event_translate): 
	Call _gdk_x11_drawable_update_size().

1174 1175
2005-05-17  Matthias Clasen  <mclasen@redhat.com>

1176 1177 1178
	* gtk/gtktextview.c (cursor_blinks): Don't blink the cursor
	if the text view is not editable.  

1179 1180 1181 1182 1183
	* gtk/gtkcombobox.c (gtk_combo_box_list_button_released): Keep
	the popup posted if the button is released over the cellview.
	This matches the behaviour of other combo box implementations.  
	(#171378)
	
1184 1185 1186
	* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
	when recursing.  (#153682, Felipe Heidrich)

1187 1188
2005-05-16  Matthias Clasen  <mclasen@redhat.com>

1189 1190 1191
	* gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up 
	and GDK_Page_Down twice.  (#168333, Hazael Maldonado Torres)

1192
	* gtk/gtkentry.c (cursor_blinks): Don't blink the cursor if 
1193
	the entry is not editable.  (#304171, Nikos Kouremenos)
1194
	
1195 1196 1197 1198
	* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_constructor): 
	Make sure the action of the button and the dialog are in sync,
	when the dialog is provided by the app.  (#303987, David A Knight)

1199 1200 1201
	* gdk/gdkpango.c (gdk_pango_renderer_get_default): Fix a typo
	in the docs.  (#303940, Masao Mutoh)

1202 1203
	* configure.in (GTK_DOC_CHECK): Check for gtk-doc 1.4.

1204 1205 1206
	* gtk/gtktoggleaction.c (connect_proxy): Be more careful when
	casting.  (#304089, Philip Langdale)

1207 1208 1209
	* gtk/gtkstatusbar.c (gtk_statusbar_size_allocate): Only shrink
	the label if we need to.  (#169390, Felix Riemann)

1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223
Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>

	* gdk/gdkdraw.c
	* gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
	declaration.

	* gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
	call gdk_cairo_set_source_color() with a color.

	* gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.

	* tests/testiconview.c (main): cast args of drag functions to the
	appropriate type.

1224 1225 1226 1227 1228 1229 1230
2005-05-13  Owen Taylor  <otaylor@redhat.com>

	* gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.

	* gdk/x11/gdkpixmap-x11.[ch] gdk/gdk.symbols: Export 
	gdk_pixmap_impl_x11_get_type(), needed in gdkdrawable-x11.c.
	
1231 1232 1233 1234 1235 1236
2005-05-11  Owen Taylor  <otaylor@redhat.com>

	* tests/testgtk.c (on_alpha_window_expose): Fix to use
	gdk_cairo_create(). (create_alpha_window): Hook up "response"
	to close the window.

1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291
2005-05-11  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
	to draw the swatch in to avoid having an extraneous window.
	
	* gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
	color when !has_opacity.

2005-05-10  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
	files for Cairo convenience functionality.

	* gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
	convenience functions to add GdkRectangle, GdkRegion to a cairo path.

	* gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c 
	gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().

	* gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
	gdk_drawable_create_cairo_context() to gdk_cairo_create().

	* gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
	Rename gdk_pixbuf_set_as_cairo_source() to 
	gdk_cairo_set_source_pixbuf().

	* gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
	gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
	Adjust for renames.

	* gdk/gdk.symbols: Update.

	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix 
	coordinate system problem that was causing the wrong portions
	to be invalidated.

	* gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
	gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
	gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
	gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
	gtk/gtkcellview.c (gtk_cell_view_expose)
	gtk/gtkdnd.c (gtk_drag_highlight_expose)
	gtk/gtkentry.c (gtk_entry_draw_text) 
	gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.

	* gtk/gtkcalendar.[ch]: Beat into something roughly resembling
	GTK+ style ... use instance-private data and standard names for
	private structure, etc. Move function docs inline.

	* gtk/gtkcalendar.[ch]: Switch to drawing everything in
	expose. Switch drawing to Cairo.

	* gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
	gtk_calendar_freeze/thaw

1292 1293 1294 1295 1296 1297 1298
2005-05-10  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
	that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
	== gdk_screen_get_default(), as that might return NULL when this
	function is called.

Matthias Clasen's avatar
Matthias Clasen committed
1299 1300 1301 1302 1303
2005-05-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the
	padding in RTL mode.  (#303572, Maciej Katafiasz)

1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330
2005-05-09  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br): 
	Fill in unused bits so they can be used for the depth-32 target case.
	Rewrite so that that gives a marginal speedup rather than a
	marginal slowdown. (on x86)

	* gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
	Add gdk_screen_get_rgba_colormap/visual to get a visual for
	windows with an alpha channel, if one exists.

	* gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
	Stub out gdk_screen_get_rgba_colormap/visual.

	* gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
	"unused" wasn't right for depth == 32, since it depended on
	shifting by 32.

	* gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
	Keith Packard,
	http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)

	* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
	Implement again, without using Xft.

	* tests/testgtk.c: Add a test for windows with an alpha channel.

Matthias Clasen's avatar
Matthias Clasen committed
1331 1332 1333 1334
2005-05-09  Matthias Clasen  <mclasen@redhat.com>

	* autogen.sh: Revert accidental commit.

1335 1336 1337 1338 1339 1340 1341 1342 1343
2005-05-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkcolor.c (gdk_cairo_set_source_color): 
	* gdk/gdkimage.h: 
	* gdk/gdkdraw.c: 
	* gdk/gdkcolor.h: 
	* gdk/gdkcursor.h: 
	* gdk/x11/gdkcolor-x11.c: Small documentation additions.

1344 1345
2005-05-07  Matthias Clasen  <mclasen@redhat.com>

1346 1347 1348 1349 1350
	* gtk/gtkscrolledwindow.h: 
	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_hscrollbar): 
	(gtk_scrolled_window_get_cscrollbar): Change the return 
	type to GtkWidget*, proposed by Owen Taylor. 

1351 1352 1353 1354
	* gdk/x11/gdkscreen-x11.c (gdk_screen_get_width_mm) 
	(gdk_screen_get_height_mm): Fix typos in the docs.  (#303389,
	Masao Mutoh)

1355 1356 1357 1358 1359
2005-05-07  Matthias Clasen <mclasen@redhat.com>

	* gtk/gtkiconview.c: Fix a copy-and-paste accident, spotted
	by Owen Taylor.

1360 1361 1362 1363 1364
2005-05-07  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkgc.c (gc_get_foreground): Get the foreground color, not
	the background color.

1365 1366 1367 1368 1369 1370 1371 1372
2005-05-07  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): 
	Change prototype to match cairo_set_source_surface().

	* gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c
	gtk/gtkhsv.c tests/testcairo.c.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
1373 1374 1375 1376 1377 1378 1379 1380 1381
2005-05-06  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	* gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
	types if this is an AFS directory.
	(fill_in_names): If we are in an AFS directory, set the MIME type
	blindly to "x-directory/normal".

1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395
2005-05-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always
	initialize child-visible to FALSE, otherwise we may end up
	with the wrong page visible initially.  (#302283, Patrik Fimml)

	* gtk/gtktreeview.c (gtk_tree_view_draw_arrow): Make expanders
	appear insensitive in insensitive treeviews. 

2005-05-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktoolbar.c: Fix a typo in the docs.  (#303024, 
	Morten Welinder)

Matthias Clasen's avatar
Matthias Clasen committed
1396 1397 1398 1399 1400 1401
2005-05-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtkiconview.[hc]: Add DND support similar to the DND
	support in the tree view.  (#150270)

Matthias Clasen's avatar
Matthias Clasen committed
1402 1403
2005-05-05  Matthias Clasen  <mclasen@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
1404 1405 1406
	* gtk/gtktreednd.h: 
	* gtk/gtkwidget.h: Small cleanups.

Matthias Clasen's avatar
Matthias Clasen committed
1407 1408 1409
	* gtk/gtktreeview.c (gtk_tree_view_get_dest_row_at_pos): Fix
	a typo.

1410 1411
2005-05-04  Owen Taylor  <otaylor@redhat.com>

Matthias Clasen's avatar
Matthias Clasen committed
1412 1413 1414 1415 1416 1417
	* gdk/x11/gdkevents-x11.c gdk/x11/gdkwindow-x11.h: Fix a bug
	in focus tracking when we move between has_pointer_focus and 
	has_focus_window directly. (#109246, Billy Biggs, Niko Tyni 
	and others)

	* gdk/x11/gdkevents-x11.c: Also fix some confusion that could
Owen Taylor's avatar
Owen Taylor committed
1418 1419 1420
	happen in the case of no window manager + keyboard grabs, by
	moving to a more consistent model of when we pay attention to
	mode=NotifyGrab/NotifyUngrab events.
1421 1422 1423 1424
	
	* docs/focus_tracking.txt: Extensive writeup about how to track
	focus under X11.

1425 1426 1427 1428 1429
Wed May  4 13:21:41 2005  Søren Sandmann  <sandmann@redhat.com>

	* tests/testcairo.c (draw): Replace cairo_show_surface() uses with
	cairo_set_source_surface()/cairo_paint();

1430 1431 1432 1433 1434 1435 1436 1437
2005-05-04  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)
	* gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values,
	_gdk_win32_gc_new, _gdk_windowing_gc_set_clip_region,
	gdk_win32_hdc_get): Minor fixes to make Win32 backend compile
	again.

1438 1439
2005-05-03  Matthias Clasen  <mclasen@redhat.com>

1440 1441
	* gtk/gtkfilesystem.c: 
	* gtk/gtkcelleditable.c: 
1442 1443 1444
	* gtk/gtktreemodel.c: Avoid getting the interface struct
	twice in the same function.  (#300513, Billy Biggs)

1445 1446 1447 1448 1449
	* gtk/gtkscrolledwindow.h:
	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_get_vscrollbar): 
	* gtk/gtk.symbols: Add getters for the scrollbars.  (#167181,
	Billy Biggs)	

1450 1451 1452 1453
	* gtk/gtkdialog.h: 
	* gtk/gtkdialog.c (gtk_dialog_get_response_for_widget): 
	Make this function public.  (#170748, Morten Welinder)

Federico Mena Quintero's avatar
Federico Mena Quintero committed
1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472
2005-05-02  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	Fixes #301068:

	* gtk/gtkfilesystemunix.c (struct _GtkFileSystemUnix): Add fields
	to store struct stat for /afs and /net, and boolean fields to say
	whether these are valid.
	(struct _GtkFileFolderUnix): Added a boolean is_network_dir field.
	(gtk_file_system_unix_get_folder): Fill in the is_network_dir
	field of the folder structure.
	(fill_in_names): If the folder is a network directory, create a
	fake struct stat for its entries.
	(fill_in_stats): Don't stat() the children of network directories.

	* gtk/gtkfilechooserdefault.c (list_mtime_data_func): If the mtime
	is 0, use "Unknown" for the cell's displayed text.

1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521
2005-04-28  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c: Add a draw-border style property to allow
	themes to draw outside the widget's allocation.

	* gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
	that were working around the clip-leakage bug in Cairo.

	* gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
	save/fill/restore.

	* gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
	That updates a Cairo context to match a GC.

	* gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
	for tiles/stipples/clipping to gdk_draw_glyphs(), 
	gdk_draw_trapezoids().

	* gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
	implementation of stipples. Use one cairo_t across the entire
	drawing operation. Replace cairo_matrix_create() with 
	stack-allocated matrices.

	* gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c 
	gdk/win32/gdkgc-win32.c: Save various aspects of the 
	GC state (fill, tile, stipple, foreground, background, clip region)
	in instance-private-data for future use. Add getters.
	Get rid of _gdk_windowing_gc_get_foreground() function implemented 
	by the backends.

	* gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
	gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
	_gdk_gc_init() to do initial setup of the GC from values;
	fixes some problems from drawable redirection.

	* gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
	gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move 
	gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into 
	the generic code, add _gdk_windowing_gc_copy(), 
	_gdk_windowing_gc_set_clip_region() to do backend specific
	stuff.

	* gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
	gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
	gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
	Don't duplicate state that now is stored by the generic code.

	* gdk/gdk.symbols Update

Matthias Clasen's avatar
Matthias Clasen committed
1522 1523 1524 1525 1526 1527 1528 1529 1530
2005-05-02  Matthias Clasen  <mclasen@redhat.com>

	* tests/testiconview.c: Test cell renderers.

	* gtk/gtk.symbols: Add new functions.

	* gtk/gtkiconview.[hc]: Implement GtkCellLayout and use
	cell renderers for drawing and editing. (#148144, #160242)

Matthias Clasen's avatar
Matthias Clasen committed
1531 1532
2005-05-02  Matthias Clasen  <mclasen@redhat.com>

1533 1534 1535 1536
	* gtk/gtkcellrenderertext.c (get_size): Return a sufficient
	width for cases where pango_layout_get_pixel_extents() returns
	a rectangle with nonzero x. 

Matthias Clasen's avatar
Matthias Clasen committed
1537 1538
	* gtk/gtkselection.c: Small doc fixes.

Matthias Clasen's avatar
Matthias Clasen committed
1539 1540 1541
	* gtk/gtkmenushell.c (gtk_menu_shell_set_take_focus): 
	(gtk_menu_shell_get_take_focus): Fix up the docs a bit.

1542 1543 1544 1545 1546 1547 1548
2005-05-02  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkmain.c (do_post_parse_initialization): return silently if
	"gtk_initialized" is TRUE. Re-enables calling GTK's init functions
	multiple times when using gtk_get_option_group(), just as one can
	call gtk_init() multiple times without doing any harm.

1549 1550 1551 1552 1553 1554
2005-05-01  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextview.c (gtk_text_view_expose_event): Propagate
	the event to unanchored children in the text window.  
	(#302494, Stephen Kennedy)

1555 1556 1557 1558 1559
2005-04-30  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkdnd-win32.c (gdk_dropfiles_filter): Take
	multi-monitor offset into account. (#302525)

1560 1561
2005-04-29  Matthias Clasen  <mclasen@redhat.com>

1562 1563 1564
	* gtk/gtkradioaction.c: Make the docs build.  (#302230,
	Ali Akcaagac)

1565 1566 1567
	* gtk/gtkiconview.c (gtk_icon_view_map): Get rid of this
	function, instead show the bin_window when it is created.

1568 1569 1570
	* gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't 
	grab focus to unrealized widgets.  (#302240, Philip Langdale)

1571 1572
	* gtk/gtktreeview.c (gtk_tree_view_state_changed): Set
	background upon state changes.  (#301651, Billy Biggs)
1573 1574
	(gtk_tree_view_get_path_at_pos): Take RTL into account
	when iterating over the columns.  (#302163)
1575
	
Matthias Clasen's avatar
Matthias Clasen committed
1576 1577 1578 1579 1580
	* configure.in: Check for nm.

	* gtk/Makefile.am: Use $(NM), not nm directly. (#301299, 
	Nguyen Thai Ngoc Duy)

1581 1582 1583 1584
	* gtk/gtkiconview.c (gtk_icon_view_move_cursor_start_end): Use
	the internal unselect_all function, since we need the unselection
	to happen even in browse mode.  (#300995, Mathias Hasselmann)

1585 1586 1587 1588 1589 1590
	* gtk/gtkuimanager.c (update_node): Use g_object_notify() instead
	of triggering a ::notify by re-setting the property.  (#300982,
	Sven Neumann)

	* gtk/gtkaction.c (connect_proxy): Use gtk_action_sync_tooltip().

1591 1592 1593 1594
	* gtk/gtkiconview.c (gtk_icon_view_scroll_to_item): Also
	scroll horizontally when necessary, and keep the northwest
	corner of the item visible.  (#300913, Mathias Hasselmann)

Matthias Clasen's avatar
Matthias Clasen committed
1595 1596
	* tests/testiconview.c: Add some more tests.

1597 1598 1599
	* gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash
	if the path does not point to a row in the model.  (#300909,
	Mathias Hasselmann)
Matthias Clasen's avatar
Matthias Clasen committed
1600 1601
	(gtk_icon_view_rows_reordered): Re-layout here.  (#301009, 
	Mathias Hasselmann)
1602

1603 1604 1605 1606 1607 1608
	* tests/testtext.c: Add some more attribute tests.

	* gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation
	of the rise property. String change, but it is more important to
	be correct than to be translated.  (#301740)

1609 1610 1611 1612 1613 1614 1615 1616
2005-04-25  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkfilesystemwin32.c
	(gtk_file_system_win32_volume_get_display_name): Get volume name
	also on Win9x. (#301798, Daniel Atallah)
	(canonicalize_filename): Add explicit braces to silence compiler
	warning.

1617 1618 1619 1620 1621 1622 1623 1624
2005-04-22  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkmain.c: Initailize gettext before use. Calling
	bindtextdomain() and bind_textdomain_codeset() in
	do_post_parse_initialization() is too late. Put the calls in a new
	function gettext_initialization(), and call that from
	gtk_init_with_args() and gtk_parse_args(). Fixes #170948 for
	GTK+'s part, but the same problem occurs also at least in
Tor Lillqvist's avatar
Typo.  
Tor Lillqvist committed
1625
	atk. Thanks to Robert Ögren, Daniel Atallah and Kevin Stange.
1626

1627 1628 1629 1630 1631
2005-04-19  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	* gdk/win32/gdkfont-win32.c (gdk_font_load_internal): Match
	character height instead of cell height. Fix #301228.

Federico Mena Quintero's avatar
Federico Mena Quintero committed
1632 1633 1634 1635 1636 1637 1638 1639
2005-04-18  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	* gtk/gtkfilechooserdefault.c (remove_selected_bookmarks): Remove
	obsolete assertion that the selected row can't be a volume; this
	is handled by the "removable" column now.  Fixes #301017.

1640 1641 1642 1643 1644 1645 1646
2005-04-18  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
	* gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
	gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
	setting color and opacity. (#301066, Vincent Noel)
 
Federico Mena Quintero's avatar
Federico Mena Quintero committed
1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657
2005-04-15  Federico Mena Quintero  <federico@ximian.com>

	Merged from gtk-2-6:

	* gtk/gtkfilechooserdefault.c (pending_select_paths_process):
	Patch from Christian Neumair <chris@gnome-de.org>; only select the
	first row if we are in OPEN mode.  The only other case we were
	letting pass through was SELECT_FOLDER, but selecting the first
	row when changing folders confuses people when folders are
	actually being selected.  Fixes #171885.

Matthias Clasen's avatar
Matthias Clasen committed
1658 1659 1660 1661 1662 1663 1664 1665
2005-04-13  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
	Revert the fix for #169870, adjust the documentation instead. 

	* gtk/gtkactiongroup.c (gtk_action_group_add_action_with_accel): 
	Revert the fix for #170727.	

Ivan, Wong Yat Cheung's avatar
Ivan, Wong Yat Cheung committed
1666 1667 1668 1669 1670 1671 1672 1673 1674 1675
2005-04-11  Ivan, Wong Yat Cheung  <email@ivanwong.info>

	Fix #300218:

	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Fix
	C99ism.

	* gtk/updateiconcache.c: Guard inclusion of unistd.h and
	utime.h.

1676 1677
2005-04-09  Matthias Clasen  <mclasen@redhat.com>

1678 1679 1680 1681 1682
	* gdk/x11/gdkinput-xfree.c:
	* gdk/x11/gdkinput-none.c:
	* gdk/gtk.symbols: Some more fixes necessary to 
	make building with gcc 4 work.

1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696
	Add 16x16 versions of the zoom icons and of 
	GTK_STOCK_INDEX. Some of the images were taken from 
	the hicolor icon theme, and were originally created 
	by Jakub Steiner and Tuomas Kuosmanen. 	(#167515, 
	Vincent Noel)
	
	* gtk/stock-icons/stock_index_16.png:
	* gtk/stock-icons/stock_zoom_1_16.png:
	* gtk/stock-icons/stock_zoom_fit_16.png:
	* gtk/stock-icons/stock_zoom_in_16.png:
	* gtk/stock-icons/stock_zoom_out_16.png: New images.
	
	* gtk/stock-icons/Makefile.am: Add the new images. 

1697 1698 1699 1700 1701 1702 1703
	* gtk/gtkimage.c (gtk_image_calc_size, gtk_image_expose): 
	Don't display too many broken images.  (#169870, Roman
	Kagan, patch by Ivan Wong)

	* gtk/gtkwidget.c (gtk_widget_unparent): Remove debugging
	output.  (#300013, Tommi Komulainen)

1704 1705
2005-04-08  Matthias Clasen  <mclasen@redhat.com>