diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-07-01 01:05:04 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-07-01 01:05:04 +0100 |
commit | c76c1a46e4c9527dea204feb8ac913593e313abf (patch) | |
tree | 749d7c7cf58e5814794780871f74035dd6efe335 /gtk | |
parent | 68fed63eaca9c9b2cb7dc916a6a9df6337990fce (diff) | |
download | gtk+-c76c1a46e4c9527dea204feb8ac913593e313abf.tar.gz |
Remove specialised API from GtkConstraint
Thet widget-based API for constraint target and source properties is
unused, and not really necessary.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkconstraint.c | 38 | ||||
-rw-r--r-- | gtk/gtkconstraint.h | 4 |
2 files changed, 0 insertions, 42 deletions
diff --git a/gtk/gtkconstraint.c b/gtk/gtkconstraint.c index 48a97eb00e..77ae83c4e4 100644 --- a/gtk/gtkconstraint.c +++ b/gtk/gtkconstraint.c @@ -387,25 +387,6 @@ gtk_constraint_new_constant (gpointer target, } /** - * gtk_constraint_get_target_widget: - * @constraint: a #GtkConstraint - * - * Retrieves the target widget for the @constraint. - * - * Returns: (transfer none) (nullable): a #GtkWidget - */ -GtkWidget * -gtk_constraint_get_target_widget (GtkConstraint *constraint) -{ - g_return_val_if_fail (GTK_IS_CONSTRAINT (constraint), NULL); - - if (GTK_IS_WIDGET (constraint->target)) - return GTK_WIDGET (constraint->target); - - return NULL; -} - -/** * gtk_constraint_get_target: * @constraint: a #GtkConstraint * @@ -441,25 +422,6 @@ gtk_constraint_get_target_attribute (GtkConstraint *constraint) } /** - * gtk_constraint_get_source_widget: - * @constraint: a #GtkConstraint - * - * Retrieves the source widget for the @constraint. - * - * Returns: (transfer none) (nullable): a #GtkWidget - */ -GtkWidget * -gtk_constraint_get_source_widget (GtkConstraint *constraint) -{ - g_return_val_if_fail (GTK_IS_CONSTRAINT (constraint), NULL); - - if (GTK_IS_WIDGET (constraint->source)) - return GTK_WIDGET (constraint->source); - - return NULL; -} - -/** * gtk_constraint_get_source: * @constraint: a #GtkConstraint * diff --git a/gtk/gtkconstraint.h b/gtk/gtkconstraint.h index 6d1d7be1a6..2f14e66999 100644 --- a/gtk/gtkconstraint.h +++ b/gtk/gtkconstraint.h @@ -74,14 +74,10 @@ GtkConstraint * gtk_constraint_new_constant (gpointer int strength); GDK_AVAILABLE_IN_ALL -GtkWidget * gtk_constraint_get_target_widget (GtkConstraint *constraint); -GDK_AVAILABLE_IN_ALL GtkConstraintTarget * gtk_constraint_get_target (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL GtkConstraintAttribute gtk_constraint_get_target_attribute (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL -GtkWidget * gtk_constraint_get_source_widget (GtkConstraint *constraint); -GDK_AVAILABLE_IN_ALL GtkConstraintTarget * gtk_constraint_get_source (GtkConstraint *constraint); GDK_AVAILABLE_IN_ALL GtkConstraintAttribute gtk_constraint_get_source_attribute (GtkConstraint *constraint); |