388 | 388 |
SugarInfo info;
|
389 | 389 |
sugar_fill_generic_info (&info, style, state_type, shadow_type, widget, detail, x, y, width, height);
|
390 | 390 |
|
391 | |
/* Fill the background with bg_color. */
|
392 | |
sugar_fill_background (cr, &info);
|
|
391 |
/* Fill the background as it is initilized to base[NORMAL].
|
|
392 |
* Relevant GTK+ bug: http://bugzilla.gnome.org/show_bug.cgi?id=513471
|
|
393 |
* The fill only happens if no hint has been added by some application
|
|
394 |
* that is faking GTK+ widgets. */
|
|
395 |
if (!widget || !g_object_get_data(G_OBJECT (widget), "transparent-bg-hint"))
|
|
396 |
sugar_fill_background (cr, &info);
|
393 | 397 |
|
394 | 398 |
info.cont_edges = info.ltr ? EDGE_LEFT : EDGE_RIGHT;
|
395 | 399 |
sugar_remove_corners (&info.corners, info.cont_edges);
|
|
443 | 447 |
info.state = GTK_STATE_INSENSITIVE;
|
444 | 448 |
|
445 | 449 |
/* Needed because the trough and bar are cached in a buffer inside GtkProgress. */
|
446 | |
sugar_fill_background (cr, &info);
|
|
450 |
if (!widget || !g_object_get_data(G_OBJECT (widget), "transparent-bg-hint"))
|
|
451 |
sugar_fill_background (cr, &info);
|
447 | 452 |
sugar_draw_progressbar_trough (cr, &info);
|
448 | 453 |
}
|
449 | 454 |
} else if (DETAIL ("bar")) {
|
|
640 | 645 |
}
|
641 | 646 |
|
642 | 647 |
/* Fill the background with bg_color. */
|
643 | |
sugar_fill_background (cr, &info);
|
|
648 |
if (!widget || !g_object_get_data(G_OBJECT (widget), "transparent-bg-hint"))
|
|
649 |
sugar_fill_background (cr, &info);
|
644 | 650 |
sugar_draw_entry (cr, &info);
|
645 | 651 |
} else {
|
646 | 652 |
gdouble line_width;
|