[gtk/wip/otte/dnd] treeviewcolumn: Inline variable into return_if_fail()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/dnd] treeviewcolumn: Inline variable into return_if_fail()
- Date: Sat, 22 Feb 2020 06:45:49 +0000 (UTC)
commit 9d915ff431b3665ef189330464e3742f7cfbc2e9
Author: Benjamin Otte <otte redhat com>
Date: Sat Feb 22 07:42:13 2020 +0100
treeviewcolumn: Inline variable into return_if_fail()
gtk/gtktreeviewcolumn.c | 8 +++-----
1 file 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]