forked from AuroraMiddleware/gtk
gtk-demo: Avoid compiler warnings without assertions
Avoid an unused variable warning.
This commit is contained in:
parent
9d3aa2cfce
commit
5e7b5fe085
@ -751,7 +751,6 @@ demo_filter_by_name (gpointer item,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GtkTreeListRow *row = item;
|
GtkTreeListRow *row = item;
|
||||||
GtkFilterListModel *model = user_data;
|
|
||||||
GListModel *children;
|
GListModel *children;
|
||||||
GtkDemo *demo;
|
GtkDemo *demo;
|
||||||
guint i, n;
|
guint i, n;
|
||||||
@ -762,7 +761,7 @@ demo_filter_by_name (gpointer item,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
g_assert (GTK_IS_TREE_LIST_ROW (row));
|
g_assert (GTK_IS_TREE_LIST_ROW (row));
|
||||||
g_assert (GTK_IS_FILTER_LIST_MODEL (model));
|
g_assert (GTK_IS_FILTER_LIST_MODEL (user_data));
|
||||||
|
|
||||||
/* Show a row if itself of any parent matches */
|
/* Show a row if itself of any parent matches */
|
||||||
for (parent = row; parent; parent = gtk_tree_list_row_get_parent (parent))
|
for (parent = row; parent; parent = gtk_tree_list_row_get_parent (parent))
|
||||||
|
Loading…
Reference in New Issue
Block a user