gtk-demo: Check a return value
Found by coverity.
This commit is contained in:
@@ -158,9 +158,8 @@ activate_run (GSimpleAction *action,
|
|||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
|
||||||
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
|
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
|
||||||
gtk_tree_selection_get_selected (selection, &model, &iter);
|
if (gtk_tree_selection_get_selected (selection, &model, &iter))
|
||||||
|
run_example_for_row (window, model, &iter);
|
||||||
run_example_for_row (window, model, &iter);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stupid syntax highlighting.
|
/* Stupid syntax highlighting.
|
||||||
|
|||||||
Reference in New Issue
Block a user