Codebase list sugar-artwork / a9ca087
Merge branch 'master' of gitorious@git.sugarlabs.org:sugar-artwork/mainline Simon Schampijer 14 years ago
2 changed file(s) with 15 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
388388 SugarInfo info;
389389 sugar_fill_generic_info (&info, style, state_type, shadow_type, widget, detail, x, y, width, height);
390390
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);
393397
394398 info.cont_edges = info.ltr ? EDGE_LEFT : EDGE_RIGHT;
395399 sugar_remove_corners (&info.corners, info.cont_edges);
443447 info.state = GTK_STATE_INSENSITIVE;
444448
445449 /* 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);
447452 sugar_draw_progressbar_trough (cr, &info);
448453 }
449454 } else if (DETAIL ("bar")) {
640645 }
641646
642647 /* 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);
644650 sugar_draw_entry (cr, &info);
645651 } else {
646652 gdouble line_width;
148148 GtkButtonBox::child-internal-pad-x = 0
149149 GtkButtonBox::child-internal-pad-y = 0
150150
151 # The following line hints to gecko (and possibly other appliations)
152 # that the entry should be drawn transparently on the canvas.
153 # Without this, gecko will fill in the background of the entry.
154 GtkEntry::honors-transparent-bg-hint = 1
155
151156 engine "sugar" {
152157 line_width = $line_width
153158 thick_line_width = $thick_line_width