After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 560995 - Cleanup background API
Cleanup background API
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
[fixed-next]
Depends on:
Blocks: vte1.0
 
 
Reported: 2008-11-16 02:24 UTC by Behdad Esfahbod
Modified: 2014-04-22 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2008-11-16 02:24:37 UTC
Currently there's:

void vte_terminal_set_color_background(VteTerminal *terminal,
                                       const GdkColor *background);
void vte_terminal_set_background_image(VteTerminal *terminal, GdkPixbuf *image);
void vte_terminal_set_background_image_file(VteTerminal *terminal,
                                            const char *path);
void vte_terminal_set_background_tint_color(VteTerminal *terminal,
                                            const GdkColor *color);
void vte_terminal_set_background_saturation(VteTerminal *terminal,
                                            double saturation);
void vte_terminal_set_background_transparent(VteTerminal *terminal,
                                             gboolean transparent);
void vte_terminal_set_opacity(VteTerminal *terminal, guint16 opacity);

The tint_color is not needed.  color_background should affect the tint color too.

Opacity and saturation are the same thing.  No need for two.  We may want to add a new boolean to turn true transparency on/off.

Note that currently opacity doesn't work if a background image is set.  We do saturation instead.
Comment 1 Christian Persch 2014-04-22 17:01:49 UTC
This is fixed on master.