[gtk/present-toplevel-2: 55/79] widget: Stop using gdk_surface_set_opacity
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 55/79] widget: Stop using gdk_surface_set_opacity
- Date: Mon, 9 Mar 2020 15:36:12 +0000 (UTC)
commit e02fc1e33098e2af99c2b4baea650211032e9290
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 4 09:38:01 2020 -0800
widget: Stop using gdk_surface_set_opacity
gtk/gtkwidget.c | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 0a28d8385d..94e97e0ee7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -10618,18 +10618,7 @@ gtk_widget_update_alpha (GtkWidget *widget)
priv->alpha = alpha;
- if (_gtk_widget_get_realized (widget))
- {
- if (GTK_IS_NATIVE (widget))
- {
- gdk_surface_set_opacity (gtk_native_get_surface (GTK_NATIVE (widget)), priv->alpha / 255.0);
- gtk_widget_queue_allocate (widget);
- }
- else
- {
- gtk_widget_queue_draw (widget);
- }
- }
+ gtk_widget_queue_draw (widget);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]