[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 01/02: Disable opacity option when non-composited.
noreply at xfce.org
noreply at xfce.org
Sun May 20 18:32:41 CEST 2018
This is an automated email from the git hooks/post-receive script.
g o t t c o d e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 917fe44a67c9b2d50d8a96d95abf0d3ed3815063
Author: Graeme Gott <graeme at gottcode.org>
Date: Thu Apr 26 18:58:58 2018 -0400
Disable opacity option when non-composited.
---
panel-plugin/configuration-dialog.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/panel-plugin/configuration-dialog.cpp b/panel-plugin/configuration-dialog.cpp
index 59c9872..603fb09 100644
--- a/panel-plugin/configuration-dialog.cpp
+++ b/panel-plugin/configuration-dialog.cpp
@@ -662,6 +662,11 @@ GtkWidget* ConfigurationDialog::init_appearance_tab()
gtk_range_set_value(GTK_RANGE(m_background_opacity), wm_settings->menu_opacity);
g_signal_connect_slot(m_background_opacity, "value-changed", &ConfigurationDialog::background_opacity_changed, this);
+ GdkScreen* screen = gtk_widget_get_screen(m_window);
+ const bool enabled = gdk_screen_is_composited(screen);
+ gtk_widget_set_sensitive(label, enabled);
+ gtk_widget_set_sensitive(GTK_WIDGET(m_background_opacity), enabled);
+
return GTK_WIDGET(page);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list