[gtk/wip/matthiasc/popup5: 116/124] Drop GtkWidget::surface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 116/124] Drop GtkWidget::surface
- Date: Sun, 19 May 2019 03:52:40 +0000 (UTC)
commit 67e2e1ac8bf057e30773f48a78cbe31356842306
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 17 21:32:16 2019 +0000
Drop GtkWidget::surface
Unneeded.
gtk/gtkwidget.c | 19 -------------------
1 file changed, 19 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 7715735b7a..b9f1139722 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -558,7 +558,6 @@ enum {
PROP_HAS_TOOLTIP,
PROP_TOOLTIP_MARKUP,
PROP_TOOLTIP_TEXT,
- PROP_SURFACE,
PROP_OPACITY,
PROP_OVERFLOW,
PROP_HALIGN,
@@ -1118,18 +1117,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
NULL,
GTK_PARAM_READWRITE);
- /**
- * GtkWidget:surface:
- *
- * The widget's surface if it is realized, %NULL otherwise.
- */
- widget_props[PROP_SURFACE] =
- g_param_spec_object ("surface",
- P_("Surface"),
- P_("The widget’s surface if it is realized"),
- GDK_TYPE_SURFACE,
- GTK_PARAM_READABLE);
-
/**
* GtkWidget:halign:
*
@@ -2364,9 +2351,6 @@ gtk_widget_get_property (GObject *object,
case PROP_TOOLTIP_MARKUP:
g_value_set_string (value, g_object_get_qdata (object, quark_tooltip_markup));
break;
- case PROP_SURFACE:
- g_value_set_object (value, _gtk_widget_get_surface (widget));
- break;
case PROP_HALIGN:
g_value_set_enum (value, gtk_widget_get_halign (widget));
break;
@@ -7840,7 +7824,6 @@ static void
gtk_widget_constructed (GObject *object)
{
GtkWidget *widget = GTK_WIDGET (object);
- GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
GtkWidgetPath *path;
/* As strange as it may seem, this may happen on object construction.
@@ -11248,8 +11231,6 @@ gtk_widget_set_surface (GtkWidget *widget,
if (priv->surface != surface)
{
priv->surface = surface;
-
- g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_SURFACE]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]