summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-22 07:42:13 +0100
committerBenjamin Otte <otte@redhat.com>2020-02-22 07:44:52 +0100
commit9d915ff431b3665ef189330464e3742f7cfbc2e9 (patch)
tree99fadde77085106267dbd41e2f65a9853f966233 /gtk/gtktreeviewcolumn.c
parent6f0a0ce7f17ddd82947b2bcda09bf3b269c322cc (diff)
downloadgtk+-9d915ff431b3665ef189330464e3742f7cfbc2e9.tar.gz
treeviewcolumn: Inline variable into return_if_fail()
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index a70c893a49..a9d8a104c0 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -1298,11 +1298,9 @@ gtk_tree_view_column_remove_editable_callback (GtkCellArea *area,
void
_gtk_tree_view_column_realize_button (GtkTreeViewColumn *column)
{
- GtkTreeViewColumnPrivate *priv = column->priv;
-
- g_return_if_fail (GTK_IS_TREE_VIEW (priv->tree_view));
- g_return_if_fail (gtk_widget_get_realized (priv->tree_view));
- g_return_if_fail (priv->button != NULL);
+ g_return_if_fail (GTK_IS_TREE_VIEW (column->priv->tree_view));
+ g_return_if_fail (gtk_widget_get_realized (column->priv->tree_view));
+ g_return_if_fail (column->priv->button != NULL);
gtk_tree_view_column_update_button (column);
}