[gtk/wip/matthiasc/popup5] Drop GtkWidget::surface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5] Drop GtkWidget::surface
- Date: Fri, 17 May 2019 21:46:45 +0000 (UTC)
commit 14a1171f3eb41c0cee02ee4125047715c628a24b
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 6002ef9614..02a120cfde 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;
@@ -7850,7 +7834,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.
@@ -11258,8 +11241,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]