Migrate from gtk_widget_is_composited to gdk_screen_is_composited.

gtk_widget_is_composited is gone in GTK 3.
This commit is contained in:
Sadie Powell 2022-09-25 23:40:17 +01:00 committed by Patrick
parent bde8d9d20a
commit 07873ca4e9

View File

@ -909,7 +909,7 @@ setup_create_hscale (GtkWidget *table, int row, const setting *set)
#ifndef WIN32 /* Windows always supports this */
/* Only used for transparency currently */
if (!gtk_widget_is_composited (current_sess->gui->window))
if (!gdk_screen_is_composited (gdk_window_get_screen (GDK_WINDOW (current_sess->gui->window))))
gtk_widget_set_sensitive (wid, FALSE);
#endif
}