1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 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 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 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 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793
|
2007-09-25 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 3.0.0 ===
2007-09-21 Michael Natterer <mitch@imendio.com>
* src/sapwood-rc-style.c (sapwood_rc_style_parse): Speed up parsing a
little by replacing g_list_append with prepend
(sapwood_rc_style_merge): avoid a memset done by g_list_alloc() by
using g_list_append() instead (NB#69921)
2007-09-17 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.11 ===
2007-09-17 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): Ensure there's a mask
available also when centering pixmaps with masks. Otherwise we'll
render uninitialized data.
2007-09-14 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_check_borders,
theme_pixbuf_set_filename, theme_pixbuf_set_border): Add debugging
helper to check image borders validity while parsing rather than
postponing it to loading. Due to performance hit of loading every
image one needs to build with -DENABLE_DEBUG
2007-09-11 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.10 ===
2007-09-11 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_equal, theme_pixbuf_canonicalize):
Move options checking to canonicalization which can be reported to the
user more conveniently.
* src/theme-pixbuf.h (theme_pixbuf_canonicalize): Add return value to
indicate mismatch in options.
* src/sapwood-rc-style.c (validate_pixbuf, CHECK_IMAGE,
theme_parse_image): Turn the old macro to a function and add warning
about options mismatch.
2007-09-11 Tommi Komulainen <tommi.komulainen@nokia.com>
Replace GCache of pixmaps with hash of refcounted ThemePixbufs.
Since we already have 1:1 mapping between ThemePixbuf and
SapwoodPixmap caching the higher level object is more efficient.
This also enables checking earlier whether two files are referenced
with different border values (which is not supported by the server.)
* src/theme-pixbuf.h (ThemePixbuf, theme_pixbuf_canonicalize): Updated
bitfield and added the function.
* src/sapwood-render.c (pixmap_cache, theme_pixbuf_copy,
pixmap_cache_value_new): Removed
(pixbuf_hash, theme_pixbuf_canonicalize, theme_pixbuf_ref): Added
(theme_pixbuf_destroy, theme_pixbuf_set_filename,
theme_pixbuf_get_pixmap): Adapted
* src/sapwood-rc-style.c (theme_parse_image): Canonicalize
2007-09-11 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-server.c (process_buffer, cleanup_sock_removed): Add
reference counting to pixmaps. It is already possible for one client
to request the same pixmap multiple times, but the first release will
invalidate all instances.
2007-09-11 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (sapwood_pixmap_get_for_file)
* src/sapwood-render.c (theme_pixbuf_set_filename): Resolve symbolic
links before using the path as cache key. Otherwise when switching
themes the client side can consider old and new files different and
request new pixmap for the new theme. The symlink is resolved before
making the request to the server, and if it resolves to the same file
as the old one, we get a shared handle from the server. And since
there's no server side reference counting, releasing the old pixmap
will destroy the new one, causing BadPixmap very shortly.
(NB#64446)
2007-09-05 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.9 ===
2007-09-05 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_layout, sapwood_style_class_init): Override
draw_layout to draw the layout without any fancy effects for
insensitive state. (NB#66054)
2007-09-05 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.8 ===
2007-09-05 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): When limiting the mask
to (smaller) clip rectangle, *really* calculate the mask offset
correctly. Fixes clipping in menus.
2007-09-05 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (sapwood_pixmap_get_for_file): Trap and
print X errors individually to help debugging.
2007-08-24 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (check_child_position): Initialize the position
variable before bitwise ORing it.
2007-08-23 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): When painting centered
pixmaps don't expand but draw at most the size of the pixmap. Fixes
uninitialized garbage appearing on screen when painting an arrow that
is downscaled only in one direction.
2007-08-23 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (sapwood_pixmap_render_rects_internal): handle
mask == NULL without generating warnings
2007-08-23 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): When limiting the mask
to (smaller) clip rectangle, calculate the mask offset correctly.
2007-08-22 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.7 ===
2007-08-22 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (get_window_for_shape, draw_simple_image,
draw_expander): Assume 'widget' can be NULL and don't crash. Pointed
out by Frank Li.
2007-08-22 Lucas Rocha <lucas.rocha@nokia.com>
* src/sapwood-draw.c (maybe_check_submenu_state): cover menu items in
hildon desktop custom menu widget (NB#60575)
2007-08-22 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_arrow): Ignore arrows of type none. (Patch
from Xan, added #ifdef guard) (NB#61844)
* src/theme-pixbuf.h (ThemeMatchData): Replace GtkArrowType with
'guint : 2' to silence compiler warnings. (GtkArrowType was extended
with 'NONE' which doesn't make sense in rc files.)
2007-08-22 Tommi Komulainen <tommi.komulainen@nokia.com>
* HACKING
* src/sapwood-proto.h (PixbufOpenRequest)
* src/theme-pixbuf.h (ThemePixbuf): increase the size of the border
variables from 8 to 16 bits to allow larger borders. (NB#63819)
NOTE: this breaks the binary protocol between client and the server
2007-08-22 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (SapwoodPixmap, sapwood_pixmap_get_for_file):
remove redundant border_left and border_top members.
2007-07-04 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.6 ===
2007-07-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (sapwood_pixmap_render_rects): Rename to
sapwood_pixmap_render_rects_internal.
* src/sapwood-pixmap.h (sapwood_pixmap_render_rects): Add width and
height parameters in order to do downscaling.
* src/sapwood-pixmap.c (sapwood_pixmap_render_rects): When rendering
to a target smaller than the pixmap, paint first at least as big as
the pixmaps and scale down to target size using cairo.
* configure.in: bump gtk+ dependency to 2.8 due to cairo
2007-07-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): Refactor painting of
centered pixmaps using sapwood_pixmap_render_rects()
* src/sapwood-pixmap.h (sapwood_pixmap_render)
* src/sapwood-pixmap.c (sapwood_pixmap_render, get_scratch_gc): Remove
as obsolete.
2007-07-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): When clamping the mask
to clip mask, do not change the area to paint.
2007-06-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): Remove unused variables.
2007-06-08 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.5 ===
2007-06-08 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (maybe_check_cursor_position): Remove special
active focus handling, only update 'shadow' for passive focus. Improves
handling cursor separately from selection.
* README
* demos/treeview.gtkrc
* demos/images/treeview-*: Updated
2007-05-31 Xan Lopez <xan.lopez@nokia.com>
* src/sapwood-draw.c (check_child_position, check_buttonbox_child_position):
use GTK_WIDGET_DRAWABLE instead of GTK_WIDGET_VISIBLE to check if a widget
is currently visible in the screen.
2007-04-19 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.4 ===
2007-04-19 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-server.c (extract_pixmap_single): Revert the white
background initialization as it adds unwanted tint to the graphics.
Reopens MB#1216
2007-04-18 Tommi Komulainen <tommi.komulainen@nokia.com>
* demos/Makefile.am
* demos/gradient.c
* demos/gradient.gtkrc
* demos/images/gradient.png: Add testcase for gradient
* src/sapwood-server.c (extract_pixmap_single): To avoid uninitialized
pixels when loading images with alpha channel, paint the pixmap white
first. MB#1216
2007-04-18 Tommi Komulainen <tommi.komulainen@nokia.com>
* demos/Makefile.am
* demos/images/hbbox.png: remove ugly solid black image
* demos/images/hbbox-*.png: use proper mask for the corners
* demos/buttonbox.gtkrc: use the all-round image as fallback
2007-04-18 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_simple_image): Add missing cast for
gtk_container_get_children
2007-04-17 Xan Lopez <xan.lopez@nokia.com>
* README:
* demos/buttonbox.gtkrc:
Update the documentation and the demo to take into account maemo-position-theming.
2007-04-17 Xan Lopez <xan.lopez@nokia.com>
* src/sapwood-draw.c (draw_simple_image): Check that the maemo-position-theming
property exists before accessing it.
2007-04-16 Xan Lopez <xan.lopez@nokia.com>
* src/sapwood-draw.c (draw_simple_image): Don't take internal children
into account for the position theming.
2007-04-13 Xan Lopez <xan.lopez@nokia.com>
* src/sapwood-draw.c: Add general positioning theming based on GTK+
"maemo-position-theming" style property.
2007-04-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* demos/treeview.c (create_treeview): Enable rubberbanding only with
gtk >= 2.10.0
2007-04-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (maybe_check_button_position): rename to
check_child_position and generalize to handle a list of widgets.
(check_buttonbox_child_position): new function to get the list of
child widgets from buttonbox
(draw_simple_image): adapt to use the new function
2007-03-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.3 ===
2007-03-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* Makefile.am (EXTRA_DIST): Remove forgotten NEWS.pixbuf
* src/Makefile.am (EXTRA_DIST): Remove forgotten README.pixbuf and
README.server
2007-03-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (maybe_check_submenu_state, draw_box):
Support active/passive focus on GtkMenuItems, use passive focus when
the focus is in an item in a submenu.
* README: add GtkMenuItem notes
2007-03-09 Tommi Komulainen <tommi.komulainen@nokia.com>
* AUTHORS
* NEWS.pixbuf
* src/ChangeLog
* src/README.pixbuf
* src/README.server: clean up and remove obsolete documentation
* HACKING: add documentation about the internals
2007-03-08 Tommi Komulainen <tommi.komulainen@nokia.com>
* README: replace with more detailed and relevant information
2007-02-20 Xan Lopez <xan.lopez@nokia.com>
* sapwood-draw.c (draw_option, draw_check):
Add special casing for GtkCheckButton and GtkRadioButton to use
the correct graphics in the theme when the widgets have focus.
2007-02-06 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.2 ===
2007-02-06 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_simple_image, get_window_for_shape): Check
the paintable area size and apply the shape mask only when painting
the whole window to avoid another case of infinite expose loop.
2007-01-31 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_expander): Added to handle painting
GtkExpander and treeview row expanders. Reuses arrow theming rules for
simplicity.
2007-01-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.1 ===
2007-01-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* demos/treeview.gtkrc: Simplify treeview theming example using
wildcards
2007-01-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (match_theme_image): Add simple pattern matching
for the 'detail' to simplify treeview theming. Only leading wildcard
is supported. In gtkrc 'detail = "*_start"' will match all details
ending with "_start" such as "cell_even_start", "cell_odd_start",
"cell_even_ruled_start", etc.
2007-01-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* demos/Makefile.am
* demos/treeview.c
* demos/treeview.gtkrc
* demos/images/treeview-*.png: Example for treeview active / passive
focus theming
2007-01-29 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (maybe_check_cursor_position)
(draw_flat_box): When painting a treeview check if painting the cursor
row, and adjust matching rules accordingly for active/passive focus
Focus row background:
function = FLAT_BOX
state = ACTIVE
shadow = NONE for active, OUT for passive focus
2007-01-27 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (get_window_for_shape): Consider setting the
window shape mask only when painting to widget->window, otherwise it
can cause an infinite expose loop.
2007-01-25 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.91.0 ===
2007-01-25 Tommi Komulainen <tommi.komulainen@nokia.com>
* Makefile.am (SUBDIRS)
* configure.in (AC_OUTPUT): add demos directory
* demos/run-demo: add wrapper script for running demos without
installing libsapwood.so
* demos/buttonbox.c
* demos/buttonbox.gtkrc
* demos/images/hbbox*.png: Example for dialog button theming
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
Implement dialog buttons using explicit "position" keyword. The
position is calculated only for buttons in button boxes for now.
Specific graphics can be applied with something like:
position = LEFT,TOP,RIGHT,BOTTOM (solitary)
position = TOP,LEFT,BOTTOM (leftmost)
position = TOP,BOTTOM (middle)
position = TOP,RIGHT,BOTTOM (rightmost)
* src/sapwood-draw.c (match_theme_image): check position flags
(maybe_set_dialog_button_details, draw_simple_image): rename
maybe_set_dialog_button_details to maybe_check_button_position
(maybe_check_button_position): don't check or modify the detail,
instead use the position match flags
* src/sapwood-rc-style.c (theme_symbols): add "position"
(theme_parse_position): parse "position = LEFT,RIGHT,TOP,BOTTOM"
(theme_parse_image): parse "position"
* src/theme-pixbuf.h: add TOKEN_POSITION and ThemePositionfFlags
(ThemeMatchFlags): add THEME_MATCH_POSITION
(ThemeMatchData): increase the flags size to hold
'THEME_MATCH_POSITION' and add ThemePositionfFlags
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
Adjust the detail for buttons in button boxes depending on the button
position inside the button box for enhanced theming (special rounding
for outmost button edges.) For horizontal button box we use the
following details to work with existing themes:
- osso_button_nesw
- osso_button_nsw
- osso_button_nes
- osso_button_ns
vertical:
- osso_button_nesw
- osso_button_new
- osso_button_esw
- osso_button_ew
NOTE: this loses the ability to theme the 'default' response button
differently from the others. We could use 'osso_buttondefault_nesw' or
similar but that would then require duplicate theme declarations or
risk really bad looking theming when the 'default' style is used
without matching graphics. Some way to handle fallbacks
(buttondefault-shaped - button-shaped - buttondefault - button) could
be useful.
* src/sapwood-draw.c (maybe_set_dialog_button_details,
draw_simple_image): When painting GtkButtons check if it's contained
in a button box, and if so figure out the position
(solitary,left,right,middle - similarly for vertical) and replace the
detail with specific ones matching the position.
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (sapwood_pixmap_get_pixmap): Switch x/y indices
the right way around.
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-rc-style.c (theme_symbols): Remove unused tokens
TOKEN_D_POLYGON, TOKEN_D_OVAL, TOKEN_D_STRING, TOKEN_D_CROSS,
TOKEN_D_RAMP, TOKEN_D_ENTRY
* src/theme-pixbuf.h: rename unused tokens to TOKEN_UNUSED_*
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
Pass pixmaps directly instead of reverse engineering them from
coordinates
* src/sapwood-pixmap.h (sapwood_pixmap_get_pixmap)
* src/sapwood-pixmap.c (get_pixmaps, sapwood_pixmap_get_pixmap):
Export a function for getting pixmap and mask for each square
* src/sapwood-pixmap.c (sapwood_pixmap_render_rects)
* src/sapwood-pixmap.h (SapwoodRect)
* src/sapwood-render.c (theme_pixbuf_render): replace source rectangle
with pixmap and mask pointers
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_simple_image,draw_gap_image): remove unused
allow_setbg parameter
(draw_shadow,draw_arrow,draw_arrow,draw_arrow,draw_diamond,draw_box,
draw_flat_box,draw_check,draw_option,draw_tab,draw_extension,draw_focus,
draw_slider,draw_handle): update callers
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_simple_image, draw_gap_image): replace
deprecated gdk_window_get_size() call with gdk_drawable_get_size()
2007-01-24 Tommi Komulainen <tommi.komulainen@nokia.com>
Export only symbols needed for the theme engine ABI
* src/sapwood-pixmap.h
* src/sapwood-proto.h
* src/sapwood-rc-style.h
* src/sapwood-style.h
* src/theme-pixbuf.h: Tag internal functions with G_GNUC_INTERNAL to
avoid symbol leakage.
* src/Makefile.am: Add check target to verify the ABI.
2007-01-24 Jose Dapena Paz <jdapena@igalia.com>
* src/sapwood-server.c (extract_pixmap_single, main,
get_display_depth): use system default visual depth for all pixmaps.
This avoids crashing when running maemo desktop in a 24 bits color
depth X server (bug #856).
2006-10-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.43 ===
2006-10-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): Limit the mask to
clip_rect size to avoid allocating huge pixmaps.
2006-10-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c (theme_pixbuf_render): Trap X errors to avoid
BadAlloc when trying to allocate *huge* bitmaps (600x33000 GtkFrame
in a viewport) NB#35602
2006-10-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/Makefile.am (libsapwood_la_CFLAGS): Added to define G_LOG_DOMAIN
2006-06-13 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.24 ===
* src/sapwood-server.c (pixbuf_open_response_destroy): Don't crash on
NULL, it's a valid parameter when image loading fails.
(process_buffer): Failure to load an image is not a client error, do
not disconnect the client.
N#32525
2006-05-12 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.19 ===
2006-05-10 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/theme-pixbuf.h (theme_pixbuf_render): Return FALSE when
rendering fails for any reason
* src/sapwood-draw.c (draw_simple_image): If rendering fails, do not
apply window shape mask as it's most likely garbage
* src/sapwood-render.c (pixmap_cache_value_new,
theme_pixbuf_get_pixmap, theme_pixbuf_render): Do not exit, only warn
and return error code, if pixmaps can not be loaded (someone removed
the theme in use?)
N#26863
2006-05-10 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.18 ===
2006-04-27 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-rc-style.c (theme_parse_image): Use g_new0 rather than
g_malloc to make sure fields are initialized.
* src/sapwood-pixmap.c (sapwood_pixmap_get_for_file): Initialize the
buffer to silence valgrind.
N#27967
2006-04-27 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_focus): Use state parameter when matching
images for focus to allow more flexible, state-dependent focus
theming. N#23070
2006-04-24 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.17 ===
* src/sapwood-pixmap.c(sapwood_pixmap_free): Do not unref NULL mask.
N#27515
2006-04-12 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.14.1 ===
* src/*.c: #include <config.h> to get configure settings correctly...
Duh! N#26389
2006-04-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 2.14 ===
* configure.in
* NEWS: Updated
2006-04-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* Makefile.am (MAINTAINERCLEANFILES): Add compile and depcomp.
* src/Makefile.am (sapwood_server_CFLAGS): Add dummy cflags to work
with newer autotools.
2006-04-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c (sapwood_pixmap_render_rects): Use clip mask
only if one was drawn using the tile masks from theme.
* src/sapwood-server.c (extract_pixmap_single): Create masks only for
pixbufs with alpha.
2006-04-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (draw_simple_image, get_window_for_shape): Use
flag from gtkrc to figure out need for shape mask.
* src/sapwood-rc-style.c (theme_symbols, theme_parse_shaped,
theme_parse_image): Add 'shaped' (default=FALSE) token to explicitly
enable support for shaped windows from gtkrc.
* src/theme-pixbuf.h (ThemeImage): Trade one bit from 'refcount' to
hold the value for TOKEN_SHAPED (replaces unused TOKEN_RECOLORABLE) in
'background_shaped' member.
2006-04-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c (get_window_for_shape, draw_simple_image):
Refactor shape mask requirement logic into separate function.
2005-09-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 1.36 ===
* configure.in
* NEWS: Updated
2005-09-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/theme-pixbuf.h: restore TOKEN_RECOLORABLE for not to invalidate
gtkrc cache files
2005-09-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/theme-pixbuf.h(struct _ThemePixbuf, struct _ThemeMatchData):
reorder and turn various members into bitfiels and save another 12k.
2005-09-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/theme-pixbuf.h(struct _ThemePixbuf)
* src/sapwood-render.c(theme_pixbuf_copy, theme_pixbuf_hash,
theme_pixbuf_equal, theme_pixbuf_set_filename,
pixmap_cache_value_new): split (absolute) filename to dirname and
basename, keep only canonicalized copy in memory and reconstruct the
absolute filename when needed. Saves roughly 21k (out of 43k) memory.
N#16158
2005-09-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/theme-pixbuf.h(struct _ThemeImage)
* src/sapwood-rc-style.c(theme_symbols, theme_parse_image): remove
unused 'recolorable' token
2005-05-27 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 1.22 ===
* configure.in
* NEWS: Updated
2005-05-27 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw(draw_extension): Stop expanding our designated
drawing area, it's just wrong, wrong, wrong (#9727)
2005-05-18 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw(render_icon): Increase alpha of the background
colored pixels used when dimming icons to avoid extreme contrast.
2005-05-13 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 1.20 ===
* configure.in
* NEWS: Updated
2005-05-13 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c(sapwood_pixmap_free): Make sure all (XChangeGC)
operations are processed before letting the sapwood server free the
pixmaps. Otherwise there's a risk of getting BadPixmap errors (#11906)
2005-05-03 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 1.18.1 ===
* configure.in
* NEWS: Updated
2005-05-02 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-draw.c: Dim icons by drawing a simple background color
(white) raster over the normal state icon.
* configure.in
* src/sapwood-server.c
* src/Makefile.am: Remove unneeded gtk+ dependency from
sapwood-server.
2005-04-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 1.18 ===
* configure.in
* NEWS: Updated
2005-04-26 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-pixmap.c
* src/sapwood-server.c
* src/sapwood-proto.h: Change ref/unref to open/close to match
protocol semantics.
2005-04-21 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-render.c(theme_pixbuf_equal): Fix border equality
check warnings, compare right to right, not right to bottom.
* src/sapwood-render.c(theme_pixbuf_get_pixmap): theme_pixbuf_ref() has
invalid semantics for GCache use (results in memory leak due to
self-referencing.) Introduce and use theme_pixbuf_copy() instead.
* src/sapwood-render.c(theme_pixbuf_ref): Removed.
* src/sapwood-pixmap.c: Generalize pixbuf_proto_get_pixmap() to
pixbuf_proto_request() which can handle arbitrary requests and
optional responses.
* src/sapwood-pixmap.c
* src/sapwood-server.c
* src/sapwood-proto.h: Rename PixbufRequest,PixbufResponse to
PixbufRefRequest,PixbufRefResponse
* src/sapwood-rc-style.c: Check all images for missing filenames
instead of only 'background' and 'overlay' ('gap', 'gap_start',
'gap_end' were missing.)
* src/sapwood-pixmap.c
* src/sapwood-server.c
* src/sapwood-proto.h: Include request total length in the message to
make trivial validation possible.
* src/sapwood-pixmap.c
* src/sapwood-server.c
* src/sapwood-proto.h: Include opcode in the request message.
* src/sapwood-server.c: Don't assume a read from the socket is a
single whole request, be prepared for partial and multiple requests in
the buffer.
* src/sapwood-server.c
* src/sapwood-proto.h: Assign a handle for each client requested image
the client can use later to release the image.
* src/sapwood-pixmap.c
* src/sapwood-server.c
* src/sapwood-proto.h: Add unref request to the protocol and release
images from the client side.
2005-03-21 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/Makefile.am: Move sapwood server to $(libdir)/sapwood, this is
not gtk-engines package anymore.
2005-03-21 Tommi Komulainen <tommi.komulainen@nokia.com>
* configure.in: Check for abstract socket namespace
* src/sapwood-pixmap.c
* src/sapwood-server.c: Use abstract socket namespace if available to
avoid leaving dangling sockets in the filesystem
2005-02-23 Tommi Komulainen <tommi.komulainen@nokia.com>
* === Release 1.08 ===
* configure.in
* NEWS: Updated
2005-02-23 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/sapwood-server.c(client_sock_callback): Remove unused variable.
2005-02-23 Tommi Komulainen <tommi.komulainen@nokia.com>
* src/theme-pixbuf.h
* src/sapwood-render.c: Switch visibility of theme_pixbuf_unref()
and theme_pixbuf_destroy()
* src/sapwood-rc-style.c: Always unref pixbufs rather than blindly
destroying them. Avoids crashing on theme change (#5533)
2004-12-21 Tommi Komulainen <tommi.komulainen@nokia.com>
* Creating new package by extracting (greatly modified) pixbuf engine
from gtk-engines.
|