[Xfce4-commits] [apps/xfce4-terminal] 01/01: Rename setting from Transparency to Opacity
noreply at xfce.org
noreply at xfce.org
Fri Jul 8 16:47:58 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit 2b3d8e736bb69ffefa19ea7dc7390dcc34385680
Author: Igor <f2404 at yandex.ru>
Date: Fri Jul 8 17:47:50 2016 +0300
Rename setting from Transparency to Opacity
---
terminal/terminal-preferences.glade | 2 +-
terminal/terminal-screen.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/terminal/terminal-preferences.glade b/terminal/terminal-preferences.glade
index c182930..745bb62 100644
--- a/terminal/terminal-preferences.glade
+++ b/terminal/terminal-preferences.glade
@@ -1415,7 +1415,7 @@
<object class="GtkLabel" id="opacity-label">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Transpare_ncy:</property>
+ <property name="label" translatable="yes">_Opacity:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">trans-scale</property>
</object>
diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index d906572..a09b12c 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -1436,7 +1436,7 @@ terminal_screen_timer_background (gpointer user_data)
g_object_get (G_OBJECT (screen->preferences), "background-darkness", &background_darkness, NULL);
}
else
- background_darkness = 0.0;
+ background_darkness = 1.0;
//vte_terminal_set_background_saturation (VTE_TERMINAL (screen->terminal), saturation);
//vte_terminal_set_opacity (VTE_TERMINAL (screen->terminal), opacity);
@@ -1444,7 +1444,7 @@ terminal_screen_timer_background (gpointer user_data)
// background_mode == TERMINAL_BACKGROUND_TRANSPARENT
// && !gtk_widget_is_composited (GTK_WIDGET (screen)));
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (screen));
- gtk_widget_set_opacity (toplevel, 1.0 - background_darkness);
+ gtk_widget_set_opacity (toplevel, background_darkness);
GDK_THREADS_LEAVE ();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list