[Xfce4-commits] [apps/xfce4-terminal] 01/01: gtk_widget_is_composited() is deprecated since 3.22
noreply at xfce.org
noreply at xfce.org
Tue Nov 8 11:11:05 CET 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 86da3d46b38a4a9e8a5e58ac436ba5a9afbf3710
Author: Igor <f2404 at yandex.ru>
Date: Tue Nov 8 12:10:58 2016 +0200
gtk_widget_is_composited() is deprecated since 3.22
---
terminal/terminal-preferences-dialog.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/terminal/terminal-preferences-dialog.c b/terminal/terminal-preferences-dialog.c
index 077467c..d6f5846 100644
--- a/terminal/terminal-preferences-dialog.c
+++ b/terminal/terminal-preferences-dialog.c
@@ -844,7 +844,7 @@ terminal_preferences_dialog_background_mode (GtkWidget *combobox
terminal_return_if_fail (GTK_IS_COMBO_BOX (combobox));
active = gtk_combo_box_get_active (GTK_COMBO_BOX (combobox));
- composited = gtk_widget_is_composited (combobox);
+ composited = gdk_screen_is_composited (gtk_widget_get_screen (combobox));
object = gtk_builder_get_object (GTK_BUILDER (dialog), "box-file");
terminal_return_if_fail (G_IS_OBJECT (object));
@@ -967,7 +967,6 @@ terminal_preferences_dialog_new (gboolean show_drop_down)
GObject *dialog;
GObject *object;
GObject *notebook;
- gboolean composited;
builder = g_object_new (TERMINAL_TYPE_PREFERENCES_DIALOG, NULL);
@@ -984,8 +983,7 @@ terminal_preferences_dialog_new (gboolean show_drop_down)
gtk_notebook_page_num (GTK_NOTEBOOK (notebook), GTK_WIDGET (object)));
/* show warning and disable control if WM does not support compositing */
- composited = gtk_widget_is_composited (GTK_WIDGET (object));
- if (!composited)
+ if (!gdk_screen_is_composited (gtk_widget_get_screen (GTK_WIDGET (object))))
{
object = gtk_builder_get_object (builder, "dropdown-opacity-not-available");
terminal_return_if_fail (G_IS_OBJECT (object));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list