[vte] vteapp: Only install argb visual when required by options
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] vteapp: Only install argb visual when required by options
- Date: Sun, 11 May 2014 08:20:09 +0000 (UTC)
commit 4431fd96c2224988ec844cb7cfd3e947b1d819b4
Author: Christian Persch <chpe gnome org>
Date: Sun May 11 10:18:04 2014 +0200
vteapp: Only install argb visual when required by options
src/app.vala | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 19e952f..973dd34 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -52,11 +52,15 @@ class Window : Gtk.ApplicationWindow
title = "Terminal";
/* Set ARGB visual */
- if (!App.Options.no_argb_visual) {
- var screen = get_screen();
- Gdk.Visual? visual = screen.get_rgba_visual();
- if (visual != null)
- set_visual(visual);
+ if (App.Options.transparency_percent != 0) {
+ if (!App.Options.no_argb_visual) {
+ var screen = get_screen();
+ Gdk.Visual? visual = screen.get_rgba_visual();
+ if (visual != null)
+ set_visual(visual);
+ }
+
+ app_paintable = true;
}
var ui = new Gtk.Builder.from_resource("/org/gnome/vte/test/app/ui/window.ui");
@@ -68,7 +72,7 @@ class Window : Gtk.ApplicationWindow
var toolbar = ui.get_object("toolbar") as Gtk.Widget;
toolbar.hide();
}
-
+
terminal = new Vte.Terminal();
/* Connect scrollbar */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]